Cursor · MCP
Douyin, TikTok and Xiaohongshu data in Cursor
Cursor supports remote MCP servers with OAuth sign-in. Put https://xtikapi.com/v1/mcp in mcp.json, sign in here and click Allow, with no key to copy, and the agent can look things up. When it writes code against the API, it can describe the endpoint, call it once for a real response and code against the actual fields instead of guessing.
Get an API keyAdd it to mcp.json and sign in
~/.cursor/mcp.json works in every project; .cursor/mcp.json in a repo is for that project only.
- Put the config below in ~/.cursor/mcp.json.
- When Cursor connects it asks you to sign in; that opens the authorization page here. Sign in (or sign up for trial credit) and click Allow.
- xtikapi and its 4 tools show under Customize in the sidebar. The connection appears under Your MCP connections on the MCP page, where you can give it a spend limit.
- Ask the agent: "Search TikTok for camping and list the 10 most-viewed videos."
{
"mcpServers": {
"xtikapi": {
"url": "https://xtikapi.com/v1/mcp"
}
}
}Use an API key instead
When you would rather skip the browser sign-in, or on a machine without one.
- Create a key in the console and give it a spend limit.
- Put the config below in ~/.cursor/mcp.json with your key, then restart Cursor.
{
"mcpServers": {
"xtikapi": {
"url": "https://xtikapi.com/v1/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}What people build with it
Write data models from a real response
"Write a TypeScript type for a Xiaohongshu note." The agent describes the endpoint, calls it once for a sample and types the actual fields.
Endpoints: Xiaohongshu note details API ($0.02)
Cost: $0.02 once.
Topic research while you build
Building a content tool? Have the agent pull Bilibili trending and TikTok hashtags once as test data.
Endpoints: Bilibili hot searches API ($0.002), TikTok trending hashtags API ($0.002)
Cost: Two calls, $0.004.
Platforms it can read
- Douyin34 endpoints
- Xiaohongshu16 endpoints
- TikTok24 endpoints
- Kuaishou9 endpoints
- Bilibili10 endpoints
- Weibo12 endpoints
- Zhihu16 endpoints
- WeChat Official Accounts7 endpoints
- WeChat Channels10 endpoints
- YouTube12 endpoints
- Instagram9 endpoints
- X16 endpoints
- Reddit11 endpoints
- Threads5 endpoints
- Xingtu14 endpoints
- Pugongying15 endpoints
- WeChat Search1 endpoint
- Telegram5 endpoints
- LinkedIn3 endpoints
Questions
Will Cursor call tools without asking?
Cursor asks for approval before using MCP tools by default, and MCP follows the same run modes as terminal commands. If you switched to an automatic run mode it will not ask, and the key’s spend limit is your backstop.
Using a key but rather not keep it in mcp.json?
Write the value as Bearer ${env:XTIKAPI_KEY} and Cursor reads it from the environment it started in. Cursor opened from the Dock may not see variables from ~/.zshrc; if so, launch it from a terminal with the cursor command.
What does it cost in Cursor?
Cursor bills you as usual; XTikAPI charges per call, from $0.002 depending on the endpoint. You pay only when the platform answers; errors and timeouts are free. New accounts get $0.50 of trial credit with no card.
Do I need a Douyin or Xiaohongshu account?
No. No platform login, cookie or QR scan, only an XTikAPI API key. It reads public data, so none of your own accounts can be banned for automation.
Can a runaway workflow drain my balance?
Give this tool its own key with a spend limit in the console; at the limit that key stops and your other keys keep working. The balance is prepaid, so it stops at zero and never runs into debt.
Which platforms can it read?
19 platforms and 229 endpoints: Douyin, Xiaohongshu, TikTok, Kuaishou, Bilibili, Weibo, WeChat, Zhihu, YouTube, Instagram, X, Reddit and more. Posts, comments, accounts and trends come back in one shape, so switching platforms does not break the steps after it.
Sources
The steps follow Cursor's own docs: