MCP
Cursor and VS Code MCP: add the server to your editor
~/.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.
{
"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.
{
"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.
{
"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.
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_endpointfor a parameter list, orhandles_list_endpointsfor everything on offer. Both are free. - Use
handles_batchto 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 handlesapiorpip 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_usagetool. - 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?
Can Cursor sign in with OAuth instead of a key?
How do I add the server to VS Code?
Does the same setup work in Windsurf and other editors?
How do I keep my key out of the repository?
What does it cost?
Connect it to your assistant
The free trial gives you 100 credits for every endpoint, once, with no card. Paid plans start at $29 a month.