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:
| Tool | What it does |
|---|---|
list_accounts | List all your connected social media accounts |
get_account | Get details for a specific account |
list_posts | List your scheduled and published posts |
create_post | Create and publish or schedule a post |
get_post | Get post details with per-platform status |
get_post_results | See which platforms succeeded or failed |
delete_post | Delete a post |
retry_post | Retry all failed platform destinations |
list_media | List your uploaded media files |
get_media | Check media upload status |
delete_media | Delete a media file |
generate_image | Generate 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.
Links
- PostEverywhere Dashboard
- API Reference
- npm SDK
- npm MCP Server
- Pricing — 14-day free trial, no credit card required