by EnesCinr
Interact with Twitter to post tweets and search tweets programmatically via an MCP server.
Twitter MCP provides an MCP server that enables clients to post new tweets and search existing tweets on Twitter.
claude_desktop_config.json
file (Windows: %APPDATA%\Claude\claude_desktop_config.json
; macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
).post_tweet
and search_tweets
within Claude to interact with Twitter.npx
for quick start without global installs.Q: Do I need a paid Twitter developer account? A: Only a developer account with appropriate API access is required.
Q: Where are the server logs stored?
A: Windows – %APPDATA%\Claude\logs\mcp-server-twitter.log
; macOS – ~/Library/Logs/Claude/mcp-server-twitter.log
.
Q: Can I run the server locally for development?
A: Yes. Clone the repo, run npm install
, npm run build
, then npm start
.
Q: How do I run evaluations?
A: Use the provided command: OPENAI_API_KEY=your-key npx mcp-eval src/evals/evals.ts src/index.ts
.
This MCP server allows Clients to interact with Twitter, enabling posting tweets and searching Twitter.
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
{
"mcpServers": {
"twitter-mcp": {
"command": "npx",
"args": ["-y", "@enescinar/twitter-mcp"],
"env": {
"API_KEY": "your_api_key_here",
"API_SECRET_KEY": "your_api_secret_key_here",
"ACCESS_TOKEN": "your_access_token_here",
"ACCESS_TOKEN_SECRET": "your_access_token_secret_here"
}
}
}
}
That's it! Claude can now interact with Twitter through two tools:
post_tweet
: Post a new tweetsearch_tweets
: Search for tweetsTry asking Claude:
Logs can be found at:
%APPDATA%\Claude\logs\mcp-server-twitter.log
~/Library/Logs/Claude/mcp-server-twitter.log
If you want to contribute or run from source:
git clone https://github.com/EnesCinr/twitter-mcp.git
cd twitter-mcp
npm install
npm run build
npm start
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.
OPENAI_API_KEY=your-key npx mcp-eval src/evals/evals.ts src/index.ts
MIT
Please log in to share your review and rating for this MCP.
{ "mcpServers": { "twitter-mcp": { "command": "npx", "args": [ "-y", "@enescinar/twitter-mcp" ], "env": { "API_KEY": "your_api_key_here", "API_SECRET_KEY": "your_api_secret_key_here", "ACCESS_TOKEN": "your_access_token_here", "ACCESS_TOKEN_SECRET": "your_access_token_secret_here" } } } }
Explore related MCPs that share similar capabilities and solve comparable challenges
by lharries
Enables searching, reading, and sending personal WhatsApp messages and media through a Model Context Protocol (MCP) server, storing all data locally in SQLite and exposing controlled tools for LLMs like Claude.
by iFurySt
Provides authenticated access to XiaoHongShu (RedNote) notes, supporting keyword search, note retrieval by URL, and cookie persistence via a Model Context Protocol server.
by korotovsky
Provides a powerful Model Context Protocol interface for Slack workspaces, enabling message retrieval, search, and optional posting via Stdio or SSE transports without requiring bot permissions.
by ZubeidHendricks
Provides a standardized interface for interacting with YouTube content, enabling video retrieval, transcript access, channel and playlist management, and advanced analytics through the Model Context Protocol.
by InditexTech
Provides Microsoft Teams integration via the Model Context Protocol, enabling reading, creating, replying to messages and mentioning members.
by chigwell
Provides a full‑featured Telegram integration for MCP‑compatible clients, enabling programmatic access to chats, messages, contacts, profile management, and group administration.
by chaindead
Manages Telegram dialogs, messages, drafts, and read statuses via the Model Context Protocol, enabling AI assistants to query and interact with Telegram accounts.
by carterlasalle
Securely interfaces with the macOS Messages database via MCP, enabling LLMs to query, analyze, filter, and send iMessage or SMS communications with built‑in phone number validation, attachment handling, and group chat support.
by v-3
Enables large language models to interact with Discord channels, allowing them to send and read messages through Discord's API while keeping user control and security.