An MCP server that exposes the SocialRouter API to LLM agents. Plug it into Claude Desktop, Claude Code, Cursor, or any MCP-compatible client to let the agent extract social media data (LinkedIn, Instagram, X, Reddit) — likes, comments, profile info, posts, followers — through a single unified API.
Get an API key at socialrouter.io, then add the server to your MCP client config.
{
"mcpServers": {
"socialrouter": {
"command": "npx",
"args": ["-y", "@socialrouter/mcp"],
"env": {
"SOCIALROUTER_API_KEY": "sr_live_xxxxxxxxxxxxx"
}
}
}
}Add to ~/.cursor/mcp.json with the same shape.
| Tool | Description |
|---|---|
extract |
Extract data from a social media URL. Pick an extraction type matching the URL kind. |
list_providers |
List available data extraction providers and their status. |
get_balance |
Check your SocialRouter credit balance. |
get_extraction |
Retrieve a previous extraction by ID. |
| Param | Required | Description |
|---|---|---|
url |
yes | Full URL of the social media content |
type |
yes | post.likes, post.comments, profile.info, profile.posts, or profile.followers |
limit |
no | Max records (default 100) |
provider |
no | Provider override (e.g. lobstr, apify) — omit to let SocialRouter route automatically |
| Variable | Required | Default |
|---|---|---|
SOCIALROUTER_API_KEY |
yes | — |
SOCIALROUTER_BASE_URL |
no | https://api.socialrouter.io |
MIT