Verified October 2026

Or give your agent one line and let it do all of this, ending with your first post: set up https://postwire.io/SKILL.md (read the skill).

Give Claude Code the ability to post to social media

Claude Code can publish to TikTok, Instagram, Facebook Pages, YouTube, LinkedIn (personal profiles), Telegram, Bluesky, Mastodon, Discord and X (X on paid plans) once you connect PostWire as an MCP server. Below is the exact config for Claude Code — including the detail that makes a copied config fail silently.

Where the config goes

ScopePath
Config it writes.mcp.json (project scope) or ~/.claude.json (user scope)

Run the command in your terminal — there is no file to edit by hand.

Connect the hosted server (recommended)

Nothing to install — PostWire runs the server for you. The hosted server accepts an API key (an Authorization: Bearer header) or an OAuth 2.1 sign-in.

claude mcp add --transport http --scope user postwire https://postwire.io/api/mcp
# then, inside Claude Code: /mcp → postwire → Authenticate

Without a browser: an API key from an environment variable

Create a key in the dashboard (API & MCP), put it in POSTWIRE_API_KEY where the agent runs, and point the entry at the variable:

claude mcp add --transport http --scope user postwire https://postwire.io/api/mcp \
  --header 'Authorization: Bearer ${POSTWIRE_API_KEY}'

Or run it locally over stdio

claude mcp add --env POSTWIRE_API_KEY=pw_live_your_key --transport stdio postwire \
  -- npx -y postwire-mcp

Add --scope user to make it available in every project, or --scope project to commit it to the repo for your team.

The mistake that makes this fail silently

Two things bite people here. The -- before npx is required: everything after it is passed to the server rather than parsed as a Claude Code flag. And if you hand-write a JSON entry with a url but no type, Claude Code reads it as a stdio server and skips it with has a "url" but no "type" — add "type": "http". streamable-http is accepted as an alias, so configs copied from a server's own docs work.

Check it worked

Run claude mcp list and confirm postwire is connected, then ask Claude to list your connected social accounts.

What it can do once connected

ToolWhat it does
generate_postsOne prompt in, a native draft per network out — respecting each one's character limit, hashtag rules and link conventions.
post_to_socialPublish to one or many networks in a single call.
get_post_statusCheck what happened to a post after it was accepted.
list_platformsWhich networks are available and which need approval.
my_accountPlan, usage and which brands are connected.
schedule_postQueue a post for a future time, up to 365 days ahead. Hosted server only.
list_scheduled_postsList queued, published, failed or canceled scheduled posts. Hosted server only.
cancel_scheduled_postCancel a queued post before it goes out. Hosted server only.
create_connect_linkA one-hour link the user opens to connect a social account. Hosted server only.

A prompt like "write a launch post for our new feature and publish it to TikTok, LinkedIn and Bluesky" becomes two tool calls: one to draft a native version per network, one to publish.

Networks differ more than people expect — X caps at 280 characters against YouTube's 5,000, Reddit has no hashtags, and TikTok, YouTube and Instagram all refuse text-only posts. See what breaks between any two networks.

What it costs to leave running

Nothing to try: one brand and 10 posts a month are free, no card — every network connects free, 2 per post. An agent posting daily passes that in a month — Starter is $19/month for 1,000 posts and three brands, Pro $29 for ten brands and unlimited posts (fair use).

Get your key — free →

Questions people actually ask

Can Claude Code post to social media?
Yes, once you connect an MCP server that can publish. PostWire is one: add it to Claude Code with the config on this page and it gets 26 tools, including one that writes a native post per network and one that publishes.
Where does the MCP config live for Claude Code?
Config it writes: .mcp.json (project scope) or ~/.claude.json (user scope)
Do I need approval from TikTok or Meta first?
No. PostWire has already been through those reviews, so you publish through its approved apps. Telegram, Bluesky, Mastodon and Discord need no review from anyone.

Source for the Claude Code config format: Claude Code MCP docs. Using a different client? See all of them.

Step by step, per network: Post to Bluesky from Claude Code · Post to Discord from Claude Code · Post to Facebook from Claude Code · Post to Instagram from Claude Code · Post to LinkedIn from Claude Code · Post to Mastodon from Claude Code · Post to Telegram from Claude Code · Post to TikTok from Claude Code · Post to X from Claude Code · Post to YouTube from Claude Code.