X (Twitter) MCP Server
Post tweets, search mentions, and manage social media from AI agents.
A Model Context Protocol server for the X (Twitter) API v2. Enables AI agents to post tweets with text and media, search tweets, manage engagements, and monitor brand mentions.
Community-maintained. Useful for social media management, brand monitoring, and content publishing workflows.
⚠️ Note: OAuth tokens grant full account access beyond what this server uses. Consider using a dedicated X account. The MCP SDK dependency is outdated (0.6.0 vs 1.27+).
Install
npx -y @enescinar/twitter-mcp MCP Client Config
{
"mcpServers": {
"twitter": {
"command": "npx",
"args": [
"-y",
"@enescinar/twitter-mcp"
],
"env": {
"TWITTER_API_KEY": "<your-api-key>",
"TWITTER_API_SECRET": "<your-api-secret>",
"TWITTER_ACCESS_TOKEN": "<your-access-token>",
"TWITTER_ACCESS_SECRET": "<your-access-secret>"
}
}
}
} Required Environment Variables
- TWITTER_API_KEY
- TWITTER_API_SECRET
- TWITTER_ACCESS_TOKEN
- TWITTER_ACCESS_SECRET
Capabilities
Tools
Compatible With
Pricing
Server is free. X API has free, basic, and pro tiers.
Metrics
386
GitHub Stars
0
Installs
0
Weekly
2
Open Issues
More in Communication
Best of Communication →Slack MCP Server
Read and manage Slack channels, messages, and users from AI agents.
Twilio MCP Server
Send SMS, make calls, and manage Twilio resources from AI agents.
Discord MCP Server
Manage Discord servers, channels, and messages from AI agents.