X (Twitter) — MCP server for Claude Code: posts, DMs, lists
X (Twitter) is an MCP server for Claude Code to post tweets, search posts, and manage DMs, lists, and Community Notes from your editor.
no license 2,522 installs updated 2025-11-19
claude mcp add --transport http twitter https://twitter.run.toolsWhat X (Twitter) does
The server exposes a toolkit for working with X: compose and send tweets, search posts and communities, handle direct messages, manage lists, bookmarks, and likes. Read timelines, search news, track post analytics, add captions and alt text to media. Includes tools for Community Notes — rate existing notes or create new ones on other posts.
Connects via HTTP to https://twitter.run.tools. You need X credentials; the server forwards requests to a remote endpoint that calls the platform API. Installation steps vary by editor: Claude Code uses claude mcp add, Cursor needs JSON config, GitHub Copilot requires its own settings format.
What it helps with
- Post tweets and messages to X from an agent
- Search posts and news by keyword
- Manage lists, follows, likes, and bookmarks
- Send and receive direct messages
- Create or rate Community Notes on posts
Example prompts for the agent
- Post about the new 2.0 release with #launch hashtag
- Find posts mentioning my company and show the most popular ones
- Create a sales contacts list and add five people to it
How to install X (Twitter)
Platform CLI: remote server
claude mcp add --transport http twitter https://twitter.run.toolsPlatform CLI: remote server
codex mcp add x-twitter --url https://twitter.run.toolsConfig file
{
"mcpServers": {
"x-twitter": {
"url": "https://twitter.run.tools"
}
}
}Config file
{
"servers": {
"x-twitter": {
"type": "http",
"url": "https://twitter.run.tools"
}
}
}Platform CLI: remote server
gemini mcp add -t http x-twitter https://twitter.run.toolsStep by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about X (Twitter)
How do I install X (Twitter) in Claude Code?
Run claude mcp add --transport http twitter https://twitter.run.tools or claude mcp add --transport http x-twitter https://twitter.run.tools. Other editors differ: Codex uses codex mcp add x-twitter --url https://twitter.run.tools, Cursor requires JSON config, GitHub Copilot has its own format.
What does the X (Twitter) MCP server do?
It gives your agent access to X features through tools: write and search posts, manage DMs and lists, view analytics, add captions to media, create and rate Community Notes. Requests go to a remote server that calls the X API.
What do I need to set up before connecting?
You'll need X credentials, which the server will request on first use. After that, your agent can send requests through the https://twitter.run.tools endpoint.