# MCP servers for social media data: self-hosted vs hosted

> Self-hosted MCP servers that log in with your own account, browser-automation MCPs and hosted data MCPs compared: logins, write actions, platforms, where they run and who pays for failures.

Canonical page: https://okdata.online/compare/social-media-data-mcp-servers/

okdata's hosted MCP server at https://api.okdata.online/mcp needs only an API key and reads public data on 17 platforms: find and describe are free, call is charged at the endpoint's price from $0.0001, and failed calls are free. A self-hosted open-source MCP server that logs in with your own account can also post and comment, but you keep a login alive on one machine. Checked on 2026-11-12.

Updated 2026-11-12 · Other options checked on 2026-11-12

An MCP server is how an AI client such as Claude, Cursor or ChatGPT gets tools it did not ship with. For social media data there are three kinds. Some run on your machine and drive a platform's website while logged in as you. Some are general browser-automation servers that let the model operate any web page. Others are hosted: you connect to a URL with a key, and the server fetches public data for you. They solve different problems, and the one that suits you depends mostly on whether your agent needs to act as you or only to read.

## What to compare first

**Login.** Does the server need your platform account? If it does, someone has to log in, the session can expire, and the account carries the risk of whatever the agent does.

**Write actions.** Can the agent post, comment or reply? Sometimes that is the whole point. Sometimes it is a risk you would rather not hand to a model.

**Where it runs.** The MCP specification defines two standard transports: stdio, where the client launches the server as a subprocess on the same machine, and Streamable HTTP, where each message is an HTTP POST to one endpoint, so the server can be hosted elsewhere. A local server lives where your browser and login live; a hosted one works from any client that can reach the URL.

**Platforms.** One server per platform, or many platforms behind one connection.

**Cost and failures.** Free software still costs a machine, a browser and your account's standing. A paid server should say what a call costs and whether failures are billed, ideally in a way the agent can check before it spends.

## Side by side

Each row is a kind of server, not a product; check the one you pick against its own README or pricing page. Read on 2026-11-12.

| Option | Login | Can it post or comment | Where it runs | Platforms | Cost and failures |
|---|---|---|---|---|---|
| Self-hosted open-source MCP that logs in with your account | Run its login step and sign in with your own platform account; cookies expire and need a fresh login, and logging the same account in elsewhere can log the server out | Often yes: publishing, commenting and replying tools sit next to search, post detail and profile tools | Your machine or Docker, at a localhost URL; many download a headless browser on the first run | Usually one platform per server | Free; the account you log in with carries the risk of everything the agent does |
| Browser-automation MCP (open source) | Whatever you log in to in its browser: a persistent profile keeps logins, or it connects to tabs you already have open | Anything you could do in that browser | Your machine, usually started from Node.js | Any website | Free; page snapshots such as accessibility trees take up a lot of the model's context |
| Your own crawler wrapped as an MCP server | Usually your platform accounts, as the crawler needs | Depends on what you build | Wherever you host it | Whatever the crawler covers | Your server, proxies and upkeep |
| Other hosted social data MCP servers | Usually an API key | Check the provider's tool list | The provider's URL | Check the provider's endpoint list | Check the provider's pricing and billing terms |
| okdata | None: one API key in the `Authorization` header | No; read-only, public data | Hosted, Streamable HTTP at `https://api.okdata.online/mcp` | 17 platforms, 214 endpoints, including Douyin, Xiaohongshu and WeChat | `find` and `describe` are free; `call` is charged at the endpoint's price; failed calls are free |

## Where okdata differs

