X (Twitter) MCP Server
Model Context Protocol Server for Accessing twitter
Overview
Twitter MCP Server is a Model Context Protocol server implementation designed for integrating with the Twitter API, allowing developers to perform various operations on Twitter data.
To use the Twitter MCP Server, clone the repository, install the necessary dependencies, configure your Twitter API credentials in the .env file, build the project, and start the server.
- Post, delete, and manage tweets. - Search for tweets and retrieve analytics. - Get user information and manage user lists. - Like, retweet, and engage with tweets.
- Automating tweet posting and management for social media campaigns.
- Analyzing tweet performance and user engagement metrics.
- Building applications that require real-time Twitter data access.
Add to your AI client
Use these steps to connect X (Twitter) MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"mcp-twitter-server-crazyrabbitltc": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-twitter-server-crazyrabbitltc"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"mcp-twitter-server-crazyrabbitltc": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-twitter-server-crazyrabbitltc"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"mcp-twitter-server-crazyrabbitltc": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-twitter-server-crazyrabbitltc"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"mcp-twitter-server-crazyrabbitltc": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-twitter-server-crazyrabbitltc"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"mcp-twitter-server-crazyrabbitltc": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-twitter-server-crazyrabbitltc"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"mcp-twitter-server-crazyrabbitltc": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-twitter-server-crazyrabbitltc"
]
}
}
}FAQ
What is required to run the server?
You need to have Node.js installed and valid Twitter API credentials.
Can I use this server for commercial purposes?
Yes, as long as you comply with Twitter's API usage policies.
What happens if I encounter an error?
The server provides standardized error responses to help you troubleshoot issues.