mcp-twitter
Used for managing environment variables, specifically for storing Twitter API credentials in a .env file
Required runtime environment (version 3.11+) for running the Twitter MCP server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-twittershow me recent tweets from @elonmusk"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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...

Related MCP server: TwitGhost
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.txtSet 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!
This server cannot be deployed
Maintenance
Related MCP Connectors
Twitter/X read-only MCP server — 12 tools: search, users, tweets, followers, timelines, trends.
Create, schedule, and publish social posts, manage accounts, and read analytics as MCP tools.
Search, label, and manage your X (Twitter) bookmarks from any MCP client via Tweetsmash
Mastodon MCP — public Mastodon data via mastodon.social (no auth required)
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceProvides a standardized MCP interface for interacting with Twitter's tools and services, compatible with MCP-compliant applications.1MIT
- AlicenseBqualityDmaintenanceEnables interacting with Twitter/X through natural language, including searching tweets, posting, sending DMs, and managing timelines via any MCP client.8MIT
- AlicenseAqualityBmaintenanceMCP server for the Twitter/X read API, enabling search, user profiles, tweets, followers, and more via natural language.94303 npmMIT
- AlicenseAqualityAmaintenanceMCP server to read X (Twitter) posts, threads, replies, quotes, and search using your own logged-in session, no API key required.830 PyPI3MIT