Skip to content

MCP setup

The Socialit MCP server exposes the public API as Model Context Protocol tools, so AI agents can manage media, posts, social accounts, and social postings on your behalf.

You’ll need a workspace API key (sk_...).

The server supports two transports: stdio (default, local) and Streamable HTTP (remote).

Terminal window
claude mcp add socialit -e SOCIALIT_API_KEY=sk_live_xxx -- npx -y @socialit/mcp

Open Cursor Settings → MCP → Add new global MCP server:

{
"mcpServers": {
"socialit": {
"command": "npx",
"args": ["-y", "@socialit/mcp"],
"env": { "SOCIALIT_API_KEY": "sk_live_xxx" }
}
}
}

Open Settings → Developer → Edit Config:

{
"mcpServers": {
"socialit": {
"command": "npx",
"args": ["-y", "@socialit/mcp"],
"env": { "SOCIALIT_API_KEY": "sk_live_xxx" }
}
}
}

Run the server over HTTP for remote integrations. Each client passes its API key as a Bearer token.

Terminal window
npx -y @socialit/mcp --http --port 3000

The MCP endpoint is served at http://127.0.0.1:3000/mcp using Streamable HTTP.

Terminal window
claude mcp add socialit --transport http http://127.0.0.1:3000/mcp \
--header "Authorization: Bearer sk_live_xxx"
{
"mcpServers": {
"socialit": {
"url": "http://127.0.0.1:3000/mcp",
"headers": { "Authorization": "Bearer sk_live_xxx" }
}
}
}
FlagEnv varDefaultDescription
--keySOCIALIT_API_KEYAPI key (required for stdio).
--base-urlSOCIALIT_BASE_URLhttps://api.socialit.com/v1API base URL.
--httpoffUse HTTP transport.
--portMCP_PORT3000HTTP port.