MCP server One step to connect

Let Claude, Cursor, VS Code and ChatGPT fetch public data from 33 platforms themselves.

On this page9
  1. Address and key
  2. Claude Code
  3. Claude Desktop and claude.ai
  4. Cursor
  5. VS Code
  6. ChatGPT
  7. Other clients
  8. Tools
  9. Errors and charges

Address and key

The MCP server's address (Streamable HTTP):

URL
https://api.silklinedata.com/mcp

It takes your API key, the same one you call the API with, in the header Authorization: Bearer slk_YOUR_KEY. No key yet? Sign in and create one on the API keys page (new accounts get trial credit). In every block below, slk_YOUR_KEY is the only thing to replace.

A client that takes only an address, no headers, uses the address with the key in it: 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.

Claude Code

Run one line in a terminal:

Terminal
claude mcp add --transport http silkline https://api.silklinedata.com/mcp \
  --header "Authorization: Bearer slk_YOUR_KEY"

Then type /mcp in Claude Code to see silkline connected.

Claude Desktop and claude.ai

Settings, Connectors, Add, then Add custom connector. Name it Silkline, enter the address with your key, choose No sign-in and click Add. claude.ai on the web and Claude Desktop share this setting.

URL
https://api.silklinedata.com/mcp/slk_YOUR_KEY

If the dialog has Request headers, you can enter just https://api.silklinedata.com/mcp as the address and add the header authorization with the value Bearer slk_YOUR_KEY instead.

Cursor

Put this in ~/.cursor/mcp.json (every project) or in your project's .cursor/mcp.json:

mcp.json
{
  "mcpServers": {
    "silkline": {
      "url": "https://api.silklinedata.com/mcp",
      "headers": {
        "Authorization": "Bearer slk_YOUR_KEY"
      }
    }
  }
}

VS Code

Put this in your project's .vscode/mcp.json. The key stays out of the file: VS Code asks for it, hidden, the first time the server starts.

.vscode/mcp.json
{
  "inputs": [
    {
      "type": "promptString",
      "id": "silkline-key",
      "description": "Silkline API key",
      "password": true
    }
  ],
  "servers": {
    "silkline": {
      "type": "http",
      "url": "https://api.silklinedata.com/mcp",
      "headers": {
        "Authorization": "Bearer ${input:silkline-key}"
      }
    }
  }
}

ChatGPT

Open Plugins, click +, choose Add custom MCP server. Name it Silkline, enter the address with your key as the Server URL, choose No authentication, accept the warning and create it.

Server URL
https://api.silklinedata.com/mcp/slk_YOUR_KEY

Other clients

Most clients that speak Streamable HTTP take a block like this:

JSON
{
  "mcpServers": {
    "silkline": {
      "type": "http",
      "url": "https://api.silklinedata.com/mcp",
      "headers": {
        "Authorization": "Bearer slk_YOUR_KEY"
      }
    }
  }
}

Tools

Three tools by default, so your context stays almost empty: find an endpoint with search_endpoints, then fetch records with call_endpoint.

  • search_endpoints: Find data endpoints by keywords (English or Chinese) and platform. Each result has the endpoint id to pass to call_endpoint, what it returns, the price per record and its parameters. Without query and platform it lists every platform with its number of endpoints. Free, no key needed.
  • call_endpoint: Fetch live public data from one endpoint. Use search_endpoints first to get the endpoint id and its parameters. The answer is { data, cursor, meta }: meta.charged_usd is what this call was charged and meta.balance_usd what is left. Charged per record returned; errors on our side are not charged. Needs an API key.
  • get_balance: The account's balance in USD: paid, trial credit, and what open requests are holding. Free. Needs an API key.

If you use one or two platforms and want each of their endpoints as its own tool, add ?platforms=xiaohongshu,douyin to the address (platform ids are in the search results; at most 80 tools).

Errors and charges

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. Listing the tools and searching need no key and are free.

If a call times out or the connection drops, check get_balance or the Requests page of the console to see whether it ran and was charged before you send it again: sending the same call again is charged again, as with the API.

Fetching is exactly like calling the API: pay per record returned. Every result's meta.charged_usd says what that call was charged and meta.balance_usd what is left. The rules are in the docs and on the pricing page.