Uses environment variables stored in .env files to securely manage Twitter API keys and other sensitive credentials
Supports repository cloning as part of the installation process
Hosts the repository that can be cloned during installation
Built with Python, allowing for Twitter API interaction through Python scripts
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
- Install dependencies:And if you want to install it in the claude desktop then use
- Create a
.env
file with the following keys:
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
This server cannot be installed
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
A Python-based tool that streamlines social media tasks by enabling users to post tweets, track username changes, fetch recent tweets, and send direct messages on Twitter.
Related MCP Servers
- -securityAlicense-qualityEnables interaction with Twitter through a Model Context Protocol, allowing large language models to post tweets, search for tweets, and reply to tweets.Last updated -251316TypeScriptMIT License
- -securityFlicense-qualityProvides AI agents with comprehensive Twitter functionality through the Model Context Protocol standard, enabling reading tweets, posting content, managing interactions, and accessing timeline data with robust error handling.Last updated -510JavaScript
- -securityFlicense-qualityProvides tools for interacting with Twitter to retrieve tweets by ID and post new tweets using the agent-twitter-client library.Last updated -52JavaScript
- -securityAlicense-qualityA Model Context Protocol server that enables AI to interact with Twitter, allowing functions like searching tweets, comparing sentiments across accounts, and retrieving timeline content.Last updated -MIT License