Skip to main content
Glama
README.md
# Silkline MCP

[![mcptry](https://mcptry.com/badge/com.silklinedata/silkline)](https://mcptry.com/servers/com.silklinedata/silkline)

**The Chinese internet, as one API, now inside your AI agent.**

Ask Claude, Cursor or any MCP client for Xiaohongshu notes, Douyin comments, Weibo hot searches or Taobao products, and it fetches them live, as clean JSON, while you watch. One hosted server, three tools, **273 endpoints across 33 platforms**. Pay per record. No subscription, nothing to install.

```bash
claude mcp add --transport http silkline https://api.silklinedata.com/mcp \
  --header "Authorization: Bearer $SILKLINE_API_KEY"
```

That is the whole setup. [Get a key](https://silklinedata.com/keys) · [Every endpoint](ENDPOINTS.md) · [Other clients](#connect-in-a-minute) · [Pricing](https://silklinedata.com/pricing)

---

## Why people plug it in

| Without it | With it |
|---|---|
| A scraper per platform, each with its own login, layout and breakage | One address and one key for all 33 platforms |
| Your agent guesses which data exists | `search_endpoints` tells it, with parameters and the price per record |
| Surprise bills | Every answer says what that call cost and what is left |

- **Your context stays small.** Three tools by default, not 273. The agent searches the catalog, then calls what it found.
- **Searching is free and needs no key.** Connect, list the tools and browse every endpoint before you spend anything.
- **Honest billing.** You pay per record returned. Errors and timeouts on our side are not charged.

## Connect in a minute

1. Sign in at [silklinedata.com](https://silklinedata.com) and create an API key on the [API keys page](https://silklinedata.com/keys). New accounts get trial credit.
2. Add the server to your client. The address is `https://api.silklinedata.com/mcp` (Streamable HTTP), and the key goes in the header `Authorization: Bearer slk_...`.
3. Ask in plain words: *"Find 20 Xiaohongshu notes about coffee from this month and summarise what people complain about."*

| Client | How |
|---|---|
| Claude Code | One command, above. Details: [clients/claude-code.md](clients/claude-code.md) |
| Claude Desktop and claude.ai | Custom connector: [clients/claude-desktop.md](clients/claude-desktop.md) |
| Cursor | `~/.cursor/mcp.json`: [clients/cursor.md](clients/cursor.md) |
| VS Code (GitHub Copilot) | `.mcp.json` or `~/.copilot/mcp-config.json`: [clients/vscode.md](clients/vscode.md) |
| Codex | `~/.codex/config.toml`: [clients/codex.md](clients/codex.md) |
| Gemini CLI | One command: [clients/gemini-cli.md](clients/gemini-cli.md) |
| Anything else that speaks Streamable HTTP | [clients/other.md](clients/other.md) |

A client that takes only an address and no headers can use `https://api.silklinedata.com/mcp/slk_YOUR_KEY`. That address *is* your key: do not share it or post a screenshot of it. If it leaks, revoke the key on the API keys page and create another.

## The three tools

| Tool | What it does | Key | Cost |
|---|---|---|---|
| `search_endpoints` | Finds endpoints by keywords (English or Chinese) and platform. Each result has the endpoint id, what it returns, the price per record and its parameters. With no arguments it lists every platform. | not needed | free |
| `call_endpoint` | Fetches live public data from one endpoint. Takes `endpoint`, `params`, `limit` (1 to 100, default 10) and `cursor` for the next page. | needed | per record returned |
| `get_balance` | Shows the balance in USD: paid, trial credit, and what open requests are holding. | needed | free |

### What a session looks like

The agent searches first (a real answer, 2026-11-23, shortened):

```jsonc
// search_endpoints { "query": "xiaohongshu notes search", "limit": 2 }
{
  "endpoints": [
    {
      "endpoint": "xiaohongshu/search",
      "platform": "Xiaohongshu (RedNote)",
      "title": "Search notes by keyword",
      "summary": "Send a keyword; get matching notes with title, description, author, likes, collects, comments, shares, cover and link.",
      "price_usd": { "result": "0.001800" },
      "min_per_page_usd": "0.025000",
      "pageable": true,
      "params": [
        { "name": "keyword", "type": "string", "required": true, "description": "Search keyword. Chinese keywords return the best results." }
      ],
      "example_params": { "keyword": "护肤" }
    }
  ],
  "matched": 88
}
```

Then it calls the endpoint it picked:

```jsonc
// call_endpoint { "endpoint": "xiaohongshu/search", "params": { "keyword": "秋冬穿搭" }, "limit": 10 }
{
  "meta": { "charged_usd": "…", "balance_usd": "…" },
  "cursor": "…",
  "data": [
    {
      "type": "note",
      "noteId": "6a7718b7000000002800942d",
      "title": "4️⃣0️⃣套‖学生党秋冬穿搭",
      "publishedAt": "2026-08-08T11:53:27Z",
      "likes": 3467,
      "collects": 1886,
      "comments": 41,
      "shares": 352
      // … author, cover, images and link
    }
    // … 9 more
  ]
}
```

`meta.charged_usd` is what that call was charged and `meta.balance_usd` what is left. Send the `cursor` back, with the same params, for the next records.

### One tool per endpoint, if you prefer

If you use one or two platforms and want each of their endpoints as its own tool, add `?platforms=` to the address, for example `https://api.silklinedata.com/mcp?platforms=xiaohongshu,douyin`. Platform ids are in the search results; at most 80 tools.

## Platforms

**Chinese social and content:** Xiaohongshu (RedNote), Douyin, Weibo, Zhihu, Bilibili, WeChat, Kuaishou, Douban, Toutiao, Youku

**Creators and analytics:** Douyin Analytics, Xingtu (Douyin), Pugongying (Xiaohongshu), Huahuo, WeChat Index

**E-commerce:** Taobao, JD.com, 1688, Douyin Shop, TikTok Shop, AliExpress, Amazon

**Global:** TikTok, TikTok LIVE, TikTok Creative Center, Instagram, YouTube, Reddit, Threads, Telegram, X (Twitter), IMDb

**Search:** China web search

Posts, videos, comments, products, reviews, rankings and creator data. The full list with prices is in [ENDPOINTS.md](ENDPOINTS.md); the live list is whatever `search_endpoints` returns.

## Pricing

You pay per record; when a request returns few records or none, it is charged at most the endpoint minimum for each page it reads, possibly less, and errors or timeouts on our side are not charged.

Each endpoint's price per record and minimum per page are in [ENDPOINTS.md](ENDPOINTS.md) and on the [pricing page](https://silklinedata.com/pricing). Asking for more records than you need costs more, so set `limit` to what you need. Sending the same call again is charged again: if a call timed out, check `get_balance` or the [Requests page](https://silklinedata.com/requests) first.

## Errors

Without a key, with a wrong key or with too little balance, the tool answers with what happened, whether anything was charged and where to fix it. Short-lived failures (a rate limit, a timeout, a busy moment) say you can try again.

## Keep your key safe

Put the key in your client's secret settings or an environment variable, not in a prompt, a committed file or a URL you share. Every example in this repository uses a placeholder (`slk_YOUR_KEY` or `$SILKLINE_API_KEY`); none contains a real key.

## What is in this repository

Connection settings for each client, the list of endpoints, and the [`server.json`](server.json) this server is registered with in the official MCP Registry as `com.silklinedata/silkline`. The server itself is hosted at `https://api.silklinedata.com/mcp`; there is nothing to run locally.

## Links

[silklinedata.com](https://silklinedata.com) · [GitHub](https://github.com/silklinedata) · [X](https://x.com/silklinedata)

If this saves you a scraper, a star helps other people find it.