Back to MCP Directory
Twitter
Model Context Protocol

Twitter

This server provides a programmatic interface to manage Twitter accounts, enabling users to automate various Twitter interactions.

Connections & Capabilities

Connects To

GitHub

Capabilities

readwriteexec

Quickstart

Install

pip install -r

Config

{
  "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"  
    }
  }

}
}

Exposed MCP Tools (7)

safe
Get Timeline

Retrieves the user's Twitter home timeline.

Read-only operation.

safe
Get Any User's Tweets

Fetches tweets from any public Twitter user.

Read-only operation.

safe
Hashtag Search

Searches for tweets containing a specific hashtag.

Read-only operation.

safe
Get Replies & Summaries

Retrieves replies to tweets and provides summarized insights.

Read-only operation.

moderate
User Direct Messages

Sends and receives Twitter direct messages.

Involves sending messages.

moderate
Create Post

Programmatically creates new tweets.

Creates new content on the platform.

high
Delete Post

Deletes tweets through the API.

Deletes user-generated content.