API & MCP
Create an API key, then connect SocialBunny to Claude Code, Codex, or Cursor to post from your editor.
Create an API key
Your keys
Connect your editor
Create a key above (the snippets below fill in your key automatically), then add the SocialBunny MCP server. Your assistant gets tools to draft & post: list_clones, list_platforms, draft_post, publish_draft, post_now.
Local (stdio) — Claude Code, Cursor, Codex
Run this in your terminal:
claude mcp add socialbunny --env SOCIALBUNNY_API_KEY=YOUR_API_KEY -- npx -y socialbunny-mcpAdd to ~/.cursor/mcp.json:
{
"mcpServers": {
"socialbunny": {
"command": "npx",
"args": ["-y", "socialbunny-mcp"],
"env": { "SOCIALBUNNY_API_KEY": "YOUR_API_KEY" }
}
}
}Add to ~/.codex/config.toml:
[mcp_servers.socialbunny]
command = "npx"
args = ["-y", "socialbunny-mcp"]
env = { SOCIALBUNNY_API_KEY = "YOUR_API_KEY" }Remote (URL) — claude.ai connector & HTTP clients
In claude.ai → Settings → Connectors → Add custom connector, set any name and paste this keyless URL. Claude will pop a SocialBunny sign-in (OAuth) — no key needed, nothing to leak:
Paste as the Remote MCP server URL. You'll sign in to SocialBunny.
https://app.socialbunny.co/api/mcpPrefer a key instead of signing in (or for a client without OAuth)? Use one of these — the key rides in the URL/header, so keep it private:
Keep this URL private — it contains your key.
https://app.socialbunny.co/api/mcp?key=YOUR_API_KEYAlternative to the stdio command above:
claude mcp add --transport http socialbunny https://app.socialbunny.co/api/mcp --header "Authorization: Bearer YOUR_API_KEY"