This repository provides an MCP server that allows Claude to interact with Twitter, enabling it to post tweets and search for tweets using Twitter's API. This repository provides an MCP
This MCP server enables Claude to interact with Twitter, allowing it to post tweets and search for tweets.
<a href="https://glama.ai/mcp/servers/dhsudtc7cd"> <img width="380" height="200" src="https://glama.ai/mcp/servers/dhsudtc7cd/badge" alt="Twitter Server MCP server" /> </a>To begin, create a Twitter Developer account to obtain your API keys. Next, configure Claude Desktop by adding the provided JSON configuration to your claude_desktop_config.json
file, located in %APPDATA%\Claude\
(Windows) or ~/Library/Application Support/Claude/
(macOS). Insert your API keys into the env
section of the configuration. Restart Claude Desktop to enable the post_tweet
and search_tweets
tools.
You can ask Claude to "post a tweet saying 'Hello from Claude!'" or "search for tweets about Claude AI?".
Logs are located in %APPDATA%\Claude\logs\mcp-server-twitter.log
(Windows) or ~/Library/Logs/Claude/mcp-server-twitter.log
(macOS).
To contribute or run from source, clone the repository, install dependencies using npm install
, build with npm run build
, and run with npm start
.
MIT
EnesCinr/twitter-mcp
December 11, 2024
March 28, 2025
TypeScript