Twitter MCP Tool
This repository contains the Twitter MCP Tool, a tool designed to streamline social media tasks using Python. It includes features for tweeting, username change history, Fetch recent tweets, and Send a direct message to a user.
Features
1. Tweet Posting
Post tweets with or without images directly to Twitter.
2. Query Username Changes
Track the username change history of any Twitter account.
3. Fetch Recent Tweets
Retrieve the latest tweets from any public Twitter user’s timeline.
4. Send a Direct Message (DM)
Send a private message directly to a Twitter user.
Installing Dependencies and Running
Clone the repo using
git clone https://github.com/jalaj-pandey/twitter-mcp-tool.gitInstall dependencies:
uv venv .venvScriptsactivate pip install -r requirements.txt mcp dev script.pyAnd if you want to install it in the claude desktop then use
pip install script.pyCreate a
.envfile with the following keys:X_api_key=<your_twitter_api_key> X_api_key_sec=<your_twitter_api_secret> X_access_token=<your_twitter_access_token> X_access_token_sec=<your_twitter_access_token_secret> X_bearer_token=<your_twitter_bearer_token> GEMINI_API_KEY=<your_gemini_api_key>
Usage
Open your claude desktop you will see the Twitter MCP Tool` is ready to use.
If not then Copy paste the config.json into your claude_desktop_config.json
Folder Structure
.
├── script.py # MCP core logic
├── .env # Environment variables
├── requirements.txt # Python dependencies
├── config.json # config file for claude desktop
└── readme.md # Project documentation
Twitter Social Media Tool
Project Details
- jalaj-pandey/twitter-mcp-tool
- Last Updated: 5/7/2025
Recomended MCP Servers
A Model Context Protocol (MCP) server that provides tools for interacting with the Twitch API using the Helix...
A MCP server for Cappt (Python version)
A TypeScript implementation of a Model Context Protocol (MCP) server that integrates with PiAPI's API. PiAPI makes user...
MCP server for discord bot - adds one tool with raw API access
A MCP Server for Google Scholar: 🔍 Enable AI assistants to search and access Google Scholar papers through...
MCP Server for transcribing videos via video links and summarizing video content
A full-featured Model Context Protocol (MCP) server that exposes Ensembl’s REST API. Built using the TypeScript MCP SDK
A MCP (Model Context Protocol) server that provides get, send Gmails without local credential or token setup.





