Social media MCP server
One hosted MCP server gives Claude, Cursor, Codex or any MCP client 11 tools to publish, schedule, retry and check posts on X, Instagram, LinkedIn, TikTok, YouTube and more.
No card required.
Terminal, in your project
claude mcp add --transport http postkey https://mcp.postkey.dev \
--header "x-access-key: $POSTKEY_API_KEY"Run /mcp in Claude Code to check that postkey is connected.
A real session
You ask in plain words. The agent picks the Postkey tools, and your client asks you before each call. The result shows every network's outcome and the credits it used.
Try this prompt
What's scheduled this week? Move Thursday's post to Friday, same time.
> What's scheduled this week? Move Thursday's post to Friday, same time.
⏺ postkey - list_scheduled_posts (MCP)(from: "2026-11-23", to: "2026-11-29")
3 posts · Tue 10:00 Instagram · Thu 12:30 LinkedIn + X (post_5Hd2k) · Sat 09:00 Facebook
⏺ postkey - reschedule_post (MCP)(postId: "post_5Hd2k", scheduledFor: "2026-11-27T12:30:00", timezone: "Europe/London")
post_5Hd2k · scheduled · Fri 27 Nov 12:30 Europe/London
Moved the LinkedIn and X post from Thursday to Friday 27 Nov, 12:30 London time. The other two stay as they were. Moving it cost nothing.
The 11 tools
Each tool calls one Postkey endpoint and costs the same credits as calling it yourself. Failed networks are refunded.
| Tool | What it does | Endpoint | Credits |
|---|---|---|---|
| list_accounts | The connected accounts the agent can post to, with their ids | GET /v1/connect/integrations | 0 |
| create_post | Publish now, schedule for a time and time zone, or save a draft | POST /v1/posts | 1 per network · X 5, or 50 with a link · draft 0 |
| get_post | One post with the result and live URL for each network | GET /v1/posts/{postId} | 0 |
| list_posts | Recent posts, filtered by status, network or date | GET /v1/posts | 0 |
| list_scheduled_posts | Everything queued, soonest first | GET /v1/posts/scheduled | 0 |
| reschedule_post | Move a scheduled post to a new time | PATCH /v1/posts/scheduled/{postId} | 0 |
| cancel_scheduled_post | Cancel it. It goes back to draft | DELETE /v1/posts/scheduled/{postId} | Refunds its credits |
| retry_post | Send only the networks that failed again | POST /v1/posts/{postId}/retry | Same as posting, refunded if it fails again |
| upload_media | Upload an image or video and get a URL to post with | POST /v1/media/upload | 0 |
| get_connect_link | A sign-in link to connect a new account | GET /v1/connect/{platform} | 0 |
| get_usage | Credits used and left this month | GET /v1/usage | 0 |
Set it up in four steps
Copy each step as it is. Replace the key with yours.
Get your key
Reserve a free key. The same key works for the REST API and the MCP server, and you can make one key per agent so you can revoke it alone.
export POSTKEY_API_KEY=pk_live_…# put it in your shell profile or .env, never in a repoAdd the server
Pick your client in the box at the top of this page and paste its snippet. Every client talks to the same hosted server.
claude mcp add --transport http postkey https://mcp.postkey.dev \ --header "x-access-key: $POSTKEY_API_KEY"Added HTTP MCP server postkey with URL: https://mcp.postkey.dev to local configConnect an account
Connect X, LinkedIn or any other network once in the dashboard. Or ask the agent for a sign-in link and open it.
> Give me a link to connect our LinkedIn page⎿ https://www.linkedin.com/oauth/v2/authorization?client_id=…Ask for a post
Talk to it like a person. The agent picks the tools, and you approve each call.
> Post our opening hours change to Instagram and Facebook now⎿ post_8Ja3p · published · 2 credits
MCP server questions
Something not here? Email hello@postkey.dev. I answer every one myself.
Book a 15-minute callClaude Code, Claude Desktop, Cursor and Codex, with the snippets above. Any other client that supports remote MCP servers works with the URL and header. Clients that only run local servers can use mcp-remote.
No. Each tool call costs the same credits as the API call behind it: 1 per network, 5 on X (50 with a link). Listing accounts, reading posts and moving scheduled posts cost nothing.
Only if you let it. Clients ask before each tool call unless you turn on auto-approve. To review every post, ask the agent to save drafts. Drafts cost nothing, and you publish them from the dashboard.
In your own client config. It is only sent to mcp.postkey.dev over HTTPS. Make a separate key for each agent, so you can revoke one without touching the others.
Yes. Node and Python SDKs and plain REST use the same key and the same endpoints as the MCP tools, so you can move a workflow from an agent into code later.
Give your agent a key.
$ curl -X POST api.postkey.dev/v1/posts -H "x-access-key: …"
No card required.