> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.beatapi.io/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.beatapi.io/_mcp/server.

# How to choose a social media data MCP server for Claude Code, Cursor, and Codex

> Compare local Playwright MCPs, per-platform MCP servers, and BeatAPI's unified remote MCP (7 tools covering 1,021 social actions + 70+ AI models + SEO + Web Search) with automatic token-saving previews.

Social media MCP servers for Claude Code, Cursor, and Codex fall into three architectures: local Playwright browser servers, per-platform hosted servers, and BeatAPI's unified remote MCP server (`https://beatapi.io/mcp`).

BeatAPI exposes seven tools (`capabilities_search`, `capabilities_inspect`, `capabilities_run`, `web_search`, `web_read`, `web_map`, `web_research`) to discover and run 1,021 social actions across 19+ platforms, 12 SEO tools, Web Search, and 70+ AI models under one `BEATAPI_API_KEY`.

## Three social media MCP architectures compared

| Dimension                 | 1. Local Playwright MCPs                              | 2. Per-platform hosted MCPs                                                 | 3. BeatAPI Unified MCP (`https://beatapi.io/mcp`)                                                                               |
| ------------------------- | ----------------------------------------------------- | --------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- |
| **Tool context overhead** | Low (1 platform), runs local Chromium                 | High: connecting 5 platforms injects 50–100+ tool schemas into every prompt | 7 tools total via dynamic Search → Inspect → Run                                                                                |
| **Login and ban risk**    | Requires your own QR login and cookies; breaks on VPS | No personal login, separate keys and billing per vendor                     | No platform login; one `BEATAPI_API_KEY` and one USD balance                                                                    |
| **Large JSON token burn** | Dumps raw platform JSON into context                  | Varies; often returns full raw payloads                                     | Automatic preview mode on large results plus free 1-hour `operation: "result"` read-back                                        |
| **Platform breadth**      | 1 platform per repo                                   | 1–5 platforms per server                                                    | 19+ platforms (1,021 actions): Douyin, Xiaohongshu, WeChat, Bilibili, TikTok, Instagram, YouTube, X, Reddit, LinkedIn, and more |
| **Beyond social data**    | None                                                  | None                                                                        | Same MCP server also runs SEO Data, Web Search, and image/video generation                                                      |

## How BeatAPI Search → Inspect → Run controls cost and tokens

1. **Search (`capabilities_search`, `$0`):** Your agent searches in plain words (such as `"douyin video comments"` or `"xiaohongshu pgy creators"`) and receives exact `data:<action-id>` references.
2. **Inspect (`capabilities_inspect`, `$0`):** Your agent reads the live `input_schema` and exact USD price (`$0.003–$0.06` per call) before spending balance.
3. **Run (`capabilities_run`, pay-per-call):** Executes the action and returns a compact preview so raw JSON does not fill the context window. Within one hour, call `operation: "result"` with `request_id` to retrieve the full stored payload for `$0`.

## Add BeatAPI MCP to Claude Code, Cursor, or Codex

**`Claude Code (~/.claude.json)`**

```json title="Claude Code (~/.claude.json)"
{
  "mcpServers": {
    "beatapi": {
      "type": "http",
      "url": "https://beatapi.io/mcp",
      "headers": {
        "Authorization": "Bearer ${BEATAPI_API_KEY}"
      }
    }
  }
}
```

**`Cursor (~/.cursor/mcp.json)`**

```json title="Cursor (~/.cursor/mcp.json)"
{
  "mcpServers": {
    "beatapi": {
      "url": "https://beatapi.io/mcp",
      "headers": {
        "Authorization": "Bearer ${env:BEATAPI_API_KEY}"
      }
    }
  }
}
```

**`Codex (~/.codex/config.toml)`**

```toml title="Codex (~/.codex/config.toml)"
[mcp_servers.beatapi]
url = "https://beatapi.io/mcp"
bearer_token_env_var = "BEATAPI_API_KEY"
```

Create a key at [beatapi.io/dashboard/apikeys](https://beatapi.io/dashboard/apikeys), or paste `Read https://beatapi.io/skill.md and connect BeatAPI MCP` directly into your agent.

## Related

* [BeatAPI Integrations](/integrations)
* [Douyin, WeChat & China MCP servers](/faq/douyin-wechat-mcp-servers)
* [Xiaohongshu MCP without login](/faq/xiaohongshu-mcp-without-login)
* [Choose a Chinese social media data API](/faq/chinese-social-media-data-apis)