apublished

Cursor MCP: adding a remote server, with social posting as the example

Cursor reads MCP servers from a file called mcp.json. For a remote server you add an entry with its url, and optionally headers or an OAuth block. Cursor then offers the server's tools to its agent and asks before using them. Below: the exact file, both sign-in options, and a posting server as the worked example.

First, is Cursor the right place?

Cursor is a code editor. Its agent is built to read and change code. Wiring a social media server into it makes sense for a narrow group:

If you just want to post videos with an AI assistant, a chat app is simpler. Claude's custom connectors need one URL and no file; see Claude connectors.

Where the file lives

According to Cursor's documentation (November 2026):

A posting server tied to one brand belongs in the project file. A personal one can go in your home directory.

Cursor supports three transports: stdio, SSE and Streamable HTTP. A remote server uses one of the last two. Cursor's documentation mentions managing servers under "Customize" in the sidebar, but gives no click path we could quote, so this page sticks to the file.

The minimal remote entry

Cursor's own example of a server "using HTTP or SSE" looks like this:

{
  "mcpServers": {
    "server-name": {
      "url": "http://localhost:3000/mcp",
      "headers": { "API_KEY": "value" }
    }
  }
}

For a hosted server, replace the url with its public address. The headers block is only needed when the server uses a fixed key.

Option A: OAuth

"Cursor supports OAuth for servers that require it," using the authorization code flow with PKCE. If the server supports dynamic client registration, the entry needs nothing but the URL. Cursor opens a browser for you to sign in the first time.

If a server requires a pre-registered client instead, add an auth object to the entry with CLIENT_ID (required), and optionally CLIENT_SECRET and scopes.

Option B: a bearer key in a header

For a server that takes an API key, send it as a header. Keep the key out of the repository: put the server in ~/.cursor/mcp.json, or make sure the project file is not committed.

Worked example: apublished

apublished is a Swiss posting tool, billed in Swiss francs (CHF). Its MCP server at https://apublished.com/mcp posts to TikTok, YouTube, Instagram and Facebook through their official APIs. It supports both sign-in styles.

With OAuth (dynamic registration is supported):

{
  "mcpServers": {
    "apublished": { "url": "https://apublished.com/mcp" }
  }
}

Cursor sends you to apublished's consent screen, which lists each permission. If publishing is included, it says in bold that the client "can publish to your accounts by itself, without anyone checking first."

With a key: create one in the apublished app under "API keys". Keys are scoped and can be revoked. Then:

{
  "mcpServers": {
    "apublished": {
      "url": "https://apublished.com/mcp",
      "headers": { "Authorization": "Bearer ap_live_..." }
    }
  }
}

A key with the "write" scope but not "publish" can only draft and schedule. That is a sensible choice for an editor agent: it prepares, a person publishes.

Before any of this works, connect your social accounts in the apublished web app. The connect_channel tool only returns a link; neither Cursor nor any agent can complete a platform sign-in.

Prompts that suit an editor

Cursor "asks for approval before using MCP tools by default". Leave that on for a server that can publish.

What Cursor plus MCP will not do

MCP in the editor, or a script?

The agent decides when to call a tool, so results vary with the model. A script calls the same endpoint every time. For a nightly job, write the script. For trying ideas while you build, the MCP server in Cursor is handy. Other scheduling tools also support Cursor: Buffer's API page lists Cursor among the clients for its MCP server, and Metricool's MCP page does too (both read 4 October 2026). For agents that run on their own, see AI social media agent.

FAQ

Where is mcp.json in Cursor?

.cursor/mcp.json in the project, or ~/.cursor/mcp.json in your home directory, according to Cursor's documentation (November 2026).

Does Cursor support remote MCP servers?

Yes, over SSE or Streamable HTTP, with a url entry.

Can I commit mcp.json with a key in it?

You can, but you should not. Use OAuth, or keep keyed servers in the home-directory file.

Does apublished cost extra for MCP?

No. Every plan includes the app, the MCP server and the API. Plans start at CHF 19 a month after a 7-day free trial; there is no free plan.

Sources

Published November 26, 2026

Read next