Skip to main content
Glama
SocialAPI MCP Server

SocialAPI MCP Server

Official

SocialAPI is the social media API for apps and AI agents. Its hosted MCP server lets an assistant read public profiles, posts, comments, searches and trends from TikTok, Instagram, YouTube, X, Reddit, LinkedIn, Facebook, Threads, Pinterest, Bluesky, Twitch and more, in one schema.

Use it two ways:

  • Hosted at https://api.socialapi.sh/mcp: Streamable HTTP, signed in with OAuth in your browser, nothing to install.

  • Local with npx -y @socialapihq/mcp and an API key: for apps that run servers on your machine.

Every account starts with 100 free credits, no card needed.

What You Can Ask

  • "How many followers does Nike have on TikTok and on Instagram?"

  • "Summarize the top comments on this YouTube video."

  • "What are people on Reddit saying about the new iPhone this week?"

  • "Compare the last ten posts of these two accounts."

  • "List the products mentioned in this TikTok's transcript."

Related MCP server: @sourcevine/mcp

Tools

Every endpoint of the API is reachable through three tools, so the assistant's context stays small however many endpoints there are.

Tool

What it does

find_endpoints

Finds the endpoint for a task, in plain words, such as "tiktok comments"

call_endpoint

Calls an endpoint by name with its arguments

get_credits

Tells how many credits are left, for free

See Tools for what each one takes and answers.

Prompts

Ready-made tasks you can pick in your app, each asking for what it needs:

Prompt

What it does

analyze_account

Profile, recent posts and engagement of one account

compare_accounts

Two or more accounts side by side

audit_engagement

Checks an account for bought followers or likes

summarize_comments

Themes, questions and sentiment under a post

export_comments

A post's comments as a CSV table

summarize_video

A video's transcript, summarized with key points

trend_report

What is trending on a platform now

hashtag_research

A hashtag's size, top posts and who posts under it

brand_mentions

What people say about a brand across platforms

find_creators

Creators who post about a topic, with their engagement

content_ideas

Post ideas from what does well for a topic

subreddit_research

A community's rules, top posts and what it cares about

Resources

Context you can attach to a conversation:

  • socialapi://platforms: every platform SocialAPI reads, and what it reads of each

  • socialapi://platforms/<platform>: a platform's endpoints, with what each returns, costs and takes

  • socialapi://guides/credits, pagination, identifiers and errors: how the API answers

Setup

Add the server to your app, start the connection, sign in to SocialAPI in the browser, pick a workspace and click Allow.

Open Settings → Connectors → Add custom connector, name it SocialAPI and enter https://api.socialapi.sh/mcp. Click Connect and allow it in the browser. This works in claude.ai and Claude Desktop alike.

Open Settings → Apps → Advanced settings and turn on Developer mode. Click Create app, name it SocialAPI, enter https://api.socialapi.sh/mcp and leave the authentication on OAuth.

claude mcp add --transport http socialapi https://api.socialapi.sh/mcp

Then run /mcp, select socialapi and sign in in the browser.

Add to ~/.cursor/mcp.json, or .cursor/mcp.json in a project:

{
  "mcpServers": {
    "socialapi": {
      "url": "https://api.socialapi.sh/mcp"
    }
  }
}

Then open Cursor Settings → MCP and click Needs authentication under socialapi.

Add to .vscode/mcp.json:

{
  "servers": {
    "socialapi": {
      "type": "http",
      "url": "https://api.socialapi.sh/mcp"
    }
  }
}

Start it from the file or with MCP: List Servers, and allow it when VS Code asks you to sign in.

codex mcp add socialapi --url https://api.socialapi.sh/mcp
codex mcp login socialapi

Run Locally

The package @socialapihq/mcp runs the server on your machine over stdio and sends its calls to SocialAPI with your API key (from API Keys at app.socialapi.sh). It needs Node.js 18 or later.

Add to claude_desktop_config.json (Settings → Developer → Edit Config):

{
  "mcpServers": {
    "socialapi": {
      "command": "npx",
      "args": ["-y", "@socialapihq/mcp"],
      "env": {
        "SOCIALAPI_API_KEY": "sapi_your_key"
      }
    }
  }
}

The same block goes in ~/.cursor/mcp.json, Windsurf's mcp_config.json or Cline's cline_mcp_settings.json:

{
  "mcpServers": {
    "socialapi": {
      "command": "npx",
      "args": ["-y", "@socialapihq/mcp"],
      "env": {
        "SOCIALAPI_API_KEY": "sapi_your_key"
      }
    }
  }
}

Add to .vscode/mcp.json:

{
  "inputs": [
    { "type": "promptString", "id": "socialapi-key", "description": "SocialAPI API key", "password": true }
  ],
  "servers": {
    "socialapi": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@socialapihq/mcp"],
      "env": { "SOCIALAPI_API_KEY": "${input:socialapi-key}" }
    }
  }
}
claude mcp add socialapi --env SOCIALAPI_API_KEY=sapi_your_key -- npx -y @socialapihq/mcp

