AI agent guide

Connect Claude Code to social media

Can Claude Code post to social media? Yes. One command adds the Postprism MCP server to Claude Code, and it can then draft and schedule posts for 6 networks from your terminal. Developers use it to turn a changelog or pull request into launch posts for X, LinkedIn and Bluesky in the same session they shipped the code.

How to connect Claude Code to Postprism

What you need

  • Claude Code installed and signed in
  • A Postprism account with at least one social account connected
  1. 01

    Add the Postprism server

    Run this in your terminal. Use --scope user to make it available in every project, or leave it out to add it to the current project only.

    Terminal
    claude mcp add --transport http postprism https://studio.postprism.app/api/mcp
  2. 02

    Sign in

    Start Claude Code, run /mcp, choose postprism and select Authenticate. Your browser opens to sign in to Postprism and approve access.

    Claude Code
    /mcp
  3. 03

    Check the connection

    Ask “list my connected Postprism platforms”. Claude Code calls list_platforms and prints them.

What it looks like

You ask

Read CHANGELOG.md for v2.4 and draft launch posts for X, LinkedIn and Bluesky. Save them as drafts for tomorrow at 10 AM.

What happens

Claude Code reads the file, writes a short X post, a longer LinkedIn post that explains why the release matters, and a Bluesky post under 300 characters, then calls create_post once with all three versions as a draft.

See an agent-scheduled week in Postprism

In the walkthrough, the marketer writes one post herself, then asks Claude to plan the follow-ups. They land on the same calendar.

Prompt library

Copy these and change the details for your brand.

Launch posts

Summarise the merged PRs since the last tag as a launch post for X and LinkedIn. Save as drafts.

Docs to social

Turn docs/guides/webhooks.md into a 3-post LinkedIn series, one per day starting Monday at 9 AM, as drafts.

Release cadence

Schedule a “what’s new” post every Thursday at 4 PM for the next four weeks, pulling one item from the changelog each week. Drafts only.

Assets

Upload ./assets/release-2-4.png to Postprism and attach it to the LinkedIn draft you just created.

Check results

How did last week’s launch posts perform? Show impressions and engagement by platform.

Tools available

list_postsList posts in a workspace, filtered by status (draft, scheduled, published).
create_postCreate a post from base content, target platforms and optional per-platform versions. Without a date it is saved as a draft; with scheduled_at it is scheduled.
get_postRead a single post by ID.
update_postChange a post: copy, per-platform versions, media or the scheduled time.
delete_postDelete a post by ID.
upload_mediaUpload an image or video (JPEG, PNG, GIF, WebP, MP4, MOV, up to 10 MB) and get a URL to attach to a post.
get_analyticsList analytics records, filtered by post or platform.
get_post_analyticsEvery analytics record for one post.
list_platformsThe social accounts connected to a workspace.
list_workspacesEvery workspace you belong to, so one agent can act for several brands.
get_workspace_infoThe current workspace name and plan.
MCP server documentation

Working well with Claude Code

Keep it in the repo

Add a short “social voice” section to CLAUDE.md so every launch post follows the same tone and rules.

Point at files, not summaries

Claude Code writes better posts when it reads the changelog or diff itself rather than your paraphrase.

Review before shipping

Drafts land on your Postprism calendar. Glance at them in Studio before scheduling, especially numbers and names.

Limits to know

  • The agent works inside your Postprism workspace. It can only post to social accounts you have already connected in Postprism; connecting a new account always happens in Postprism, through each network’s own sign-in.
  • Each network’s own rules still apply: Pinterest Pins need an image, TikTok and YouTube need a video, X posts are capped at 280 characters, and Bluesky at 300.
  • Media has to be uploaded with upload_media first (JPEG, PNG, GIF, WebP, MP4 or MOV, up to 10 MB per file). Links to files hosted elsewhere are rejected.
  • A post created without a date is saved as a draft. A post created with scheduled_at is scheduled and publishes automatically, so ask for drafts if you want to review first.
  • The MCP server allows 200 requests per hour per user, which is plenty for planning a month of posts but not for bulk-migrating thousands.

Claude Code and Postprism: FAQ

Let Claude Code handle the busywork

Start a 7-day trial, connect your accounts, and add Postprism to your assistant in minutes.