Skip to main content
Glama
SocialAPI MCP Server

SocialAPI MCP Server

Official
README.md
<p align="center">
  <a href="https://socialapi.sh"><img src="https://socialapi.sh/images/socialapi-appicon-512.png" alt="SocialAPI" width="72" height="72"></a>
</p>

<h1 align="center">SocialAPI MCP Server</h1>

<p align="center">
  Read public social media data from Claude, ChatGPT, Cursor and any other MCP app.
</p>

<p align="center">
  <a href="https://socialapi.sh">Website</a> ·
  <a href="https://socialapi.sh/docs/mcp">Docs</a> ·
  <a href="https://socialapi.sh/pricing">Pricing</a>
</p>

<p align="center">
  <a href="https://www.npmjs.com/package/@socialapihq/mcp"><img src="https://img.shields.io/npm/v/@socialapihq/mcp.svg" alt="npm"></a>
  <a href="https://lobehub.com/mcp/socialapihq-socialapi-mcp"><img src="https://lobehub.com/badge/mcp/socialapihq-socialapi-mcp" alt="MCP Badge"></a>
  <a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-blue.svg" alt="MIT License"></a>
</p>

<p align="center">
  <a href="https://glama.ai/mcp/servers/socialapihq/socialapi-mcp"><img src="https://glama.ai/mcp/servers/socialapihq/socialapi-mcp/badges/score.svg" alt="socialapihq/socialapi-mcp MCP server"></a>
  <a href="https://glama.ai/mcp/connectors/sh.socialapi/socialapi"><img src="https://glama.ai/mcp/connectors/sh.socialapi/socialapi/badges/score.svg" alt="SocialAPI MCP connector"></a>
</p>

---

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."

## 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](https://socialapi.sh/docs/mcp/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**.

<details open>
<summary><b>Claude</b></summary>

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.

</details>

<details>
<summary><b>ChatGPT</b></summary>

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**.

</details>

<details>
<summary><b>Claude Code</b></summary>

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

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

</details>

<details>
<summary><b>Cursor</b></summary>

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

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

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

</details>

<details>
<summary><b>VS Code</b></summary>

Add to `.vscode/mcp.json`:

```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.

</details>

<details>
<summary><b>Codex</b></summary>

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

</details>

### 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](https://app.socialapi.sh)). It needs Node.js 18 or later.

<details open>
<summary><b>Claude Desktop</b></summary>

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

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

</details>

<details>
<summary><b>Cursor, Windsurf, Cline and others</b></summary>

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

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

</details>

<details>
<summary><b>VS Code</b></summary>

Add to `.vscode/mcp.json`:

```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}" }
    }
  }
}
```

</details>

<details>
<summary><b>Claude Code</b></summary>

```bash
claude mcp add socialapi --env SOCIALAPI_API_KEY=sapi_your_key -- npx -y @socialapihq/mcp
```

</details>

| 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:

```bash
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](https://socialapi.sh/pricing).

## More

- [Documentation](https://socialapi.sh/docs)
- [TypeScript SDK](https://github.com/socialapihq/socialapi-node) · [Python SDK](https://github.com/socialapihq/socialapi-python)
- Official MCP Registry: `sh.socialapi/socialapi`
- Support: [support@socialapi.sh](mailto:support@socialapi.sh)

## License

The local package and this repository are under the [MIT License](LICENSE). The hosted service they call is covered by SocialAPI's [Terms of Service](https://socialapi.sh/terms).

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