Twitter MCP Server
@gkydev
About Twitter MCP Server
A Unofficial Twitter MCP Server with cookie auth.
Config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"twitter-mcp-server": {
"command": "python",
"args": [
"server.py"
]
}
}
}Tools
No tools detected
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is Twitter MCP Server?
An MCP server that lets AI assistants interact with Twitter using the unofficial twikit library. It uses cookie‑based authentication where the LLM provides ct0 and auth_token cookies directly in each tool call.
How to use Twitter MCP Server?
Clone the repository, install dependencies with pip install -r requirements.txt, then run python server.py. The LLM supplies Twitter cookies (ct0 and auth_token) as parameters in every tool request.
Key features of Twitter MCP Server?
- Cookie‑based authentication with session caching
- Post, like, retweet, and bookmark tweets
- Search tweets and retrieve user timelines
- Get user profiles, statistics, and tweets
- Send, read, react to, and delete direct messages
- Fetch trending topics by category
Use cases of Twitter MCP Server?
- An AI assistant posts scheduled tweets on behalf of a user.
- A chatbot searches for tweets about a topic and summarizes results.
- A customer‑service agent sends direct messages to users from an AI workflow.
- An analytics tool retrieves trending topics to generate daily reports.
- A content moderator collects replies to a tweet for review.
FAQ from Twitter MCP Server
How does authentication work?
The LLM provides two Twitter cookies (ct0 and auth_token) directly in each tool call. No pre‑configuration is required.
What dependencies are needed?
Python is required. Run pip install -r requirements.txt to install all dependencies including twikit.
Is this an official Twitter API?
No. It uses the unofficial twikit library to interact with X/Twitter. The project is intended for educational and experimental purposes only.
How do I get the required cookies?
Open Twitter/X in your browser, log in, and open Developer Tools (F12). Go to Application/Storage → Cookies → twitter.com (or x.com) and copy the ct0 and auth_token values.
What operations are supported?
Operations include posting tweets, liking, retweeting, bookmarking, searching tweets, getting user info, following/unfollowing users, sending and managing direct messages, and retrieving trending topics.
Frequently asked questions
How does authentication work?
The LLM provides two Twitter cookies (`ct0` and `auth_token`) directly in each tool call. No pre‑configuration is required.
What dependencies are needed?
Python is required. Run `pip install -r requirements.txt` to install all dependencies including `twikit`.
Is this an official Twitter API?
No. It uses the unofficial `twikit` library to interact with X/Twitter. The project is intended for educational and experimental purposes only.
How do I get the required cookies?
Open Twitter/X in your browser, log in, and open Developer Tools (F12). Go to Application/Storage → Cookies → twitter.com (or x.com) and copy the `ct0` and `auth_token` values.
What operations are supported?
Operations include posting tweets, liking, retweeting, bookmarking, searching tweets, getting user info, following/unfollowing users, sending and managing direct messages, and retrieving trending topics.
Basic information
More Other MCP servers
🪟 Windows-MCP
CursorTouchMCP Server for Computer Use in Windows
🚀 Model Context Protocol (MCP) Curriculum for Beginners
microsoftThis open-source curriculum introduces the fundamentals of Model Context Protocol (MCP) through real-world, cross-language examples in .NET, Java, TypeScript, JavaScript, Rust and Python. Designed for developers, it focuses on practical techniques for building modular, scalable,

EverArt
modelcontextprotocolModel Context Protocol Servers
Blender
ahujasidOpen-source MCP to use Blender with any LLM
Production-ready MCP integrations for AI applications
Klavis-AIKlavis AI: MCP integration platforms that let AI agents use tools reliably at any scale
Comments