Verified August 2026

Give Claude Code the ability to post to social media

Claude Code can publish to TikTok, Instagram, Facebook, YouTube, LinkedIn, X, Reddit, Telegram, Bluesky, Mastodon and Discord 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.

claude mcp add --transport http postwire https://postwire.io/api/mcp \
  --header "Authorization: Bearer pw_live_your_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.

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.

Get an API 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 five 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.