---
title: "Claude Code & Cursor Read Xiaohongshu, Douyin · SocialToAI"
canonical: https://socialtoai.com/how-to/let-claude-code-and-cursor-read-xiaohongshu-and-douyin/
published: 2026-11-05
updated: 2026-11-05
---

# Let Claude Code and Cursor read Xiaohongshu and Douyin, with no QR code or cookie

Servers you run yourself read Xiaohongshu and Douyin through an account you sign in, by QR code or cookie, and stop when that session ends. SocialToAI is hosted: one command in Claude Code, a few lines in Cursor, then sign in with your email. No QR code, no cookie, nothing to keep running. It uses no account of yours, so it cannot affect your account. From 12 credits a call; failed calls are free.

- Page: https://socialtoai.com/how-to/let-claude-code-and-cursor-read-xiaohongshu-and-douyin/
- Published: 2026-11-05
- Last updated: 2026-11-05

## What the platforms' own APIs give

Xiaohongshu's open platform currently offers login only: after the app passes review, it can read the basic profile (nickname, avatar) of users who authorise it. No API for reading public notes or comments is documented.

Source: [Xiaohongshu's developer documentation](https://openaccount.xiaohongshu.com/docs/quick-start), checked 2026-10-17.

Douyin's open platform provides video data for users who authorise the app: the video list endpoint needs the user's authorisation and a permission applied for in the developer console. No endpoint for reading any public video or profile is documented.

Source: [Douyin's developer documentation](https://open.douyin.com/platform/resource/docs/openapi/video-management/douyin/search-video/account-video-list), checked 2026-10-17.

## A server you run yourself, or a hosted one

A server on your own machine is free software and it can see what your account sees. Its price is paid in other ways, and it helps to know them before you sign in.

|  | A server you run yourself | SocialToAI |
| --- | --- | --- |
| What you hand over | A QR-code login or cookies of an account on the platform | An email address, for your account here |
| Whose account reads | Yours. Limits and penalties for what it reads fall on that account | No account of yours, so it cannot affect your account |
| When a session ends | Reads stop until you sign in again | Nothing to renew on the platform |
| What must keep running | The server, often with a browser | Nothing: one remote address |
| What it can reach | What your account can see | Publicly visible content and account information only |
| Money | Free, plus your time and the account at stake | Per call, from 12 credits; failed calls are free |

## Connect it

### Claude Code

**Terminal**

```
claude mcp add --transport http socialtoai https://mcp.socialtoai.com/mcp
```

- Run the command in your terminal.
- Start Claude Code, type /mcp, pick socialtoai and choose Authenticate.
- Your browser opens: sign in to SocialToAI with the code we email you and press Allow. Then ask.

> **Note** Signed in to Claude Code with the Claude account where you added the SocialToAI connector? It is already there; skip the command.

> **Note** On a server or in CI, where nobody signs in, send a key instead: add --header "Authorization: Bearer $SOCIALTOAI_API_KEY" to the command.

The full setup, and what to check once it is connected: [Connect Claude Code](https://socialtoai.com/connect/claude-code.md).

### Cursor

**~/.cursor/mcp.json**

```
{
  "mcpServers": {
    "socialtoai": {
      "url": "https://mcp.socialtoai.com/mcp"
    }
  }
}
```

- Add the server to ~/.cursor/mcp.json, or to .cursor/mcp.json in one project.
- Open Cursor's settings, find MCP: socialtoai asks you to log in. Log in.
- Your browser opens: sign in to SocialToAI with the code we email you and press Allow. Then ask in the chat.

> **Note** Where nobody signs in, send a key instead: add "headers": { "Authorization": "Bearer ${env:SOCIALTOAI_API_KEY}" } beside the url.

The full setup, and what to check once it is connected: [Connect Cursor](https://socialtoai.com/connect/cursor.md).

## What to ask

| Ask | Credits |
| --- | --- |
| Search Xiaohongshu for notes about "咖啡". | 12 |
| Read the comments under this Xiaohongshu note: 6a9c5884000000002b002d95 | 12 |
| Read this Xiaohongshu note: 6ac76250000000000a021233 | 12 |
| What has this Xiaohongshu account posted lately: 63bed214000000002702b862 | 12 |

| Ask | Credits |
| --- | --- |
| Search Douyin for videos about "露营". | 12 |
| Read the comments under this Douyin video: 7694940173372575014 | 2 |
| Read this Douyin video: 7694940173372575014 | 2 |

> **Links to notes** Paste a note's link as it is, with everything after the question mark, or a whole share text with the link in it.

## What it costs

| What | Credits a call | Calls | Credits | At the first pack |
| --- | --- | --- | --- | --- |
| Search Xiaohongshu once | 12 | 1 | 12 | $0.04 |
| Read the comments of 5 notes | 12 | 5 | 60 | $0.20 |
| Search Douyin once | 12 | 1 | 12 | $0.04 |
| Read the comments of 5 videos | 2 | 5 | 10 | $0.033 |

100 free credits on sign-up, no card. Every answer states what it charged. Calls are read-only: this cannot post, like or follow.

## FAQ

### Do I need to scan a QR code or copy a cookie?

No. You never sign in to Xiaohongshu or Douyin. You sign in to SocialToAI with a code sent to your email.

### Can this get my account banned?

It uses no account of yours, so it cannot affect your account.

### Can it post or reply for me?

No. Every call is read-only, and it reads publicly visible content only.

### Does it work on a server, with no browser to sign in?

Send a key in a header instead, as the notes above say. The key lives in an environment variable, not in the file.

### How much does it cost to try?

100 free credits on sign-up, no card. A Xiaohongshu search is 12 credits.

- [Xiaohongshu (RedNote) API](https://socialtoai.com/platforms/xiaohongshu.md): Every call on Xiaohongshu and its credits.
- [Does Xiaohongshu have an API?](https://socialtoai.com/does-xiaohongshu-have-an-api.md): What its own API allows, with sources.
- [Xiaohongshu (RedNote) MCP server](https://socialtoai.com/mcp/xiaohongshu.md): Recorded conversations and their cost.
- [Connect Claude Code](https://socialtoai.com/connect/claude-code.md): The full setup and how to check it.
