Skip to main content
Claude Code API

Social Media API for Claude Code

Add PostPeer's MCP server to Claude Code in one command and post to every major social network from your terminal. No tool definitions, no SDK glue. Just tell Claude what to publish.

  • One-line setup pointing at the hosted MCP at `mcp.postpeer.dev/mcp`
  • Post, schedule, list integrations, and pull analytics from natural language
  • Works with all 8+ supported platforms via the same MCP
  • 34 typed tools — Claude calls them directly, no boilerplate
No credit card required.
POST https://api.postpeer.dev/v1/posts
{ "platforms": ["twitter", "linkedin", "instagram], "content": "Hello world!" }
Published
5 platforms
TwitterLinkedInFacebook+2
All posts delivered
Scheduled
queue
12
Queued
847
Sent
Next: in 15 min
Platforms
connected
XIGFBLITT
One API, every platform
DF

"I was up and running on six different platforms in under 30 minutes. Strongly recommend!"

David Flor, Founder at Darklight Interactive

Divanshu KhatterMarketing Manager at Sembark

"Couldn't figure out the official Pinterest API. PostPeer was smooth. Using it daily."

Divanshu Khatter, Marketing Manager at Sembark

Het TikawalaFounder at Kalizzle AI Studio

"Great integration experience. Jonathan ships fixes within hours. Mad respect for the speed."

Het Tikawala, Founder at Kalizzle AI Studio

How It Works

Add social media to your product in three steps.

01

Get Your API Key

Sign up and get your API key instantly — no sales calls, no complex onboarding.

02

Integrate in Minutes

A single endpoint to post, schedule, and manage content. Drop it into your product and go.

03

Your Users Post Everywhere

Your product now supports every major social platform — without you maintaining a single integration.

API Response Format

Clean, structured JSON that's easy to parse and integrate

Request

POST
# Add the hosted MCP to Claude Code (run once)
claude mcp add postpeer \
  --transport http \
  --header "Authorization: Bearer YOUR_POSTPEER_API_KEY" \
  https://mcp.postpeer.dev/mcp

# Then in Claude Code, just talk:
> "post HI from postpeer on my twitter"

# Claude calls the create_post tool with arguments:
{
  "content": "HI from postpeer",
  "publishNow": true,
  "platforms": [
    { "platform": "twitter", "accountId": "<id>" }
  ]
}

Response

JSON
{
  "success": true,
  "status": "published",
  "postId": "69f37b9bb794a6558e0300d3",
  "platforms": [
    {
      "platform": "twitter",
      "success": true,
      "platformPostUrl": "https://twitter.com/JonathanGeige18/status/2049880500936777959"
    }
  ]
}

Post to Social Media From Your Terminal

PostPeer's MCP is built specifically for terminal-first workflows. Tutorial: /blog/automate-social-media-with-claude-code-and-ai-agents.

One Command to Connect

Run `claude mcp add postpeer --transport http --header "Authorization: Bearer YOUR_API_KEY" https://mcp.postpeer.dev/mcp` and you're done. Nothing to install — the MCP is hosted by PostPeer.

Talk, Don't Code

Tell Claude 'post HI from postpeer on my twitter' and it figures out the integration ID, calls the API, and returns the live URL. No copy-pasting account IDs or remembering endpoint shapes.

Schedule From the CLI

'Schedule a LinkedIn post for tomorrow at 9am ET' becomes a real queued post in PostPeer. Review and cancel from the dashboard before it ships.

Cross-Post In One Sentence

'Post this changelog summary to Twitter, LinkedIn, and Bluesky.' One sentence, one API call, three live posts. Claude handles the platform array; PostPeer handles the platform differences.

Typed Tool Surface

Each MCP tool ships with a schema describing its parameters — Claude introspects them and calls the right one without you context-loading the docs into the conversation.

Composable With Other MCPs

Combine PostPeer with your GitHub, Linear, or analytics MCPs to build genuinely useful workflows. 'Read yesterday's merged PRs and draft a thread about the highlights', all in one Claude Code session.

Frequently Asked Questions

Ready to Add Social Media to Your Product?

One API. Every platform. Start building with free credits.

Start Posting for FreeNo credit card required.
POST https://api.postpeer.dev/v1/posts
{ "platforms": ["twitter", "linkedin", "instagram], "content": "Hello world!" }
Published
5 platforms
TwitterLinkedInFacebook+2
All posts delivered
Scheduled
queue
12
Queued
847
Sent
Next: in 15 min
Platforms
connected
XIGFBLITT
One API, every platform