The @socialrouter/mcp package is an MCP server that lets LLM agents call SocialRouter directly. Plug it into Claude Desktop, Claude Code, Cursor, or any MCP-compatible client and the agent gains the ability to extract social media data, run query-driven searches, browse providers, and check credits — without writing glue code. Supported platforms include LinkedIn, Instagram, X, Reddit, Facebook, TikTok, YouTube, Pinterest, Bluesky, Snapchat, and Google Maps.

Configuration

Get an API key at socialrouter.io, then add the server to your MCP client config.

Claude Desktop / Claude Code

{
  "mcpServers": {
    "socialrouter": {
      "command": "npx",
      "args": ["-y", "@socialrouter/mcp"],
      "env": {
        "SOCIALROUTER_API_KEY": "sr_live_xxxxxxxxxxxxx"
      }
    }
  }
}

Cursor

Add the same block to ~/.cursor/mcp.json.

Tools

ToolDescription
extractURL-driven extraction. Pass url (single) or urls (batch).
searchQuery-driven search (e.g. Google Maps place search).
list_providersList providers with their status, supported platforms, and supported extraction/search types.
get_providerGet a single provider’s details and pricing (extraction + search).
get_extractionRetrieve a previous extraction or search by ID.
get_balanceCheck the SocialRouter credit balance.
get_usageGet a usage summary by provider and platform.

extract parameters

ParamRequiredDescription
urlone of url/urlsSingle social media URL.
urlsone of url/urlsBatch list of URLs (only effective for batch-capable actors).
provideryesService slug provider/platform/type[:tag] (e.g. apify/linkedin/profile.info, apify/linkedin/profile.posts:apimaestro). Copy from socialrouter.io/providers.
limitnoMax records (default 100).
fallbacknoWhether to fall over to alternative providers on failure (default true).

search parameters

ParamRequiredDescription
queriesyesNon-empty list of search queries (terms or context-pinning URLs).
provideryesSlug whose type is a search type, e.g. apify/googlemaps/place.search.
limitnoPer-query record cap (default 100).
fallbacknoWhether to fall over to alternative providers on failure (default true).

Environment variables

VariableRequiredDefault
SOCIALROUTER_API_KEYyes
SOCIALROUTER_BASE_URLnohttps://api.socialrouter.io