This server provides tools to interact with Twitter:
Post a tweet: Create a new tweet with text up to 280 characters.
Search tweets: Find tweets based on a specified query, returning between 10-100 results.
Twitter MCP Server
This MCP server allows Clients to interact with Twitter, enabling posting tweets and searching Twitter.
Quick Start
Create a Twitter Developer account and get your API keys from Twitter Developer Portal
Add this configuration to your Claude Desktop config file:
Windows: %APPDATA%\Claude\claude_desktop_config.json
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Restart Claude Desktop
That's it! Claude can now interact with Twitter through two tools:
post_tweet: Post a new tweetsearch_tweets: Search for tweets
Related MCP server: ClaudeKeep
Example Usage
Try asking Claude:
"Can you post a tweet saying 'Hello from Claude!'"
"Can you search for tweets about Claude AI?"
Troubleshooting
Logs can be found at:
Windows:
%APPDATA%\Claude\logs\mcp-server-twitter.logmacOS:
~/Library/Logs/Claude/mcp-server-twitter.log
Development
If you want to contribute or run from source:
Clone the repository:
Install dependencies:
Build:
Run:
Running evals
The evals package loads an mcp client that then runs the index.ts file, so there is no need to rebuild between tests. You can load environment variables by prefixing the npx command. Full documentation can be found here.
License
MIT