Repository avatar
Monitoring
v1.0.0
active

mcp

io.github.handlesapi/mcp

Public social media data: X, Instagram, TikTok, YouTube, Telegram, Bluesky, Twitch, Kick, LinkedIn.

Documentation

Handles API MCP server: Claude Code and Cursor configuration

Handles API MCP server

Handles API MCP connector

The Handles API MCP server gives Claude, Cursor, VS Code and any other Model Context Protocol client direct access to public data from X (Twitter), Instagram, TikTok, YouTube, Telegram, Bluesky, Twitch, Kick and LinkedIn companies. It is one hosted remote server, https://api.handlesapi.com/mcp, that you authenticate with your own Handles API key and that spends the same credits as the REST API. This repository holds ready-to-copy configuration for each client, the tool list, and small scripts for calling the server by hand.

Nothing here needs installing: the server is remote (Streamable HTTP, one POST per call, no session).

Why

  • One hosted server instead of a scraper per platform: your assistant gets X, Instagram, TikTok, YouTube, Telegram, Bluesky, Twitch, Kick and LinkedIn company data through one set of tools.
  • A short list on purpose: 21 curated tools cover the common questions, and handles_request plus handles_list_endpoints reach the rest of the catalog.
  • Same key, same credits and same error envelope as the REST API; every tool is read-only.

Quickstart

  1. Get an API key at handlesapi.com/signup. The Free plan gives you 100 credits to try every endpoint, once, with no card.
  2. Export it: export HANDLES_API_KEY=hk_live_...
  3. Add the server to your client (below), then ask: "How many subscribers does MrBeast have on YouTube?"

Server URL: https://api.handlesapi.com/mcp. Authentication: Authorization: Bearer <key> (or an x-api-key header), exactly as for the REST API.

Configure your client

Every file in configs/ is copy-paste ready.

Claude Code

claude mcp add --transport http handles https://api.handlesapi.com/mcp \
  --header "Authorization: Bearer $HANDLES_API_KEY"

Check it with claude mcp list, or /mcp inside a session. To share the server with a team, commit configs/claude-code.mcp.json as .mcp.json at the project root; each person supplies their own key through the environment.

Claude Desktop

Add configs/claude-desktop.json to claude_desktop_config.json (Settings, Developer, Edit Config). It uses mcp-remote to bridge Claude Desktop to the remote server and adds the header. The key goes in env; the header argument has no space after the colon because some Windows versions mangle spaces inside args.

Cursor

Save configs/cursor.json as ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (one project). Cursor resolves ${env:HANDLES_API_KEY} from your environment.

VS Code

Save configs/vscode.json as .vscode/mcp.json in the workspace. VS Code prompts for the key the first time the server starts and stores it securely, so it never sits in a file.

Any other client

Any client that speaks Streamable HTTP and can send a custom header works: point it at https://api.handlesapi.com/mcp and set Authorization: Bearer <key>.

Tools and endpoints

The server exposes 23 tools, not one per endpoint: a short list keeps the assistant's context small and its choices accurate. Every tool name starts with handles_. Arguments follow the REST parameters of the same endpoint; the full list for each is in the API reference. A machine-readable snapshot with input schemas is in tools.json.

