Handles API

MCP

Cursor and VS Code MCP: add the server to your editor

In Cursor, add the Handles API server to ~/.cursor/mcp.json with its URL and an Authorization header, or let Cursor run the OAuth sign-in. In VS Code, save a .vscode/mcp.json that prompts for your key. Either way your editor gets 42 read-only tools for X, LinkedIn, YouTube, TikTok, Instagram and Telegram data.

Updated by the Handles API team

Add it to Cursor

Cursor reads MCP servers from .cursor/mcp.json in a project or ~/.cursor/mcp.json for every project, as its MCP documentation describes. A remote server needs a url and, optionally, headers. Cursor resolves ${env:NAME} in both, so the key stays in your environment.

~/.cursor/mcp.json, API key
{
  "mcpServers": {
    "handles": {
      "url": "https://api.handlesapi.com/mcp",
      "headers": {
        "Authorization": "Bearer ${env:HANDLES_API_KEY}"
      }
    }
  }
}

Set HANDLES_API_KEY in your shell profile first; remote servers do not read an envFile. Servers appear under Customize in the sidebar, where you can switch them on and off.

To use OAuth instead, leave the header out. Cursor supports OAuth for remote servers with the authorization code flow and PKCE, and without static credentials it discovers the sign-in from the server's metadata.

~/.cursor/mcp.json, OAuth
{
  "mcpServers": {
    "handles": {
      "url": "https://api.handlesapi.com/mcp"
    }
  }
}

Add it to VS Code

VS Code keeps workspace servers in .vscode/mcp.json, in the format of its MCP configuration reference. An inputs entry of type promptString with password set makes VS Code ask for the key when the server first starts and store it securely, so the file holds no secret.

.vscode/mcp.json
{
  "inputs": [
    {
      "type": "promptString",
      "id": "handles-api-key",
      "description": "Handles API key",
      "password": true
    }
  ],
  "servers": {
    "handles": {
      "type": "http",
      "url": "https://api.handlesapi.com/mcp",
      "headers": {
        "Authorization": "Bearer ${input:handles-api-key}"
      }
    }
  }
}

You can also run MCP: Add Server from the Command Palette and choose HTTP, as the VS Code guide shows, then paste the URL https://api.handlesapi.com/mcp. VS Code asks you to trust a server before it starts. Its reference documents key headers through inputs and an oauth block with a pre-registered client ID, so the key route above is the simple one here.

Windsurf and other MCP-capable editors take the same URL and header. File names and key names differ per editor, so use that editor's MCP documentation for the syntax.

Using it in an editor

In an agent chat, ask a question that needs data and the editor picks the tool and asks you to approve the first call. Typical uses in a codebase are checking an account before you write an integration, pulling a sample record to build a type from, and comparing a few handles while you write a report.

  • Ask the editor to call handles_describe_endpoint for a parameter list, or handles_list_endpoints for everything on offer. Both are free.
  • Use handles_batch to run up to ten lookups in one call, for example one profile per competitor.
  • For code that reads the same data on a schedule, call the REST API from your backend instead and use the reference. SDKs install with npm install handlesapi or pip install handlesapi.

Limits and safety

  • Read-only. The server cannot post or message on any platform, and it does not touch your code.
  • An agent can call tools repeatedly, and each call spends credits. Watch the balance with the free handles_usage tool.
  • Never commit a key. Reference it from the environment or an input prompt, and revoke it in the dashboard if it leaks.

What you can ask about, by platform

Once connected, the same server answers questions about every network below. Each page lists its tools, a real example and what it cannot do.

  • LinkedIn MCP: Company pages, decision makers and domain enrichment from your AI assistant.
  • X (Twitter) MCP: Live timelines, search, followers, replies and trends, plus catalog insights.
  • YouTube MCP: Subscribers, views, growth history and latest videos. No transcripts.
  • Instagram MCP: Followers, engagement, top posts and content mix. Catalog only for now.
  • TikTok MCP: Creator stats, growth benchmarks and live reads of the latest videos.
  • Telegram MCP: Public channel audience, reach and latest posts. Not a messaging client.

The full tool list is on the MCP overview, the setup reference is in the MCP server docs, and plans are on the pricing page. Create a free key to start.

Frequently asked questions

How do I add an MCP server to Cursor?
Create .cursor/mcp.json in a project, or ~/.cursor/mcp.json for every project, and add an entry under mcpServers with the server url and, for a key, an Authorization header. Cursor reads the file and lists the server under Customize, where you can switch it on or off.
Can Cursor sign in with OAuth instead of a key?
Yes. Cursor supports OAuth for remote servers with the authorization code flow and PKCE. Add the server with just its url, and Cursor starts the sign-in when it first connects. You approve the connection on a Handles API page, and no key is stored in the file.
How do I add the server to VS Code?
Save a .vscode/mcp.json with a servers entry of type http and the server url, or run MCP: Add Server from the Command Palette. VS Code can prompt for the key the first time the server starts, store it securely and keep it out of the file.
Does the same setup work in Windsurf and other editors?
Any editor that supports remote MCP servers over HTTP needs the same two things: the server URL and an Authorization header or an OAuth sign-in. The file name and the exact key names differ between editors, so follow your editor's own MCP documentation for those.
How do I keep my key out of the repository?
Reference it by name, never by value. Cursor expands an env variable in the url and headers, Claude Code expands a variable in .mcp.json, and VS Code prompts for it through an input marked as a password. Commit the file, not the key, and revoke the key in the dashboard if it leaks.
What does it cost?
No connector fee. Each tool call spends the same credits as the REST API: 1 credit for a catalog read and 2 credits for a live read. The free trial is 100 credits once, with no card, and an agent that loops can spend credits quickly, so watch the balance.