- **Nothing to keep logged in.** There is no QR code and no session to expire overnight; see [Xiaohongshu MCP QR login keeps expiring](https://okdata.online/answers/xiaohongshu-mcp-qr-login-expires/).
- **The agent can price a task before it runs it.** `find` returns matching endpoints with prices and `describe` returns parameters, fields and price, both free and without a key. Only `call` costs money: a page of [Douyin video search](https://okdata.online/apis/douyin/videos/search/) is $0.02, a page of [Xiaohongshu note search](https://okdata.online/apis/xiaohongshu/notes/search/) $0.02, and the full text of a [WeChat article](https://okdata.online/apis/wechat_mp/articles/get/) $0.02.
- **Many platforms behind one connection.** The same server reads TikTok, YouTube and X as well; see [one MCP server for TikTok, YouTube and X](https://okdata.online/answers/tiktok-youtube-x-mcp-server/).
- **Compact answers.** Responses are JSON objects, not page snapshots, and the `fields` parameter trims them to what the agent needs, which helps long research sessions fit in the context window.
- **Read-only by design.** The agent cannot post or comment through okdata, so a confused prompt cannot publish anything under your name.

## When okdata is the wrong choice

- **You want the agent to post for you.** Publishing notes, commenting and replying on your own Xiaohongshu account is what self-hosted Xiaohongshu MCP servers are built for, and okdata does none of it.
- **You need what only your logged-in account sees**, such as your home feed recommendations or your messages.
- **The site is not a social platform in the catalog.** A browser-automation MCP can operate any page, at the cost of a browser and more context per step.
- **You want everything local and free**, and your volume is small enough that one account's limits never bite.

## How to try it

Create a key (new accounts get $0.10 of credit, no card) and keep it in the `OKDATA_API_KEY` environment variable. Then add the server to your client; it comes down to one URL and one header. In Cursor's `mcp.json`:

```json
{
  "mcpServers": {
    "okdata": {
      "url": "https://api.okdata.online/mcp",
      "headers": { "Authorization": "Bearer ${env:OKDATA_API_KEY}" }
    }
  }
}
```

Setup for other clients is on the [MCP page](https://okdata.online/mcp/) and in the guides for [Claude Code](https://okdata.online/integrations/claude-code/) and [Cursor](https://okdata.online/integrations/cursor/). The server lists five tools: `find`, `describe`, `call`, `read_more` (the rest of a long answer, free) and `account` (your balance, free). Then ask: "Search Xiaohongshu for 防晒霜, keep the 5 notes with the most likes, and tell me the cost before you call anything." Without an MCP client, the same endpoints work over plain HTTP; see the [quickstart](https://okdata.online/docs/quickstart/).

## Questions

### Is a self-hosted MCP server safer for my account?

It depends on what the agent does with it. A self-hosted server acts as your account, so its actions count as yours. okdata never touches your account at all.

### Can I use a self-hosted MCP server and okdata together?

Yes. Many people keep a self-hosted server for posting on their own account and use a hosted data server for research across accounts and platforms. The client can hold both connections.

### Does the okdata server run locally?

No. It is a hosted Streamable HTTP server at `https://api.okdata.online/mcp`. Your client sends each request there with your key.

### What does an agent session cost?

Only the `call` steps are charged, at the price `describe` shows. Ten calls of Douyin search and Xiaohongshu search together cost $0.20; looking up endpoints is free.

## Endpoints mentioned

- [Douyin video search](https://okdata.online/apis/douyin/videos/search/) `douyin.videos.search`: $0.02 per call · about 20 videos per page
- [Xiaohongshu note search](https://okdata.online/apis/xiaohongshu/notes/search/) `xiaohongshu.notes.search`: $0.02 per call · about 20 notes per page
- [Official Account article detail](https://okdata.online/apis/wechat_mp/articles/get/) `wechat_mp.articles.get`: $0.02 per call

## More about Douyin

- [Douyin API](https://okdata.online/apis/douyin/)
- [Douyin API in Python: videos, profiles and comments (2026)](https://okdata.online/guides/douyin-api-python/)
- [How to export Douyin video comments in bulk](https://okdata.online/guides/douyin-video-comments/)
- [How to find Douyin Xingtu creators and get their rate cards](https://okdata.online/guides/douyin-xingtu-creator-rates/)
- [WeChat Official Account API in Python for RAG (2026)](https://okdata.online/guides/wechat-official-account-api-python/)
- [How to get a WeChat Official Account's articles and full text](https://okdata.online/guides/wechat-official-account-articles/)
- [Xiaohongshu API in Python: notes, profiles and comments (2026)](https://okdata.online/guides/xiaohongshu-api-python/)
- [How to export Xiaohongshu comments for a keyword](https://okdata.online/guides/xiaohongshu-note-comments/)
- [How to search Xiaohongshu notes and export them to CSV](https://okdata.online/guides/xiaohongshu-search-export-notes/)
- [Why can't Perplexity or ChatGPT search find Douyin and Xiaohongshu posts?](https://okdata.online/answers/ai-search-cant-find-douyin-xiaohongshu/)
- [What do view=compact and fields= do, and do they change the price?](https://okdata.online/answers/api-view-fields-params/)
- [How do I stop an AI agent from overspending on a paid data API?](https://okdata.online/answers/cap-ai-agent-spend-data-api/)
- [Can I connect ChatGPT to Douyin or Xiaohongshu data?](https://okdata.online/answers/chatgpt-douyin-xiaohongshu-data/)
- [How do I give a LangChain or LangGraph agent social media data tools?](https://okdata.online/answers/langchain-mcp-social-data-tools/)

## Sources

- [Model Context Protocol specification 2026-07-28: Transports](https://modelcontextprotocol.io/specification/2026-07-28/basic/transports) (read 2026-11-12)
- [What is the Model Context Protocol (MCP)?](https://modelcontextprotocol.io/docs/getting-started/intro) (read 2026-11-12)
- [okdata docs: MCP reference (connection, tools, auth and limits)](https://okdata.online/docs/mcp/) (read 2026-11-12)
- [okdata docs: billing, holds and what is free](https://okdata.online/docs/billing/) (read 2026-11-12)

## Other comparisons

- [How to collect Douyin comments: API, crawler or no-code (2026)](https://okdata.online/compare/douyin-comment-scraping/)
- [Douyin data APIs: official vs third-party vs open-source (2026)](https://okdata.online/compare/douyin-data-apis/)
- [Official platform APIs vs third-party data APIs (2026)](https://okdata.online/compare/official-apis-vs-data-apis/)
- [Scraping it yourself vs a per-call data API: cost, upkeep and risk](https://okdata.online/compare/scraping-vs-data-api/)
- [How to choose a social media data API (2026)](https://okdata.online/compare/social-media-data-apis/)
- [WeChat article APIs: official vs third-party vs open-source (2026)](https://okdata.online/compare/wechat-article-data-apis/)
- [Ways to get WeChat Official Account data: the official API, RSS bridges and data APIs](https://okdata.online/compare/wechat-official-account-data-apis/)
- [Xiaohongshu data APIs: official, third-party or open-source (2026)](https://okdata.online/compare/xiaohongshu-data-apis/)
- [Xiaohongshu, Douyin and WeChat MCP servers: self-hosted vs hosted](https://okdata.online/compare/xiaohongshu-douyin-wechat-mcp-servers/)
