Skip to content
All posts
Setup guides7 min read

How to post to LinkedIn from Claude

One server URL, one custom connector, and Claude can draft, preflight and schedule LinkedIn posts without you opening a browser tab. Here is the exact setup — plus the four things that trip up the first attempt.

Illustrated cover: How to post to LinkedIn from Claude

Claude cannot post to LinkedIn by itself. It has no network access to your account and no credentials for it — which is correct, and not something you want to change.

What it can do is call tools, and an MCP server can hold the LinkedIn connection on its behalf. Once one is connected, drafting and scheduling a LinkedIn post is a sentence in a conversation you were already having. Setup takes about five minutes, most of which is the OAuth click-through.

Before you start

  • Claude: either claude.ai on a Pro, Team or Enterprise plan (custom connectors are a paid feature) or Claude Desktop, which is free on macOS and Windows.
  • A PostMCP account with LinkedIn connected. The free plan gives you 20 credits a month, enough for up to 20 LinkedIn posts without links, and needs no card.
  • Node.js, only if you use Claude Desktop, because the mcp-remote bridge runs through npx. Nothing gets installed permanently.

Step 1 — connect LinkedIn and copy your server URL

  1. 1
    Authorise LinkedIn

    In the dashboard, add LinkedIn as a channel. This runs LinkedIn’s own OAuth 2.0 sign-in — you approve the permissions on linkedin.com, and an encrypted access token comes back. No password is ever handled by anything but LinkedIn.

  2. 2
    Copy the server URL

    Open AI Integration in the sidebar and press Copy URL. You get PostMCP’s hosted endpoint with your API key embedded: https://mcp.postmcpai.com/mcp?apikey=pmcp_sec_…. The key is bound to the workspace it was issued from.

  3. 3
    Treat it as a password

    Anything holding that URL can post as you. Keep it out of shared documents and public repos; Regenerate Key on the same tab invalidates the old one immediately.

Step 2 — add the connector to Claude

On claude.ai, click your profile avatar, open Settings → Connectors, then Add → Add custom connector:

FieldWhat to enter
Connector namePostMCP AI
Remote MCP server URLhttps://mcp.postmcpai.com/mcp?apikey=pmcp_sec_•••, exactly as copied

Click Add. Claude reads the server’s tool list, and the publishing tools are available in your next conversation. The step-by-step Claude guide has a screenshot of every screen.

On Claude Desktop, open Settings → Developer → Edit Config and add the same URL through the mcp-remote bridge. The file lives at ~/Library/Application Support/Claude/claude_desktop_config.json on macOS and %APPDATA%\Claude\claude_desktop_config.json on Windows.

claude_desktop_config.json
{
  "mcpServers": {
    "postmcpai": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://mcp.postmcpai.com/mcp?apikey=pmcp_sec_your_key_here"
      ]
    }
  }
}

Save, then quit Claude Desktop completely and reopen it — a window reload is not enough, because the bridge is spawned at startup. When it comes back, the tools icon in the composer should list the PostMCP tools.

Step 3 — prove the connection with a read

Do not start by asking it to publish. Start with something that cannot touch your feed:

“What social accounts do I have connected?”

Claude calls get_connected_accounts, and you get back your LinkedIn profile with the profileId it will use to target you. That single call proves the whole chain — key valid, server running, backend reachable, LinkedIn connected — before anything is at stake.

Step 4 — draft, preflight, publish

Now the real thing. A prompt that works well in practice names the outcome and the constraints, and leaves the copy to Claude:

“Draft a LinkedIn post about the analytics dashboard we shipped today — first person, no hashtags, under 1,200 characters. Preflight it, show me the copy, and do not publish until I say so.”

Claude writes the copy, calls preflight_post to check limits and cost, and stops. You read it, ask for a rewrite of the second paragraph, and then say publish. That last instruction triggers create_post with publishImmediately, and Claude comes back with the live URL.

To schedule instead, say when — and say where:

“Schedule it for Tuesday at 9am IST.”

Optional: run the server yourself

You do not need to host anything for the steps above. If you would rather keep the server on your own machine, the same tools ship as an open-source npm package. Claude Desktop can spawn it locally over stdio, with the key in its environment:

claude_desktop_config.json
{
  "mcpServers": {
    "postmcpai": {
      "command": "npx",
      "args": ["-y", "@postmcpai/server"],
      "env": {
        "POSTMCPAI_API_KEY": "pmcp_sec_your_key_here"
      }
    }
  }
}

Setting a PORT switches the same package to streamable HTTP, so you can deploy it anywhere that runs Node and point a Claude.ai custom connector at https://your-host/mcp?apikey=pmcp_sec_…. More on running Claude with PostMCP is on the Claude social media integration page.

The four things that go wrong

  1. 1
    The timezone was left implicit

    Scheduling defaults to UTC. “9am” for an IST-based account means 14:30 local. Name the zone every single time a wall-clock hour matters.

  2. 2
    The client was reloaded, not restarted

    MCP servers are spawned at client startup. Quit fully and reopen after editing the config.

  3. 3
    The LinkedIn token expired

    Posts stop appearing with no obvious error. Ask “does anything need reconnecting?” — that runs get_account_health and names the dead connections.

  4. 4
    Everything was approved on autopilot

    Approve reads permanently; keep the prompt on create_post and publish_post_now. The approval dialog shows the exact copy about to go out, which is the last cheap place to catch a bad draft.

Beyond LinkedIn

Nothing above is LinkedIn-specific — the same server covers X, Facebook, Instagram, Threads, Bluesky and YouTube Shorts. Once it is connected, “post this to LinkedIn and X, but rewrite the X version to fit 280 characters” is one instruction, and Claude handles the per-network variants itself. X has the tightest limit of the lot, so read posting to X with an MCP server before you add it.

For the same setup with a screenshot of every screen, from sign-up to the first post, see how to automate social media posts with Claude.

If you would rather work from a calendar than a chat window, the LinkedIn post scheduler is the same queue with a UI on top — the two views stay in sync, because they are the same posts.

Frequently asked questions

Can Claude post to LinkedIn directly?
Not on its own — Claude has no built-in LinkedIn access. It can post through an MCP server that holds the LinkedIn connection. You add PostMCP’s hosted server URL to Claude.ai as a custom connector, or to Claude Desktop with a small JSON block, and LinkedIn publishing tools appear in Claude’s tool list.
Do I have to give Claude my LinkedIn password?
No, and you should never do that. LinkedIn is authorised through its own OAuth 2.0 sign-in on the publishing service, which stores an encrypted access token. Claude never sees the token or the password — it only sees tool names, the arguments it chose, and the results.
Does this work with Claude.ai in the browser, or only Claude Desktop?
Both, with the same hosted URL. Claude.ai takes it as a custom connector under Settings → Connectors. Claude Desktop takes it in its config file through the mcp-remote bridge. Running the open-source server yourself is optional.
Will Claude post without asking me?
Claude asks for approval before running a mutating tool the first time, showing you the exact arguments. Read-only tools are safe to approve permanently; keep the approval prompt on create_post and publish_post_now if you want a human check before anything reaches your feed.
Can it schedule posts for a specific time zone?
Yes, but you have to say so. Always include the timezone in your instruction — “Tuesday 9am IST”, not just “Tuesday 9am”. The backend defaults to UTC, so an unqualified 9:00 for an India-based account publishes at 14:30 local.

Give your AI assistant publishing tools

One server URL connects Claude, ChatGPT or Cursor to seven social networks. 20 free credits a month, no card.