Variable

What it does

SOCIALAPI_API_KEY

Your API key. Required for calls.

SOCIALAPI_PLATFORMS

Optional. Platforms such as tiktok,instagram: each of their endpoints becomes a tool of its own instead of the three tools above.

Hosted With an API Key

For a script or a server that cannot open a browser, send a key from API Keys in the dashboard instead:

claude mcp add --transport http socialapi https://api.socialapi.sh/mcp \
  --header "Authorization: Bearer $SOCIALAPI_API_KEY"

Credits

Most calls cost 1 credit, transcripts and a few heavier endpoints more. Finding an endpoint, checking credits, cached answers and failed calls are free. Credit packs never expire. See Pricing.

More

License

The local package and this repository are under the MIT License. The hosted service they call is covered by SocialAPI's Terms of Service.

Available Tools

3 tools
call_endpointCall EndpointA
Read-onlyIdempotent
Inspect

Calls a SocialAPI endpoint by its name and answers its JSON: { data } for one item, { data, pagination } for a list. endpoint is the endpoint's name (such as tiktok_profile), arguments its parameters (such as {"handle": "nike"}). It costs what the endpoint states (1 credit for most); a cached answer and a refused call are free. A list's next page is its pagination.nextCursor given as cursor.

Inputs: endpoint (required), arguments.

find_endpointsFind EndpointsA
Read-onlyIdempotent
Inspect

Finds the SocialAPI endpoints for a task: each one's name, what it returns and costs, and its parameters. Searches in plain words ("tiktok comments", "reels of an instagram account"); platform narrows the search to one platform, or alone lists its endpoints. Free.

What SocialAPI reads:

  • Bluesky (30): profile, post, batch, feed, hashtag, list, search, starter-pack, trending

  • YouTube (26): profile, post, batch, community, hashtag, playlist, search, trending

  • TikTok (22): profile, post, collection, hashtag, live, playlist, search, sound, trending

  • Twitch (20): profile, post, batch, category, live, search, trending

  • Pinterest (19): profile, post, board, search, topic, trending, url

  • LinkedIn (17): profile, post, ad, ads, article, company, job, search

  • Reddit (17): profile, post, search, subreddit, trending

  • Kick (16): profile, post, category, live, search, trending

  • Douyin (15): profile, post, hashtag, live, playlist, search, sound, trending

  • Instagram (15): profile, post, highlight, location, search, sound, trending

  • Facebook (13): profile, post, event, events, marketplace

  • X (13): profile, post, community, live, space, trending

  • Threads (10): profile, post, search, trending

  • Telegram (6): profile, post, invite

Inputs: query, platform.

get_creditsCreditsA
Read-onlyIdempotent
Inspect

The credits left in your workspace. Free, and not counted against the rate limit.

Inputs: no named parameters.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.2/5.0

    Scored across 3 tools

    Disambiguation5/5

    The three tools split cleanly into discovery (find_endpoints), execution (call_endpoint), and account state (get_credits) with no purpose overlap. An agent cannot reasonably mistake one for another, and the descriptions reinforce the find-then-call workflow explicitly.

    Naming Consistency5/5

    All three follow the same snake_case verb_noun convention: find_endpoints, call_endpoint, get_credits. The verbs also map to the semantics correctly (find = search, call = execute, get = read state).

    Tool Count5/5

    Three tools is deliberately minimal for a proxy that fronts ~250 endpoints across 15 platforms; the granularity lives in endpoint data returned by find_endpoints rather than in the tool surface. Each tool earns its place with no redundancy, and adding per-platform or per-resource tools would be bloated.

    Completeness4/5

    The surface covers the full proxy lifecycle: discover endpoints and their params/costs, invoke with pagination via cursor, and check remaining credits. Minor gaps exist — no structured way to enumerate supported platforms or validate arguments before spending credits, and no bulk/multi-call tool — but agents can work around these via find_endpoints with platform-only queries.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Provides AI agents with unified access to 21 social media platforms and 105 endpoints for retrieving profiles, posts, comments, search results, trending content, and analytics without per-platform authentication.
      4
      647 npm
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables assistants to retrieve public TikTok, Instagram, and YouTube stats, profiles, recent posts, and YouTube transcripts through read-only tools.
      10
      21 npm
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI tools to read publicly visible social media posts, comments, profiles, and trends from 18 platforms such as TikTok, Instagram, X, Reddit, YouTube, Xiaohongshu, and Weibo, on a prepaid pay-per-call basis where failed calls are free. Ships tools for search, trending, detail, comments, user profiles and posts, plus higher-level workflows like brand buzz, comment analysis, account watching, creator discovery, bulk link data, and viral finding.
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI assistants to upload and schedule videos, images, carousels, and text posts across 17 social platforms, read analytics, and reply to comments through a hosted OAuth connection.
      MIT