Skip to main content

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...

Twitter MCP Server

Twitter MCP Server

Getting Started

Prerequisites

  • Python 3.11+
  • uvicorn (for running the server)
  • Twitter API credentials (set in .env file)

Installation

  1. Clone this repository.
  2. Install dependencies:
    pip install -r requirements.txt
    
  3. Set up your .env file 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

iflow_mcp_luniakunal_mcp_twitter-0.1.0.tar.gz (135.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Hashes for iflow_mcp_luniakunal_mcp_twitter-0.1.0.tar.gz
Algorithm Hash digest
SHA256 87b8a24daa6ab1459ab529ea899e814235a97f253ea401209b7003694b6c6675
MD5 f6eca0f12306bece58bcd44f1dbb3f0f
BLAKE2b-256 43ee29c9804cd2a2085c20a0395ad044a78bb8fcc040e58ab03fe537c768629e

See more details on using hashes here.

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

Hashes for iflow_mcp_luniakunal_mcp_twitter-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0534ccf75a350c36f41610adca8d7a32abfcd392b6c9bc1625ca442b88e2458a
MD5 42356c04ecb68718bd86a16304b674b4
BLAKE2b-256 439936a1b0ebff763eb86f60e209258ea1432b726d1ce7f4583dbdf6e14b902e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page