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
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.log
- macOS:
~/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
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
An MCP server that enables Claude to interact with Twitter, allowing for posting tweets and searching Twitter content.
Related Resources
Related MCP Servers
- AsecurityAlicenseAqualityAn MCP server that allows Claude to create, manage and publish X/Twitter posts directly through the chat interface.Last updated -535PythonMIT License
- -security-license-qualityAn MCP server that enables Claude and other MCP clients to interact with Mattermost workspaces, providing channel management, messaging capabilities, and topic monitoring functionality.Last updated -TypeScript
- -securityAlicense-qualityA headless MCP server that provides Twitter API access without requiring local credential setup, enabling core Twitter operations like searching tweets, getting user tweets, posting tweets, and replying to tweets.Last updated -PythonMIT License
- -securityFlicense-qualityAn MCP server that allows Claude to interact with Discord by providing tools for sending/reading messages and managing server resources through Discord's API.Last updated -JavaScript