twitter-mcp
Model Context Protocol server for Twitter integration. can be used to perform CRUD like operations using the twitter API in the background
Install / Use
claude mcp add Dishant27 -- npx -y github:Dishant27/twitter-mcpIf the server publishes to npm under a different name, use that package instead — check the repo README.
MCP Server
Model Context Protocol server
Quality Score
Category
Development & EngineeringSupported Platforms
Tags
Our assessment of twitter-mcp
twitter-mcp scores 78/100 on our quality scale, 3665th of 4,658 Development & Engineering skills we index.
Its MCP Server is 4.3 KB long, well organised into 14 sections with 4 code examples: a solid amount of guidance for an agent.
It has 3 GitHub stars, so there is little community track record yet; judge it on its content.
Maintenance, license and trust
- The repository was last updated 11 days ago, so twitter-mcp is actively maintained.
- Our last check on 2026-08-12 found the source still online.
- It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 92/100, with 1 caution from licensing, adoption, age or documentation. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
twitter-mcp compared with similar skills
All 4 of these similar skills score higher than twitter-mcp; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| twitter-mcp (this skill)by Dishant27 | 78 | 3 | 11d ago | MCP Server |
| Agent-Reachby Panniantong | 100 | 106.6k | 5d ago | CLAUDE.md |
| taste-skillby Leonxlnx | 100 | 106.0k | today | CLAUDE.md |
| headroomby headroomlabs-ai | 100 | 78.3k | today | CLAUDE.md |
| ai-job-searchby ai-job-search-dev | 100 | 67.6k | 3d ago | CLAUDE.md |
Frequently asked questions
- How do I install twitter-mcp?
- Run
claude mcp add Dishant27 -- npx -y github:Dishant27/twitter-mcp. The install tabs above show the steps for each supported agent. - Which AI agents does twitter-mcp work with?
- It is written for Claude Code and Claude Desktop, as a MCP Server file. Other agents that read the same format can often use it too.
- Is twitter-mcp safe to use?
- It is MIT-licensed and scores 92/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is twitter-mcp still maintained?
- The repository was last updated 11 days ago, so twitter-mcp is actively maintained.
Skill content
View source on GitHub<img src="https://www.x.com/favicon.ico" alt="X Logo" width="32" height="32"> X (Twitter) MCP Server
This MCP server allows Clients to interact with X (formerly Twitter), enabling comprehensive platform operations including posting tweets, searching content, managing accounts, and organizing lists.
Quick Start
- Create an X Developer account and get your API keys from X Developer Portal
- Set all required API keys in the environment variables
- Clone this repository:
git clone https://github.com/Dishant27/twitter-mcp.git - Install dependencies:
npm install - Run the server:
- With environment variables:
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 \
npm start
- Using a
.envfile:
# Create a .env file with your X API keys
echo "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" > .env
# Start the server
npm start
- Use with a MCP client, such as Claude.
Claude Configuration
To use this server with Claude, you'll need to set up the MCP configuration. Here's an example of how the configuration structure should look:
{
"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"
}
Save this configuration in your Claude MCP config directory, typically located at:
- Windows:
%APPDATA%\AnthropicClaude\mcp-servers - macOS:
~/Library/Application Support/AnthropicClaude/mcp-servers - Linux:
~/.config/AnthropicClaude/mcp-servers
Features
Post Operations
- Post content (up to 280 characters)
- Search for posts by query with customizable result count
Account Management
- Get profile information for any user or the authenticated account
- Update profile details (name, bio, location, website URL)
- Follow and unfollow users
- List followers for any user or the authenticated account
- List accounts that a user is following
List Management
- Create new lists (public or private)
- Get information about specific lists
- Retrieve all lists owned by the authenticated user
Available MCP Tools
| Tool Name | Description |
|-----------|-------------|
| post_tweet | Post new content to X |
| search_tweets | Search for content on X |
| get_profile | Get profile information for a user or the authenticated account |
| update_profile | Update the authenticated user's profile |
| follow_user | Follow a user |
| unfollow_user | Unfollow a user |
| list_followers | List followers of a user or the authenticated account |
| list_following | List accounts that a user or the authenticated account is following |
| create_list | Create a new list |
| get_list_info | Get information about a list |
| get_user_lists | Get all lists owned by the authenticated user |
Requirements
- Node.js 18.x or higher
- X Developer account with API keys
- API v1 and v2 access
Environment Variables
| Variable | Description |
|----------|-------------|
| 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 |
Repository Structure
twitter-mcp/
├── .github/
│ └── workflows/
│ ├── publish.yml
│ └── release.yml
├── code/
│ ├── account_management.py # Sample Python code for account management
│ ├── post_tweet.py # Sample Python code for posting content
│ └── retrieve_tweets.py # Sample Python code for retrieving content
├── src/
│ ├── index.ts # Main entry point
│ ├── twitter-api.ts # X API client
│ ├── formatter.ts # Response formatter
│ └── types.ts # Type definitions
├── .env.example
├── .gitignore
├── Dockerfile
├── LICENSE
├── package.json
├── README.md
└── tsconfig.json
License
MIT
Related Skills
Agent-Reach
106.6kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
taste-skill
106.0kAgent skills that give coding agents taste: art direction, reference images and a browser check instead of generic AI pages
headroom
78.3kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
ai-job-search
67.6kThe job search that runs on your machine. AI job application framework built on Claude Code: evaluate postings, tailor CVs, write cover letters, prep interviews. Fork it and own it.
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
