Twitter MCP Server
@Rakibulislamsarkar
This MCP server allows Clients to interact with Twitter, enabling posting tweets and searching Twitter.
Overview
What is Twitter MCP Server?
An MCP (Model Context Protocol) server that enables AI clients like Claude to interact with Twitter. It allows posting tweets and searching Twitter using the Twitter API. It is for developers who want to integrate Twitter functionality into their AI assistant workflow.
How to use Twitter MCP Server?
Configure it in the Claude Desktop config file (claude_desktop_config.json) with your Twitter API credentials. After restarting Claude Desktop, you can use two tools: post_tweet to post a tweet and search_tweets to search for tweets. Example prompts: "Can you post a tweet saying 'Hello from Claude!'" or "Can you search for tweets about Claude AI?"
Key features of Twitter MCP Server
- Post tweets directly from Claude Desktop
- Search for tweets via the Twitter API
- Uses standard MCP protocol for integration
- Requires Twitter Developer API credentials
- Logs activity to local files for troubleshooting
Use cases of Twitter MCP Server
- Automate tweeting from an AI assistant
- Search and retrieve tweet content through conversational prompts
- Integrate Twitter functionality into Claude Desktop workflows
FAQ from Twitter MCP Server
What does Twitter MCP Server do?
It allows MCP clients (e.g., Claude Desktop) to post tweets and search Twitter using Twitter API credentials.
What are the dependencies or runtime requirements?
You need a Twitter Developer account with API keys (API_KEY, API_SECRET_KEY, ACCESS_TOKEN, ACCESS_TOKEN_SECRET) and Node.js to run the server.
Where do I put the configuration?
In your Claude Desktop config file: %APPDATA%\Claude\claude_desktop_config.json on Windows or ~/Library/Application Support/Claude/claude_desktop_config.json on macOS.
What tools does it provide?
Two tools: post_tweet (post a new tweet) and search_tweets (search for tweets).
How can I troubleshoot issues?
Check the logs at %APPDATA%\Claude\logs\mcp-server-twitter.log on Windows or ~/Library/Logs/Claude/mcp-server-twitter.log on macOS.