Twitter MCP Server
Welcome to the Twitter MCP (Multi-Channel Platform) Server! This application helps you manage your Twitter account programmatically with a variety of powerful features.
Features
- Get Timeline: Retrieve your Twitter home timeline.
- Get Any User's Tweets: Fetch tweets from any public Twitter user.
- Hashtag Search: Search for tweets containing any hashtag (e.g.,
#AI). - Get Replies & Summaries: Retrieve replies to tweets and get summarized insights.
- User Direct Messages: Send and receive Twitter DMs.
- Create Post: Programmatically create new tweets.
- Delete Post: Delete your tweets through the API.
- And much more...

Getting Started
Prerequisites
- Python 3.11+
- uvicorn (for running the server)
- Twitter API credentials (set in
.envfile)
Installation
- Clone this repository.
- Install dependencies:
pip install -r requirements.txt - Set up your
.envfile with your Twitter API credentials (see.env.example).
Running the Application
To start the server, run:
uv run --with twikit --with mcp Path\\\\src\\\\tweet_service.py
{
"mcpServers": {
"twitter-mcp": {
"command": "uv",
"args": [
"--directory",
"Path\\\\src\\\\",
"run",
"--with",
"twikit",
"--with",
"mcp",
"tweet_service.py"
],
"env": {
"COOKIES_PATH": "Path\\\\cookies.json",
"ENV_FILE": ".env"
}
}
}
}
Feel free to contribute or suggest new features!
Recommend MCP Servers 💡
Bifrost
VSCode Extension with an MCP server that exposes semantic tools like Find Usages and Rename to LLMs
molecule-mcp
An MCP server connecting molecule science tools to Claude AI for prompt-assisted molecule modeling.
speech.sh
Simple curl script to play aloud what you type, useful if your voice is suddenly broken.
secops-mcp
All-in-one security testing toolbox that brings together popular open source tools through a single MCP interface. Connected to an AI agent, it enables tasks like pentesting, bug bounty hunting, threat hunting, and more.
atla-mcp-server
An MCP server for LLMs to interact with the Atla API for state-of-the-art LLMJ evaluation.
anki-mcp
the best anki mcp