# X (Twitter) MCP Server

SocialToAI is a hosted MCP server that lets your AI read X (Twitter): search posts and read post details, comments, account profiles, an account's posts and the trending list. You add one address to Claude, ChatGPT or Cursor; there is no X account, login or cookie to provide and nothing to install. Calls cost 1 to 6 credits each (from $0.002); failed calls are free. Last tested 2026-10-17.

- Page: https://socialtoai.com/mcp/x/
- Last updated: 2026-10-18
- Last tested: 2026-10-17

## Connect

- MCP (Streamable HTTP): `https://mcp.socialtoai.com/mcp`
- Header: `Authorization: Bearer <YOUR_API_KEY>`
- The full steps for each client: https://socialtoai.com/mcp.md

### Sign in and allow

- Claude app (#claude-app): A form in the app, Customize → Connectors → Add custom connector
- ChatGPT (#chatgpt): A form in the app, ChatGPT settings → Apps → Create

### Your key in a request header

- Claude Code (#claude-code): One command, Terminal
- Cursor (#cursor): A few lines of configuration, ~/.cursor/mcp.json
- Codex (#codex): A few lines of configuration, ~/.codex/config.toml
- Trae (#trae): A few lines of configuration, MCP → Add → Configure manually
- Cherry Studio (#cherry-studio): A form in the app, Settings → MCP Servers → Add
- Dify (#dify): A form in the app, Tools → MCP → Add MCP Server (HTTP)
- n8n (#n8n): A form in the app, MCP Client Tool node

## What your AI can call on X

| Tool | What it returns | Price key | Credits | Parameters and fields |
| --- | --- | --- | --- | --- |
| `search` | Find posts by keyword: text, author, likes, comment count, views and publish time. | `x.search` | 2 | https://socialtoai.com/x-search-api.md |
| `trending` | What is trending now: title, rank and heat. | `x.trending` | 6 | https://socialtoai.com/x-trending-api.md |
| `detail` | One post by ID or link: text, author, likes, comment count, views and publish time. | `x.detail` | 1 | https://socialtoai.com/x-detail-api.md |
| `comments` | The comments under one post: text, likes, reply count and time. | `x.comments` | 2 | https://socialtoai.com/x-comments-api.md |
| `user_profile` | One account: name, bio, followers, following and post count. | `x.user_profile` | 1 | https://socialtoai.com/x-user-profile-api.md |
| `user_posts` | The recent posts of one account. | `x.user_posts` | 2 | https://socialtoai.com/x-user-posts-api.md |

### Only on X (through the call tool)

| Interface | What it does | Price key | Credits | Parameters and fields |
| --- | --- | --- | --- | --- |
| `community` | Get an X community by its ID. | `x.community` | 1 | https://socialtoai.com/x-community-api.md |
| `community_posts` | Get a page of the posts in an X community by the community's ID. | `x.community_posts` | 4 | https://socialtoai.com/x-community-posts-api.md |
| `list_posts` | Get a page of the posts on an X list's timeline by the list's ID, newest first, about 100 a page. | `x.list_posts` | 2 | https://socialtoai.com/x-list-posts-api.md |
| `article` | Get the long-form article attached to an X post by the post's ID. | `x.article` | 2 | https://socialtoai.com/x-article-api.md |
| `quotes` | Get a page of the X posts that quote a post, newest first or most popular first. | `x.quotes` | 4 | https://socialtoai.com/x-quotes-api.md |
| `thread` | Get the posts of an X thread by the ID of any post in it. | `x.thread` | 9 | https://socialtoai.com/x-thread-api.md |
| `followers` | Get a page of the accounts following an X user, up to 200 a page, newest followers first. | `x.followers` | 12 | https://socialtoai.com/x-followers-api.md |
| `following` | Get a page of the accounts an X user follows, up to 200 a page. | `x.following` | 12 | https://socialtoai.com/x-following-api.md |
| `mentions` | Get a page of the posts that mention an X user, newest first. | `x.mentions` | 4 | https://socialtoai.com/x-mentions-api.md |
| `community_members` | Get a page of the accounts that have joined an X community, by the community's ID, about 20 a page. | `x.community_members` | 5 | https://socialtoai.com/x-community-members-api.md |
| `list_followers` | Get accounts that follow an X list, by the list's ID, up to 20. | `x.list_followers` | 5 | https://socialtoai.com/x-list-followers-api.md |
| `list_members` | Get a page of the accounts an X list is made of, by the list's ID, 20 a page. | `x.list_members` | 5 | https://socialtoai.com/x-list-members-api.md |

## A recorded conversation

### Product feedback

> What do people complain about with standing desks on Reddit and X?

| Platform | Tool | Sent | Requests | Returned | Credits |
| --- | --- | --- | --- | --- | --- |
| Reddit | [`search`](https://socialtoai.com/reddit-search-api.md) | `query: "standing desk"` | 1 | 7 posts | 2 |
| X | [`search`](https://socialtoai.com/x-search-api.md) | `query: "standing desk"` | 1 | 11 posts | 2 |
| Reddit | [`comment_insights`](https://socialtoai.com/tools/comment-insights.md) | `targets: ["https://www.reddit.com/r/BuyItForLife/comments/1ntedtv/do_standing_desks_actually_help_or_are_they/","https://www.reddit.com/r/WFH/comments/1q1ia5q/i_bought_an_expensive_standing_desk_6_months_ago/","https://www.reddit.com/r/StandingDesk/comments/qd8b8v/was_your_standing_desk_worth_it_in_the_long_run/"] · focus: "what people complain about with their standing desk" · scale: "small"` | 1 | 173 comments | 84 |
| **Total** |  |  | 3 | 191 items | **88** |

Recorded 2026-10-18

I searched both, then read 173 comments under the 3 most-discussed Reddit threads. 55 of the 162 that could be judged complain about something; the complaints cluster here:

1. **Back and neck pain** (12%, 20 comments): [“Either position for 8 hours solid leaves my back hurting.”](https://www.reddit.com/r/BuyItForLife/comments/1ntedtv/do_standing_desks_actually_help_or_are_they/ngv5bws/)
2. **Forgetting to switch between sitting and standing** (11%, 18 comments): [“I forget I have it most of the time...”](https://www.reddit.com/r/BuyItForLife/comments/1ntedtv/do_standing_desks_actually_help_or_are_they/ngt2t43/)
3. **Sore feet from standing** (8%, 13 comments): [“My feet do get tired by the end of the day it’s better than the back pain.”](https://www.reddit.com/r/WFH/comments/1q1ia5q/i_bought_an_expensive_standing_desk_6_months_ago/nx6mz78/)

Used 88 credits · $0.29. Every claim links to its source.

### Brand buzz

> What are people saying about Notion on X lately?

| Platform | Tool | Sent | Requests | Returned | Credits |
| --- | --- | --- | --- | --- | --- |
| X | [`brand_buzz`](https://socialtoai.com/tools/brand-buzz.md) | `brand: "Notion" · about: "a note-taking and workspace app" · platforms: ["x"] · window: "30d" · scale: "small"` | 1 | 34 posts | 16 |
| **Total** |  |  | 1 | 34 items | **16** |

Recorded 2026-10-18

15 of the 34 posts found are about it: 87% positive, 7% neutral, 7% negative. What they mention most:

1. **Features** (100%, 15 posts): [“Got @… Plus or Pro? That subscription now covers your AI usage in Notion.”](https://x.com/NotionHQ/status/2104994569964388738)
2. **Price** (13%, 2 posts): [“Notion Plus Free for Students & Teachers 😳”](https://x.com/0xranjeet/status/2108545032181666075)
3. **Ease of use** (13%, 2 posts): [“Button automations can now message your agents.”](https://x.com/NotionHQ/status/2110853125389029437)

Used 16 credits · $0.053. Every claim links to its source.

### Viral posts

> Which posts about AI agents took off on X this week?

| Platform | Tool | Sent | Requests | Returned | Credits |
| --- | --- | --- | --- | --- | --- |
| X | [`research viral_finder`](https://socialtoai.com/tools/viral-finder.md) | `query: "AI agents" · window: "7d" · scale: "small"` | 1 | 31 posts | 24 |
| **Total** |  |  | 1 | 31 items | **24** |

Recorded 2026-10-18

31 posts found; 7 did at least 3 times the usual. The formats that took off most, each with its share of the 31 posts the analysis could name:

1. **Showcase** (23%, 7 posts): [“transformed an ordinary academic reading list into an interactive research lab right inside the browser”](https://x.com/Bober_smart/status/2110080979742192101)
2. **Story** (10%, 3 posts): [“Grok Bot built me a completely autonomous business which has already generated $1,100”](https://x.com/AlexFinn/status/2110181971280433613)
3. **List** (29%, 9 posts): [“10 GitHub skills + tools that make Hermes instantly more useful.”](https://x.com/BentoBoiNFT/status/2110111219172712922)

Used 24 credits · $0.08. Every claim links to its source.

## Questions to ask

- Which is bigger on X this week: home coffee or matcha? → search, search: 4 credits ($0.013)
- Read the comments on this X post and tell me what people complain about. → detail, comments × 3: 7 credits ($0.023)
- Find five X accounts that post about camping coffee and show me what they posted lately. → search, user_posts × 5: 15 credits ($0.05)

## What it cannot do

- **Fields X does not give**: They come back as null and are listed in the answer's unavailable, so your AI reads them as “not given”, not as zero. `title`, `metrics.shares`, `is_pinned`, `id`, `heat`, `url`, `parent_id`, `root_id`
- **It reads. It does not post.**: Your AI cannot post, comment, like, follow or send messages on X through SocialToAI.
- **Only what is publicly visible**: Content and account information anyone can see on X. Nothing behind a login: no private accounts, no direct messages, no feed of your own.

## Related pages

- [X (Twitter) API](https://socialtoai.com/platforms/x.md)
- [How do I see what people say about a brand on X (Twitter) with AI?](https://socialtoai.com/docs/guides/track-brand-mentions-on-x.md)
- [How do I get my AI to read Reddit and X for product complaints?](https://socialtoai.com/docs/guides/read-reddit-and-x-for-product-complaints.md)
- [How do I find the posts on a topic that took off on X (Twitter) with AI?](https://socialtoai.com/docs/guides/find-viral-posts-on-x.md)
- [TikTok MCP Server](https://socialtoai.com/mcp/tiktok.md)
- [Instagram MCP Server](https://socialtoai.com/mcp/instagram.md)
- [Reddit MCP Server](https://socialtoai.com/mcp/reddit.md)
- [YouTube MCP Server](https://socialtoai.com/mcp/youtube.md)
- [Xiaohongshu (RedNote) MCP Server](https://socialtoai.com/mcp/xiaohongshu.md)
- [Douyin MCP Server](https://socialtoai.com/mcp/douyin.md)
- [Weibo MCP Server](https://socialtoai.com/mcp/weibo.md)
