Skip to main content
Sign Up
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 MCP install with `claude mcp add postpeer_mcp_api`
  • Post, schedule, list integrations, and pull analytics from natural language
  • Works with all 8+ supported platforms via the same MCP
  • Sandbox-executed TypeScript means Claude can chain calls without leaving the terminal
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
P

"Awesome tool and even more awesome support"

Petrus, Founder at Redcove

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

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
# Install the MCP (run once)
claude mcp add postpeer_mcp_api \
  --env POSTPEER_API_KEY="your-api-key" \
  -- npx -y postpeer-mcp

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

# Claude runs (under the hood):
async function run(client) {
  const res = await client.posts.create({
    content: "HI from postpeer",
    publishNow: true,
    platforms: [{ accountId: "<id>", platform: "twitter" }],
  });
  return res;
}

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 Install

Run `claude mcp add postpeer_mcp_api --env POSTPEER_API_KEY=... -- npx -y postpeer-mcp` and you're done. The MCP shows up as `mcp__postpeer_mcp_api__execute` and `mcp__postpeer_mcp_api__search_docs` in your next session.

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.

Built-In Doc Search

The MCP exposes a `search_docs` tool, so Claude can look up SDK methods, parameter shapes, and platform-specific options 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