ToolEndpointCreditsWhat it does
handles_check_accountGET /accounts/{platform}/{handle}1Check one account against the catalog: identity, audience, verification, data age.
handles_directory_listGET /directory/{platform}1List or search one platform's catalog with filters, sorting and cursors.
handles_directory_getGET /directory/{platform}/{id}1Full record of one account, by handle or platform id.
handles_directory_growthGET /directory/{platform}/{id}/growth1Daily audience history of one account, up to 365 days.
handles_directory_searchGET /directory/search1Search by handle or name across several platforms at once.
handles_people_lookupGET /people/lookup1Find a handle on every platform, with the evidence it is the same owner.
handles_people_searchGET /people/search1Find accounts by audience size, engagement, language, category and verification.
handles_identity_graphGET /identity/graph1A company's accounts across networks, from a handle, a domain or a LinkedIn slug.
handles_x_userGET /x/users/{handle}2 (live read)Live X profile, as X reports it right now.
handles_x_user_tweetsGET /x/users/{handle}/tweets2 (live read)Live X timeline with engagement counts.
handles_x_search_tweetsGET /x/search/tweets2 (live read)Live X search with advanced-search syntax.
handles_x_user_followersGET /x/users/{handle}/followers2 (live read)Live list of an X account's followers.
handles_insights_x_accountGET /insights/x/{handle}1One-call dossier on an X account: engagement, volume, best posts, peer benchmark.
handles_x_top_tweetsGET /insights/x/{handle}/top-tweets1An X account's best-performing posts.
handles_instagram_top_postsGET /insights/instagram/{handle}/top-posts1An Instagram account's best posts with measured likes, comments and views.
handles_instagram_content_mixGET /insights/instagram/{handle}/content-mix1Which format works on an Instagram account: reels, carousels or images.
handles_trends_moversGET /trends/{platform}/movers1Accounts that gained or lost the most audience on the freshest day.
handles_tool_valuationPOST /tools/valuation2 (live read)Dollar estimate of an X account, as a low, expected and high range.
handles_tool_engagement_calculatorPOST /tools/engagement-calculator2 (live read)True engagement rate of an X account from its recent posts.
handles_linkedin_companiesGET /leads/linkedin/companies1Search LinkedIn companies by country, industry, size and contactability.
handles_linkedin_companyGET /leads/linkedin/companies/{id}1One LinkedIn company with socials, contacts and decision makers.
handles_requestany sold endpointas the endpointCall any endpoint in the catalog by method, path, query and body. A path that is not sold is refused.
handles_list_endpointsnone0Lists every sold endpoint by tag with its credit cost. Use it to find what to pass to handles_request.

The platform argument accepts x, instagram, tiktok, youtube, telegram, bluesky, twitch and kick where the endpoint covers them; LinkedIn companies have their own tools.

Pricing and credits

Catalog, insights, identity and lead reads cost 1 credit; live reads cost 2. Plans: Free (100 credits, once, no card), Starter ($29 a month, 15,000 credits), Pro ($99, 75,000), Business ($299, 300,000), Scale ($799, 1,200,000). See Credits and limits and pricing.

A tool call costs exactly what the endpoint behind it costs: 1 credit for catalog reads and insights, 2 for live reads. There is no surcharge for MCP, and listing tools or endpoints is free. Every successful result ends with a line such as Credits: 1 spent, 14999 remaining this period., so the assistant can see what a session has used. See Credits and limits and pricing.

Call it by hand

./scripts/list-tools.sh
./scripts/call-tool.sh handles_check_account '{"platform":"youtube","handle":"mrbeast"}'

The same call with plain curl:

curl https://api.handlesapi.com/mcp \
  -H "Authorization: Bearer $HANDLES_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/call",
    "params": {
      "name": "handles_check_account",
      "arguments": { "platform": "x", "handle": "nasa" }
    }
  }'

A successful call returns the JSON body of the endpoint as text, followed by the credits line. A failed call returns isError: true with the status, error code and message from the error envelope.

About the protocol

The MCP server page in the Handles API docs, showing the Claude Code and .mcp.json setup

The Model Context Protocol is an open standard that lets assistants call tools exposed by a server. This server speaks Streamable HTTP with JSON-RPC 2.0 (protocol versions 2024-11-05 through 2025-11-25) and supports initialize, tools/list and tools/call. See modelcontextprotocol.io and the MCP docs.

Security

Anything the assistant can call, it can call repeatedly, and it spends your credits. Use a key with only the scopes you want it to have, keep overage off if you want a hard stop, and revoke the key in the dashboard when you are done. The key stays in your own configuration and is sent straight to the server in a request header; it is never part of a tool argument, so it does not enter the conversation. Every tool is read-only: they query public social data and change nothing on any account.

Links

Handles API is an independent service and is not affiliated with any of the platforms it covers. It returns public data only. MIT licensed.

No installation packages available.

Remote