# Connect Claude Code to TikTok, Reddit and Xiaohongshu data

Claude Code can read publicly visible posts, comments and profiles on 18 platforms, including TikTok, Reddit and Xiaohongshu through SocialToAI's hosted MCP server: run one command, sign in with a code we email you and press Allow; there is no key to copy. Calls cost from 1 credit (≈ $0.002–$0.0033); failed calls are free.

- Page: https://socialtoai.com/connect/claude-code/
- Last updated: 2026-10-25

## Set up Claude Code

Claude Code connects by signing in: you run one command with the MCP address, sign in to SocialToAI and allow the connection. Nothing to install and no key to copy.

- 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.

**Terminal**

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

> **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_KEY" to the command.

## Check that it works

Ask Claude Code: “Which SocialToAI tools can you use?” It lists 16 tools; finding and listing them is free. Then ask in plain words: you do not name tools or parameters, the client picks them.

## What to ask

A first question on each platform, and the call it makes. The credits are per call; your AI may make a few calls for one answer.

| Platform | Ask | Price key | Credits |
| --- | --- | --- | --- |
| [TikTok](https://socialtoai.com/platforms/tiktok.md) | Search TikTok for videos about "space station". | `tiktok.search` | 2 |
| [Reddit](https://socialtoai.com/platforms/reddit.md) | Search Reddit for posts about "saturn rings". | `reddit.search` | 2 |
| [X (Twitter)](https://socialtoai.com/platforms/x.md) | Search X for posts about "weather forecast". | `x.search` | 2 |
| [YouTube](https://socialtoai.com/platforms/youtube.md) | Search YouTube for videos about "meteor shower". | `youtube.search` | 2 |
| [Xiaohongshu (RedNote)](https://socialtoai.com/platforms/xiaohongshu.md) | Search Xiaohongshu for notes about "咖啡". | `xiaohongshu.search` | 12 |
| [Douyin](https://socialtoai.com/platforms/douyin.md) | Search Douyin for videos about "露营". | `douyin.search` | 12 |
| [Instagram](https://socialtoai.com/platforms/instagram.md) | Find Instagram accounts about "nike". | `instagram.search:user` | 3 |
| [LinkedIn](https://socialtoai.com/platforms/linkedin.md) | Search LinkedIn for posts about "ai agents". | `linkedin.search` | 2 |

## What it costs

Calls cost from 1 credit (≈ $0.002–$0.0033), and every answer states what it charged and the balance left. Failed calls are free; a search that runs and finds nothing is charged as a call. 100 free credits on sign-up, no card; credits never expire and there is no subscription. See [pricing](https://socialtoai.com/pricing.md).

The connection is listed in the console under API keys, named Claude Code. Give it a daily cap there, or revoke it at any time.

## Questions

### Do I need accounts on the platforms?

No. SocialToAI reads what is publicly visible on each platform; you never sign in to them or give a cookie.

### Where is my key?

There is none to handle: Claude Code holds a sign-in that SocialToAI gave it, and you can revoke it in the console. Never paste a key into a chat.

### Which platforms can it read?

18 platforms: [all platforms and what each call costs](https://socialtoai.com/platforms.md).

- [All clients](https://socialtoai.com/mcp.md): One address for every client, and the tools it lists.
- [Claude](https://socialtoai.com/connect/claude.md): Sign in, no key.
- [ChatGPT](https://socialtoai.com/connect/chatgpt.md): Sign in, no key.
- [Cursor](https://socialtoai.com/connect/cursor.md): Sign in, no key.
