Connect to the what2post MCP server

The what2post MCP server gives AI assistants read-only access to your LinkedIn content: synced posts, profile engagement, follower growth, and growth goals. This guide shows how to authenticate and connect a client.

Endpoint
https://what2postapp.com/mcp
Transport
Streamable HTTP
Auth
HTTP Bearer token

Fastest path: copy it from your dashboard

Signed in? Click the terminal icon in the top bar of your dashboard (next to the API token key) to copy a ready-to-run command with your token already filled in. The steps below are the manual equivalent.

It looks like this:The terminal icon for MCP setup in the what2post dashboard header
1

Get your API token

Sign in at what2postapp.com, then open the API Access Token dialog from the top bar of your dashboard and copy your token. This is the same token the what2post API uses.

Heads up: the token is valid for 30 days. When it expires, calls fail with "Invalid or expired what2post API token" — just copy a fresh one from the same dialog. Treat the token like a password; anyone holding it can read your data.
2

Add the server to your client

Claude Code (CLI)

Replace YOUR_TOKEN with the token from step 1. Add --scope user to make it available in every project.

terminal
claude mcp add --transport http what2post https://what2postapp.com/mcp \
  --header "Authorization: Bearer YOUR_TOKEN"

Claude Code (.mcp.json)

Prefer a file? Reference an environment variable so you never commit the secret.

.mcp.json
{
  "mcpServers": {
    "what2post": {
      "type": "http",
      "url": "https://what2postapp.com/mcp",
      "headers": {
        "Authorization": "Bearer ${WHAT2POST_API_TOKEN}"
      }
    }
  }
}

Cursor, Windsurf, VS Code, Claude Desktop

These clients support remote MCP servers natively. Use the same shape in their MCP configuration.

mcp config
{
  "mcpServers": {
    "what2post": {
      "url": "https://what2postapp.com/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_TOKEN"
      }
    }
  }
}

Older, stdio-only clients

If a client cannot talk to a remote HTTP server directly, bridge it with mcp-remote.

terminal
npx -y mcp-remote https://what2postapp.com/mcp \
  --header "Authorization: Bearer YOUR_TOKEN"
3

How authentication works

Authentication is a single HTTP header. Every request your client sends to the MCP endpoint carries your token as a Bearer credential:

Authorization: Bearer YOUR_TOKEN

The server resolves that token to your what2post account and scopes every tool call to your own data. There is no separate login or OAuth step — the token is the credential. Two of the tools additionally require an active subscription (see below).

4

Verify it works

You can sanity-check the endpoint from a terminal. A successful handshake returns a JSON result with serverInfo naming the what2post server.

terminal
curl -X POST https://what2postapp.com/mcp \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-03-26","capabilities":{},"clientInfo":{"name":"curl","version":"1.0"}}}'

Available tools

list_my_posts

Your synced LinkedIn posts, newest first.

Requires subscription
get_my_profile_stats

Engagement statistics and recent posts for one of your profiles.

Requires subscription
get_my_growth

Follower-growth statistics over a window of days.

get_my_goals

Your growth goals and their progress.

Troubleshooting

"Invalid or expired what2post API token"
The 30-day token has expired or was copied incompletely. Copy a fresh token from the API Access Token dialog and update your client config.
"This action requires an active what2post subscription"
list_my_posts and get_my_profile_stats need an active plan. get_my_growth and get_my_goals work without one.
"Missing or malformed Authorization header"
The token did not reach the server. Confirm your client sends the Authorization: Bearer <token> header, with the literal word Bearer and a space before the token.

Need help?

Email support@what2postapp.com and we will help you get connected.