Skip to main content

Claude Code Integration

Manage your social media directly from Claude Code — schedule posts, manage accounts, generate AI images, and publish across all platforms without leaving your IDE.

Quick Setup

1. Get your API key

If you don't have a PostEverywhere account yet, sign up for a free 14-day trial (no credit card required).

Then create an API key at Settings → Developers.

Or use the CLI:

npx posteverywhere init

2. Add the MCP server

Add this to your Claude Code MCP config (.claude/mcp.json or claude_desktop_config.json):

{
"mcpServers": {
"posteverywhere": {
"command": "npx",
"args": ["-y", "@posteverywhere/mcp"],
"env": {
"POSTEVERYWHERE_API_KEY": "pe_live_your_key_here"
}
}
}
}

3. Start using it

Just ask Claude naturally:

  • "Show me my connected social accounts"
  • "Post 'Hello world!' to all my accounts"
  • "Schedule a post for tomorrow at 9am EST"
  • "Generate an AI image of a sunset and post it to Instagram"
  • "Show me my recent posts and their status"
  • "Retry the failed post"
  • "Delete my last scheduled post"

Available Tools

Claude Code has access to these PostEverywhere tools:

ToolWhat it does
list_accountsList all your connected social media accounts
get_accountGet details for a specific account
list_postsList your scheduled and published posts
create_postCreate and publish or schedule a post
get_postGet post details with per-platform status
get_post_resultsSee which platforms succeeded or failed
delete_postDelete a post
retry_postRetry all failed platform destinations
list_mediaList your uploaded media files
get_mediaCheck media upload status
delete_mediaDelete a media file
generate_imageGenerate an AI image from a text prompt

Documentation Resources

Claude Code can also read PostEverywhere documentation directly:

  • API Reference — Full endpoint documentation, authentication, rate limits
  • Getting Started — Step-by-step setup guide

Node.js SDK

If you prefer to use the API directly in your code:

npm install @posteverywhere/sdk
import PostEverywhere from '@posteverywhere/sdk';

const client = new PostEverywhere({
apiKey: process.env.POSTEVERYWHERE_API_KEY,
});

// List accounts
const { accounts } = await client.accounts.list();

// Create a post
await client.posts.create({
content: 'Posted from code!',
publish_now: true,
});

// Generate an AI image
const image = await client.ai.generateImage({
prompt: 'Professional social media banner',
model: 'flux-schnell',
aspect_ratio: '16:9',
});

Full SDK documentation: npmjs.com/package/@posteverywhere/sdk

Supported Platforms

Instagram, TikTok, YouTube, LinkedIn, Facebook, X (Twitter), and Threads. All platforms are available through Claude Code.