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 💡
hashing-mcp-server
MCP server for calculating MD5 and SHA-256 hashes, compatible with Claude Desktop and VSCode
koido/extreme-p-mcp
An MCP server providing API access to extreme p-value calculation functions (z, t, F, chi-square, SAIGE) using R and Python.
mcp-server-port-cleaner
A Node.js server implementing the Model Context Protocol (MCP) for port cleanup operations, designed to resolve 'EADDRINUSE' errors in development environments by scanning and terminating processes occupying specified ports.
jvm-mcp-server
This is an implementation project of a JVM-based MCP (Model Context Protocol) server. The project aims to provide a standardized MCP server implementation for the JVM platform, enabling AI models to better interact with the Java ecosystem.
mcp-log-proxy
a web logging proxy for MCP client-server communication
pprof-analyzer-mcp
An MCP server implemented in Go that provides tools to analyze Go pprof performance profiles, including CPU, heap, goroutine, and allocation profiles, with various output formats and flame graph generation.