twitter-mcp
by Dishant27·★ 3·Score 30
MCP server for X (Twitter) integration enabling CRUD operations via Twitter API.
Overview
This MCP server provides comprehensive interaction with X (formerly Twitter) through the Model Context Protocol. It allows posting tweets, searching content, managing profiles, and organizing lists using Twitter's API. The server offers various tools for account management, including following/unfollowing users, retrieving follower lists, and updating profile information.
Try asking AI
After installing, here are 5 things you can ask your AI assistant:
When to choose this
Choose this server for Twitter/X integration when you need a straightforward MCP interface for basic operations like posting, searching, and account management.
When NOT to choose this
Don't choose this if you need advanced Twitter features like analytics, API v2 endpoints not covered here, or if you require enterprise-level access controls.
Tools this server exposes
11 tools extracted from the READMEpost_tweetPost new content to X
search_tweetsSearch for content on X
get_profileGet profile information for a user or the authenticated account
update_profileUpdate the authenticated user's profile
follow_userFollow a user
unfollow_userUnfollow a user
list_followersList followers of a user or the authenticated account
list_followingList accounts that a user or the authenticated account is following
create_listCreate a new list
get_list_infoGet information about a list
get_user_listsGet all lists owned by the authenticated user
Comparable tools
Installation
Installation
- Create an X Developer account and get API keys from [X Developer Portal](https://developer.twitter.com/en/portal/dashboard)
- Set required environment variables:
``bash TWITTER_API_KEY=your_api_key TWITTER_API_SECRET=your_api_secret TWITTER_ACCESS_TOKEN=your_access_token TWITTER_ACCESS_TOKEN_SECRET=your_access_token_secret ``
- Clone and install:
``bash git clone https://github.com/Dishant27/twitter-mcp.git cd twitter-mcp npm install npm start ``
Claude Desktop Configuration
Add to your Claude MCP config file:
{
"name": "x",
"display_name": "X",
"description": "X MCP allows Claude to interact with X (formerly Twitter)",
"path": "path/to/twitter-mcp/dist/index.js",
"startup": {
"env": {
"TWITTER_API_KEY": "your_api_key",
"TWITTER_API_SECRET": "your_api_secret",
"TWITTER_ACCESS_TOKEN": "your_access_token",
"TWITTER_ACCESS_TOKEN_SECRET": "your_access_token_secret"
}
},
"transport": "stdio"
}FAQ
- Does this server support Twitter API v2?
- Yes, the server supports both Twitter API v1 and v2 as required for full functionality.
- Are there any rate limits?
- Yes, the server is subject to Twitter's standard API rate limits, which vary depending on the specific endpoint used.
Compare twitter-mcp with
Last updated · Auto-generated from public README + GitHub signals.