Connect a client
Step-by-step setup of the Linkpost MCP server in Claude, Claude Desktop, Claude Code, Cursor, VS Code and other clients that support remote MCP servers with a bearer token. How to test the connection and fix it when it fails.
Every client needs the same three things:
| Setting | Value |
|---|---|
| URL | https://linkpost.app/mcp |
| Transport | Streamable HTTP, often called "HTTP". Not SSE. |
| Header | Authorization: Bearer lp_your_key |
Before you start
- Create an API key for the client. In the sidebar, under Developers, open API. Enter a Key name such as
Claude Desktop, enter your Current password and press Create key. - Copy the key from Copy your new key now. Linkpost shows it only once.
- In the steps below, replace
lp_your_keywith your key.
The key can publish to every account you connected, so treat the client's settings file like a password. See Keep your keys safe.
In the sidebar, under Developers, MCP shows the same settings, ready to copy, for Claude Code, Claude Desktop, Cursor and VS Code.
Claude Code
Run this in a terminal:
claude mcp add --transport http linkpost https://linkpost.app/mcp \
--header "Authorization: Bearer lp_your_key"
By default the server is added for the current project only, and only for you. To use it in every project, add --scope user before the name:
claude mcp add --transport http --scope user linkpost https://linkpost.app/mcp \
--header "Authorization: Bearer lp_your_key"
Claude Code keeps the key in its own settings file, ~/.claude.json, for both scopes.
To share the server with your team through a project's .mcp.json file, keep the key out of the file and let each person use their own from an environment variable:
{
"mcpServers": {
"linkpost": {
"type": "http",
"url": "https://linkpost.app/mcp",
"headers": {
"Authorization": "Bearer ${LINKPOST_KEY}"
}
}
}
}
Each person sets LINKPOST_KEY to their own key before they start Claude Code. Every key publishes to its owner's accounts.
To check the connection, run claude mcp list. Linkpost should show ✔ Connected. Inside Claude Code, type /mcp to see the server and its tools.
Claude on the web and in the desktop app
Claude adds remote MCP servers as custom connectors. Linkpost needs a connector that sends a fixed Authorization header, which Claude calls Request headers. That option is in beta and only some organizations have it so far. If you do not see Request headers in the Add custom connector dialog, Claude cannot connect to Linkpost yet. Use Claude Desktop with a configuration file or Claude Code instead.
On a Free, Pro or Max plan
- In Claude, open Customize, then Connectors.
- Press Add custom connector.
- Enter a name, such as
Linkpost, and the URLhttps://linkpost.app/mcp. - If the dialog asks how people sign in, choose No sign-in.
- Open Request headers. Choose the header name
authorization, and enter the valueBearer lp_your_key. Type the wordBearerand a space before the key: Claude sends the value exactly as you enter it. Mark the header as Required. - Press Add.
To use Linkpost in a chat, press + in the chat, open Connectors and make sure Linkpost is on. Claude asks before it runs a tool. Do not choose Always allow for publish_post or cancel_post. Under Customize > Connectors, you can select Linkpost and block any tool you do not want Claude to use.
You cannot change the key of a connector after you add it. To use a new key, remove the connector and add it again.
Connectors you add on the web also appear in the Claude desktop app, signed in to the same account.
On a Team or Enterprise plan
An Owner adds custom connectors for the whole organization, under Organization settings > Connectors: press Add, then Custom, choose Web if asked, and enter the URL and the header as above.
Claude Desktop with a configuration file
The Claude desktop app can also reach Linkpost through mcp-remote, a small program that passes the header on. This works on every plan.
-
Install Node.js 18 or later from nodejs.org. Claude Desktop uses the Node.js installed on your system.
-
In Claude Desktop, open Settings, then Developer, and press Edit Config. This opens
claude_desktop_config.json:- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
- macOS:
-
Add Linkpost inside
mcpServers. If the file is empty, paste all of this:{ "mcpServers": { "linkpost": { "command": "npx", "args": ["-y", "mcp-remote", "https://linkpost.app/mcp", "--header", "Authorization:${LINKPOST_AUTH}"], "env": { "LINKPOST_AUTH": "Bearer lp_your_key" } } } }If the file already lists other servers, add only the
"linkpost": { ... }block next to them, with a comma between blocks. -
Save the file, quit Claude Desktop completely and open it again.
Keep Authorization:${LINKPOST_AUTH} exactly as it is, with no space after the colon. Claude Desktop on Windows does not keep spaces inside args, so the space between Bearer and the key goes in env, where spaces are safe.
Cursor
Cursor reads MCP servers from a file called mcp.json:
~/.cursor/mcp.jsonin your home folder, for every project..cursor/mcp.jsonin a project, for that project only.
Add Linkpost to the file:
{
"mcpServers": {
"linkpost": {
"url": "https://linkpost.app/mcp",
"headers": {
"Authorization": "Bearer lp_your_key"
}
}
}
}
To keep the key out of the file, which matters for a project file that goes into a repository, Cursor can read it from an environment variable. Set LINKPOST_KEY before you start Cursor, and write the header as:
"Authorization": "Bearer ${env:LINKPOST_KEY}"
Cursor lists its MCP servers in its settings, where you can turn each one on or off. If Linkpost does not connect, open the Output panel and choose MCP Logs to see the error.
VS Code
VS Code reads MCP servers from .vscode/mcp.json in a workspace, or from the mcp.json of your user profile. It uses servers, not mcpServers:
{
"servers": {
"linkpost": {
"type": "http",
"url": "https://linkpost.app/mcp",
"headers": {
"Authorization": "Bearer lp_your_key"
}
}
}
}
VS Code changes how MCP servers are added from version to version. If your version offers a guided MCP: Add Server command instead, choose an HTTP server, enter the URL, and look for the place to add a header.
Other clients
Any client that supports remote MCP servers over Streamable HTTP and lets you set a header can use Linkpost:
- Choose the HTTP, Streamable HTTP or "remote" transport. Do not choose SSE.
- Enter the URL
https://linkpost.app/mcp. - Add a header named
Authorizationwith the valueBearer lp_your_key.
If a client only runs local servers, which it starts as a command, use mcp-remote as the command, as in Claude Desktop with a configuration file:
npx -y mcp-remote https://linkpost.app/mcp --header "Authorization:${LINKPOST_AUTH}"
with the environment variable LINKPOST_AUTH set to Bearer lp_your_key.
Clients that can only connect through an OAuth sign-in cannot use Linkpost yet.
Test the connection
This request lists the tools. Use it to check the key and the address before you set up a client:
curl https://linkpost.app/mcp \
-H "Authorization: Bearer $LINKPOST_KEY" \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
A working key answers with the seven tools:
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"tools": [
{
"name": "list_accounts",
"title": "List accounts",
"description": "List the connected accounts (TikTok, Instagram, Facebook, YouTube, LinkedIn, X, Bluesky and Telegram), their health and the formats each one can publish, with their limits.",
"inputSchema": { "type": "object", "properties": {}, "additionalProperties": false },
"annotations": { "readOnlyHint": true, "openWorldHint": false }
}
]
}
}
The example shows only the first tool. Despite its description, list_accounts lists accounts on every network.
Then ask the assistant something that only reads, like "Which accounts do I have in Linkpost?", before you ask it to publish.
If the client does not connect
| What you see | Why | What to do |
|---|---|---|
401, "needs authentication", or the client opens a browser to sign in |
The key did not reach Linkpost, or it is wrong or revoked. Some clients then try an OAuth sign-in, which Linkpost does not offer. | Check that the header is Authorization and the value is Bearer, a space and the whole key. Create a new key if you revoked the old one. |
405 and This MCP server only accepts POST. |
The client uses the SSE transport. | Choose HTTP or Streamable HTTP. |
403 and Origin not allowed. |
The request came from a web page on another site. | Use a desktop, command line or server client. |
400 and Unsupported MCP-Protocol-Version. |
The client uses a protocol version Linkpost does not know. | Update the client. |
429 |
Too many requests with this key, or too many wrong keys from your address. | Wait a minute. Fix the key if it was wrong. |
403 and This account is suspended. |
The Linkpost account is suspended. | Contact Linkpost support. |
| The tools appear, but text, photo or poll posts are refused | Those formats are pending Meta and TikTok certification. | Ask the assistant to run list_accounts and use only the formats it shows. |
Some clients only read the list of tools when they start. After you change the settings, restart the client.