Twitter MCP Server - Manage your Twitter account programmatically
Project description
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!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file iflow_mcp_luniakunal_mcp_twitter-0.1.0.tar.gz.
File metadata
- Download URL: iflow_mcp_luniakunal_mcp_twitter-0.1.0.tar.gz
- Upload date:
- Size: 135.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
87b8a24daa6ab1459ab529ea899e814235a97f253ea401209b7003694b6c6675
|
|
| MD5 |
f6eca0f12306bece58bcd44f1dbb3f0f
|
|
| BLAKE2b-256 |
43ee29c9804cd2a2085c20a0395ad044a78bb8fcc040e58ab03fe537c768629e
|
File details
Details for the file iflow_mcp_luniakunal_mcp_twitter-0.1.0-py3-none-any.whl.
File metadata
- Download URL: iflow_mcp_luniakunal_mcp_twitter-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0534ccf75a350c36f41610adca8d7a32abfcd392b6c9bc1625ca442b88e2458a
|
|
| MD5 |
42356c04ecb68718bd86a16304b674b4
|
|
| BLAKE2b-256 |
439936a1b0ebff763eb86f60e209258ea1432b726d1ce7f4583dbdf6e14b902e
|