X (Twitter) MCP Server: Tools, Setup for Claude Code, Cursor & More
Not the official X (Twitter) MCP server. This one is built by the community. X (Twitter) makes its own: X MCP (X API) →
Search, read and publish X posts and manage users, lists and media via the X API v2.
Works in
12 should work
Tap an app to see how to set it up and any known problems.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Client does not support this transport.
Client does not support this transport.
Install X (Twitter) MCP
Claude Code
- 1
Copy this prompt.
Add the X (Twitter) MCP server to Claude Code. Run this command: claude mcp add x-twitter -e X_API_KEY=<X_API_KEY> -e X_API_KEY_SECRET=<X_API_KEY_SECRET> -e X_ACCESS_TOKEN=<X_ACCESS_TOKEN> -e X_ACCESS_TOKEN_SECRET=<X_ACCESS_TOKEN_SECRET> -e MEDIA_ROOT=<MEDIA_ROOT> -- docker run -i --rm -e X_API_KEY -e X_API_KEY_SECRET -e X_ACCESS_TOKEN -e X_ACCESS_TOKEN_SECRET -e MEDIA_ROOT ghcr.io/role1776/mcp-x Ask me for X_API_KEY, X_API_KEY_SECRET, X_ACCESS_TOKEN, X_ACCESS_TOKEN_SECRET, MEDIA_ROOT and only put the values in that config, nowhere else. Then check that it loaded and tell me if I need to sign in or restart.
- 2
Paste it into Claude Code. It shows the change and asks before running it.
Requires Docker.
Built from the package data we hold. Not yet tested by us.
Tools
We don't list X (Twitter) MCP's tools here yet. After you connect it, ask your assistant "What can you do with X (Twitter) MCP?" to see them.
Information
updated Nov 2, 2026
- Publisher
- Community
- Package
ghcr.io/role1776/mcp-x- Registry
- Docker
- Transport
- stdio
- Version
- 0.1.1
- License
- MIT
- Last commit
- Sep 10, 2026
- Open issues
- 0
- Listed in
- Official MCP registry