MCP
Connect Cursor, VS Code, Claude, and other MCP clients to Social Fetch. Sign in with OAuth, call every endpoint as a tool, and let your agent read the docs as it builds.
Model Context Protocol (MCP) turns Social Fetch into tools your AI assistant can call directly — TikTok profiles, Instagram posts, YouTube search, web markdown, account balance, and every other public API endpoint. Endpoint tools are billed exactly like the REST API; docs tools help you implement the API in your project without consuming credits.
The hosted server lives at https://api.socialfetch.dev/mcp. You sign in once with OAuth in your browser — there's no API key to paste into your config.
What you'll need
- A Social Fetch account with credits for metered routes — see Credits & billing.
- An MCP client that supports remote (Streamable HTTP) servers with OAuth — Cursor, VS Code, Claude Code, Claude Desktop, or the MCP Inspector.
One-click install
Manual setup
If a one-click link does nothing — your editor isn't installed, blocks custom URL schemes, or has no button — add the server by hand.
Cursor
Add to ~/.cursor/mcp.json (or project .cursor/mcp.json):
{
"mcpServers": {
"socialfetch": {
"url": "https://api.socialfetch.dev/mcp"
}
}
}Restart Cursor, open MCP settings, and complete the OAuth browser flow when prompted.
VS Code
Add to settings.json:
{
"mcp": {
"servers": {
"socialfetch": {
"url": "https://api.socialfetch.dev/mcp"
}
}
}
}Claude Code
claude mcp add --transport http socialfetch https://api.socialfetch.dev/mcpThen run /mcp and authenticate Social Fetch to finish the OAuth flow.
Claude Desktop
Add a custom connector (remote MCP) with URL https://api.socialfetch.dev/mcp and authorize when asked.
stdio-only clients
If your client only speaks stdio, bridge to the hosted server with mcp-remote:
npx mcp-remote https://api.socialfetch.dev/mcpPoint your client at the stdio process it spawns.
Authentication
Social Fetch uses OAuth 2.1 — your client handles the whole flow:
- The client opens the Social Fetch sign-in page in your browser.
- You sign in (or create an account) and approve access.
- The client receives an access token and sends it on every request.
Credits are charged to your signed-in account, just like the REST API. There's no API key in your MCP config.
Tools
tools/list exposes endpoint tools (one per public API route) plus docs tools for implementation help.
Endpoint tools
Tool names match API operation IDs with dots replaced by underscores:
| Tool name | API operation |
|---|---|
tiktok_profile_get | tiktok.profile.get |
instagram_post_get | instagram.post.get |
web_markdown_generate | web.markdown.generate |
auth_whoami | auth.whoami |
billing_balance_get | billing.balance.get |
Each endpoint tool's arguments mirror the matching route's parameters. Credits are metered the same way as REST — most calls cost 1 credit, while some search and media-download options cost more. See each operation's API reference page for exact pricing.
Docs tools
Two extra tools let your coding agent read the live Social Fetch docs while it builds — picking the right endpoint, following SDK examples, and checking auth, errors, and credits. Both are read-only and don't consume credits.
| Tool name | Purpose |
|---|---|
docs_search | Search the docs (API, SDK, auth, errors, credits, integrations) |
docs_read | Read a full docs page as markdown by pathname, e.g. /docs/sdk |
Try a prompt like:
Use the Social Fetch MCP docs to add TikTok profile lookup to this app with the TypeScript SDK.
Example: TikTok profile
In Cursor or the MCP Inspector, call tiktok_profile_get with:
{ "handle": "nike" }The result contains the same data and meta payload you'd get from the REST endpoint.
Troubleshooting
| Symptom | What to check |
|---|---|
401 on every call | Your token is missing or expired — reconnect and complete OAuth again. |
| OAuth redirect loop | Finish signing in at the Social Fetch app, then approve access to return to your client. |
402 responses | You're out of credits for a metered route — top up in Credits & billing. |
| No tools listed | Reconnect the server; if it persists, restart your client. |
Related
TypeScript SDK
Install and use the official TypeScript SDK for Social Fetch with a concrete method inventory, route mapping, unwrap guidance, and parity with documented public routes
n8n
Pull live social and web data into your n8n workflows — and AI agents — with a single community node. No custom HTTP nodes, no glue code.