- Twitter Cookie mcpServer
Twitter Cookie mcpServer
Twitter MCP Server
Enhanced fork of gkydev/twitter-mcp-server with configuration-based authentication.
Enable AI assistants to interact with Twitter using cookie-based authentication managed via config files instead of prompt-embedded tokens. Supports comprehensive Twitter operations including posting tweets, managing interactions (likes, retweets, replies), accessing timelines, sending direct messages, searching content, and retrieving trending topics.
Perfect for social media automation, content analysis, and Twitter workflow integration with enhanced security practices.
Content
Twitter MCP Server
A Model Context Protocol (MCP) server for Twitter integration using cookie-based authentication. Allows AI assistants to interact with Twitter through a standardized protocol.
⚠️ Disclaimer
This uses an unofficial Twitter API via the twikit library. Not endorsed by Twitter/X and may break without notice. Use for educational/experimental purposes only. Account restrictions possible.
Quick Setup
Installing via Smithery
To install Twitter MCP Server for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @dewkiks/twitter-mcp-server --client claude
Manual Installation
- Install
git clone <repository-url>
cd twitter-mcp
pip install -r requirements.txt
-
Get Twitter Cookies
- Open Twitter/X in browser and login
- Open Developer Tools (F12) → Application/Storage → Cookies → twitter.com
- Copy these values:
ct0(CSRF token)auth_token(Authentication token)
-
Configure Claude Desktop Add to your
claude_desktop_config.json:
{
"mcpServers": {
"twitter": {
"command": "python",
"args": ["./path/to/server.py"],
"env": {
"TWITTER_CT0": "your_ct0_here",
"TWITTER_AUTH_TOKEN": "your_auth_token_here"
}
}
}
}
Main Features
- Tweet Management: Post, like, retweet, search tweets
- User Operations: Get profiles, follow/unfollow users
- Timeline Access: Get your timeline and user timelines
- Direct Messages: Send DMs, get history, react to messages
- Trending Topics: Get trending topics by category
Key Tools
Tweet Operations
tweet- Post a new tweetlike_tweet- Like a tweet by IDretweet- Retweet by IDsearch_tweets- Search for tweets
User Operations
get_user_info- Get user profile infoget_timeline- Get your timeline
Direct Messages
send_dm- Send direct message to usernameget_dm_history- Get DM history with useradd_reaction_to_message- React with emojidelete_dm- Delete a message
Other
get_tweet_replies- Get replies to a tweetget_trends- Get trending topics
Example Usage
Post a tweet about AI developments
Search for tweets about "artificial intelligence" and show me the top 10
Send a DM to @username saying "Hello from MCP!"
Get my timeline with the latest 20 tweets
Like the tweet with ID 1234567890123456789
Get trending topics in sports
Show me replies to tweet ID 9876543210987654321
That's it! All tools require the cookies to be set in your environment variables.
Server Config
{
"mcpServers": {
"twitter": {
"command": "python",
"args": [
"./path/to/server.py"
],
"env": {
"TWITTER_CT0": "your_ct0_here",
"TWITTER_AUTH_TOKEN": "your_auth_token_here"
}
}
}
}Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
Serper MCP ServerA Serper MCP Server
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
Tavily Mcp
ChatWiseThe second fastest AI chatbot™
WindsurfThe new purpose-built IDE to harness magic
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题;
Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
DeepChatYour AI Partner on Desktop
Playwright McpPlaywright MCP server
CursorThe AI Code Editor
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
Amap Maps高德地图官方 MCP Server