XMCP
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@XMCP Search for recent tweets about AI and summarize the top discussions."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
XMCP
The most comprehensive MCP server for X/Twitter with permission-based access control, 70+ tools, and Playwright-powered article fetching.
Highlights
70+ tools across research, engagement, publishing, social, lists, DMs
Permission profiles with runtime enforcement
Playwright-powered article fetching for X articles
Full engagement metrics and thread support
Broad MCP client compatibility
Related MCP server: tweetly
Quick Start
1. Install
pip install "xmcp[articles] @ git+https://github.com/vibeforge1111/xmcp.git"
python -m playwright install chromiumNote: The package name is xmcp and the server command is xmcp-server.
2. Get API Keys (Required)
XMCP requires X/Twitter API credentials to run. If you see errors about missing API keys, follow this quick guide:
Go to https://developer.twitter.com and sign in.
Create a Project and App (or open an existing one).
In the App Keys and Tokens tab, generate:
API Key and API Secret
Access Token and Access Token Secret
Bearer Token
Copy
.env.exampleto.envand paste your keys.
Common error messages and fixes:
"Missing required environment variable" -> add the missing key to
.envor your MCP config."403 Forbidden" / "Error 453" -> your X API access tier does not include that endpoint.
Get your credentials from developer.twitter.com:
API Key & Secret
Access Token & Secret
Bearer Token
You can store them in a local .env file:
# Windows (PowerShell)
copy .env.example .env
# macOS/Linux
cp .env.example .envDo not commit .env. It is ignored by default.
3. Configure
Add to your Claude settings (~/.claude.json):
{
"mcpServers": {
"xmcp": {
"type": "stdio",
"command": "xmcp-server",
"env": {
"TWITTER_API_KEY": "your_key",
"TWITTER_API_SECRET": "your_secret",
"TWITTER_ACCESS_TOKEN": "your_token",
"TWITTER_ACCESS_TOKEN_SECRET": "your_token_secret",
"TWITTER_BEARER_TOKEN": "your_bearer",
"X_MCP_PROFILE": "researcher"
}
}
}
}If you name the server xmcp, tools will appear as mcp__xmcp__* in clients that show tool prefixes.
4. Use
"Search for tweets about AI" -> search_twitter
"Read this article: x.com/..." -> get_article (Playwright)
"Post: Hello world!" -> post_tweet (requires creator profile)Permission Profiles
Choose what capabilities to enable:
Profile | Tools | Use Case |
researcher | 23 | Monitoring, analysis, research (read-only) |
creator | 41 | Content creation, audience engagement |
manager | 55 | Full account management |
automation | 70 | Bots, full automation (including DMs) |
custom | varies | Pick exactly what you need |
Setting a Profile
"env": {
"X_MCP_PROFILE": "creator"
}Permissions are evaluated at runtime. You can switch profiles or groups without restarting the server.
Custom Profile
"env": {
"X_MCP_PROFILE": "custom",
"X_MCP_GROUPS": "research,engage,publish"
}Tool Groups
research (18 tools) - Read-only, safe
Search, user lookup, tweet details, timelines, trends, article fetching
engage (9 tools) - Low risk
Like, unlike, bookmark, retweet, unretweet
publish (7 tools) - Medium risk
Post tweet, delete, quote, create thread, polls
social (8 tools) - Medium-high risk
Follow, unfollow, block, unblock, mute, unmute
conversations (5 tools) - Safe
Get full threads, replies, quote tweets, hide/unhide replies
lists (14 tools) - Low risk
Create, delete, manage lists and members
dms (3 tools) - High risk
Send and read direct messages
account (1 tool) - High risk
Get authenticated user profile
Key Tools
Search & Discovery
Tool | Description |
| Search with full engagement metrics |
| Find tweets containing X articles |
| Worldwide trending topics |
| Fetch article content (Playwright) |
User & Tweet Info
Tool | Description |
| User by @handle |
| User by ID with metrics |
| Full tweet info |
| Complete thread |
| Replies to a tweet |
Engagement
Tool | Description |
| Like |
| Retweet |
| Bookmark |
| Quote with comment |
Publishing
Tool | Description |
| Post with media, tags, reply |
| Post multiple tweets as thread |
| Create a poll |
Social
Tool | Description |
| Follow management |
| Block management |
| Mute management |
Human-In-The-Loop Advisory
This MCP is designed to improve research and workflows, not to replace human judgment.
Publishing tools return an advisory field that recommends a human review for posts and replies.
Real-Time Use Cases (No Extra Telemetry)
You can drive real-time workflows by polling tools on a schedule from your client or a cron job. Common patterns:
Trend snapshots every hour using
get_trendsKeyword monitoring using
search_twitterArticle tracking using
search_articles+get_article
This keeps the server simple while still enabling real-time visibility.
Article Fetching
X articles require JavaScript to render. This MCP uses Playwright.
# Correct - uses Playwright internally
result = await get_article("https://x.com/user/status/123")
# Returns: {title, author, content, url}
# WRONG - will fail
WebFetch("https://x.com/...") # Returns empty contentSetup
pip install playwright
python -m playwright install chromiumConfiguration Reference
Environment Variables
Variable | Description | Default |
| Permission profile |
|
| Groups for custom profile |
|
| Tools to disable | none |
| Tools to force-enable | none |
Credentials are read locally and only used to authenticate requests to X/Twitter.
Examples
Research only (safest):
"X_MCP_PROFILE": "researcher"Content creator:
"X_MCP_PROFILE": "creator"Custom - research + likes only:
"X_MCP_PROFILE": "custom",
"X_MCP_GROUPS": "research,engage",
"X_MCP_DISABLED_TOOLS": "retweet,unretweet"Runtime Permissions
Permissions are evaluated at runtime. This means you can:
Switch profiles or groups without restarting the server
Use different profiles per request in HTTP mode
Error Responses
Errors return a consistent envelope:
{
"ok": false,
"error": {
"type": "rate_limit_exceeded",
"message": "Rate limit exceeded",
"status": 429,
"details": {
"action_type": "tweet_actions",
"retry_after_seconds": 10
}
},
"tool": "post_tweet",
"timestamp": "2026-02-03T12:00:00+00:00"
}Rate Limits
Built-in protection:
Action | Limit | Window |
Tweets | 300 | 15 min |
Likes | 1000 | 24 hours |
Follows | 400 | 24 hours |
DMs | 1000 | 15 min |
Note: These limits are local guardrails, not official Twitter API limits.
Limitations
get_user_followers_you_knowandget_highlights_tweetsare simulated with available API datavote_on_pollreturnsnot_supportedbecause the API does not support programmatic votingArticle fetching requires Playwright and a Chromium install
Compatible Clients
Works with all major MCP clients. See COMPATIBILITY.md for full setup guides.
Client | Config Location | Status |
Claude Desktop |
| Native |
Claude Code |
| Native |
Cursor |
| Native |
Cline |
| Native |
Windsurf |
| Native |
Continue.dev |
| Native |
OpenClaw |
| Native |
Zed |
| Native |
ChatGPT Desktop |
| Native |
Sourcegraph Cody | OpenCTX | Native |
Firebase Genkit | genkitx-mcp plugin | Plugin |
Taal |
| Sync |
VS Code + OpenMCP | Extension settings | Plugin |
Ollama + Continue | Continue config | Native |
Pre-made Config Files
Ready-to-use configs in configs/ directory:
configs/
|-- continue.yaml # Continue.dev (YAML)
|-- continue.json # Continue.dev (JSON)
|-- openclaw-skill.yaml # OpenClaw skill
|-- zed-settings.json # Zed editor
|-- chatgpt-mcp.json # ChatGPT Desktop
|-- taal.yaml # Taal cross-client sync
|-- sourcegraph-openctx.json # Sourcegraph Cody
|-- genkit-plugin.ts # Firebase Genkit
`-- vscode-openmcp.json # VS Code OpenMCPFor AI Agents
This package includes rules files for AI code editors:
File | Editor |
| Cursor |
| Cline |
| Windsurf |
| Claude Code |
| Any LLM (copy to prompt) |
| Comprehensive rules |
Key rule: Use get_article for X URLs, not WebFetch.
HTTP Server Mode
For cloud deployments:
xmcp-http # Runs on port 8081
PORT=8080 xmcp-http # Custom portInstallation Options
From GitHub (recommended)
pip install "xmcp[articles] @ git+https://github.com/vibeforge1111/xmcp.git"From PyPI (when published)
pip install xmcp[articles]From Source
git clone https://github.com/vibeforge1111/xmcp.git
cd xmcp
pip install -e .[articles]
python -m playwright install chromiumDocumentation
Document | Description |
This file - full documentation | |
5-minute setup guide | |
Instructions for AI agents | |
Context block for LLM prompts | |
Rules for all AI editors |
Credits
Built on the upstream project by Rafal Janicki:
https://github.com/rafaljanicki/x-twitter-mcp-server
Update Log
See CHANGELOG.md for a summary of enhancements made in XMCP.
Enhanced by VibeShip with:
Permission-based access control (5 profiles, 8 groups)
70+ tools (vs ~20 original)
Playwright article fetching
Thread creation and reading
Full Lists, DMs, Social actions
Comprehensive engagement metrics
AI agent documentation
License
MIT License - see LICENSE
Available Tools
63 toolsadd_list_memberC
Add a user to a list
Inputs: list_id (required), user_id (required). Returns: object
block_userC
Block a user
Inputs: user_id (required). Returns: object
bookmark_tweetB
Add a tweet to bookmarks
Inputs: tweet_id (required). Returns: object
create_listC
Create a new list
Inputs: name (required), description, private. Returns: object
create_poll_tweetC
Create a tweet with a poll
Inputs: text (required), choices (required), duration_minutes (required). Returns: object
create_threadC
Post a thread of multiple tweets
Inputs: tweets (required), media_paths_per_tweet. Returns: object
delete_all_bookmarksB
Delete all bookmarks
Inputs: no named parameters. Returns: object
delete_bookmarkC
Remove a tweet from bookmarks
Inputs: tweet_id (required). Returns: object
delete_listD
Delete a list
Inputs: list_id (required). Returns: object
delete_tweetB
Delete a tweet by its ID
Inputs: tweet_id (required). Returns: object
favorite_tweetC
Like a tweet
Inputs: tweet_id (required). Returns: object
follow_listC
Follow a list
Inputs: list_id (required). Returns: object
follow_userC
Follow a user
Inputs: user_id (required). Returns: object
get_articleB
Fetch full content of an X/Twitter article from a tweet or article URL
Inputs: url (required). Returns: object
get_blocked_usersC
Get list of blocked users
Inputs: count, cursor. Returns: object
get_bookmarksC
Get your bookmarked tweets
Inputs: count, cursor. Returns: object
get_conversationB
Get full conversation/thread for a tweet
Inputs: tweet_id (required), count. Returns: object
get_dm_conversationsC
Get your DM conversations
Inputs: count, cursor. Returns: object
get_dm_eventsC
Get messages in a DM conversation
Inputs: dm_conversation_id (required), count, cursor. Returns: object
get_highlights_tweetsC
Retrieves highlighted tweets from a user's timeline
Inputs: user_id (required), count, cursor. Returns: object
get_latest_timelineB
Get tweets from your home timeline (Following)
Inputs: count. Returns: object
get_liked_tweetsC
Get tweets liked by a specific user
Inputs: user_id (required), count, cursor. Returns: object
get_listB
Get details about a specific list
Inputs: list_id (required). Returns: object
get_list_membersC
Get members of a list
Inputs: list_id (required), count, cursor. Returns: object
get_list_tweetsC
Get tweets from a list's timeline
Inputs: list_id (required), count, cursor. Returns: object
get_meB
Get your own user profile
Inputs: no named parameters. Returns: object
get_muted_usersC
Get list of muted users
Inputs: count, cursor. Returns: object
get_quote_tweetsC
Get tweets that quote a specific tweet
Inputs: tweet_id (required), count, cursor. Returns: object
get_repliesB
Get replies to a specific tweet
Inputs: tweet_id (required), count, cursor. Returns: object
get_retweetsC
Get users who retweeted a tweet
Inputs: tweet_id (required), count, cursor. Returns: object
get_timelineC
Get tweets from your home timeline (For You)
Inputs: count, cursor. Returns: object
get_trendsC
Retrieves trending topics on Twitter
Inputs: woeid, count. Returns: result
get_tweet_detailsB
Get detailed information about a specific tweet
Inputs: tweet_id (required). Returns: object
get_user_by_idB
Fetches a user by ID
Inputs: user_id (required). Returns: object
get_user_by_screen_nameB
Fetches a user by screen name
Inputs: screen_name (required). Returns: object
get_user_followersB
Retrieves a list of followers for a given user
Inputs: user_id (required), count, cursor. Returns: object
get_user_followers_you_knowC
Retrieves common followers between you and a user
Inputs: user_id (required), count, cursor. Returns: object
get_user_followingC
Retrieves users the given user is following
Inputs: user_id (required), count, cursor. Returns: object
get_user_listsC
Get lists owned by a user
Inputs: user_id (required), count, cursor. Returns: object
get_user_mentionsB
Get tweets mentioning a specific user
Inputs: user_id (required), count, cursor. Returns: object
get_user_profileB
Get detailed profile information for a user
Inputs: user_id (required). Returns: object
get_user_subscriptionsD
Retrieves users a user is subscribed to
Inputs: user_id (required), count, cursor. Returns: object
get_user_tweetsC
Get tweets posted by a specific user
Inputs: user_id (required), count, cursor, exclude_replies, +1 more. Returns: object
hide_replyC
Hide a reply to your tweet
Inputs: tweet_id (required). Returns: object
mute_userD
Mute a user
Inputs: user_id (required). Returns: object
pin_listC
Pin a list to your profile
Inputs: list_id (required). Returns: object
post_tweetB
Post a tweet with optional media, reply, and tags
Inputs: text (required), media_paths, reply_to, tags. Returns: object
quote_tweetC
Quote tweet with your comment
Inputs: text (required), quoted_tweet_id (required), media_paths. Returns: object
remove_list_memberC
Remove a user from a list
Inputs: list_id (required), user_id (required). Returns: object
retweetC
Retweet a tweet
Inputs: tweet_id (required). Returns: object
search_articlesC
Search for tweets that contain X articles on a topic
Inputs: query (required), count, cursor. Returns: object
search_twitterC
Search Twitter with a query, includes engagement metrics and author info
Inputs: query (required), product, count, cursor. Returns: object
send_dmC
Send a direct message to a user
Inputs: participant_id (required), text (required). Returns: object
unblock_userD
Unblock a user
Inputs: user_id (required). Returns: object
unfavorite_tweetB
Unlike a tweet
Inputs: tweet_id (required). Returns: object
unfollow_listC
Unfollow a list
Inputs: list_id (required). Returns: object
unfollow_userC
Unfollow a user
Inputs: user_id (required). Returns: object
unhide_replyB
Unhide a previously hidden reply
Inputs: tweet_id (required). Returns: object
unmute_userB
Unmute a user
Inputs: user_id (required). Returns: object
unpin_listB
Unpin a list from your profile
Inputs: list_id (required). Returns: object
unretweetB
Remove a retweet
Inputs: tweet_id (required). Returns: object
update_listB
Update a list's name, description, or privacy
Inputs: list_id (required), name, description, private. Returns: object
vote_on_pollC
Vote on a poll (not supported by API)
Inputs: tweet_id (required), choice (required). Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 63 tools
Most tools have distinct purposes with clear boundaries, such as 'get_timeline' vs 'get_latest_timeline' for different feed types. However, some overlap exists, like 'get_user_by_id' and 'get_user_by_screen_name' both fetching user data, which could cause minor confusion. Overall, descriptions help clarify differences, but a few pairs might require careful selection.
Tool names follow a highly consistent verb_noun pattern throughout, such as 'create_list', 'delete_tweet', and 'get_user_followers'. All tools use snake_case uniformly, with no mixing of conventions. This predictability makes it easy for agents to understand and navigate the toolset.
With 63 tools, the count is excessive for the X/Twitter domain, leading to a bloated and potentially overwhelming interface. While the domain is broad, many tools could be consolidated or omitted without losing functionality. This high number increases complexity and may hinder agent efficiency.
The toolset provides comprehensive coverage of the X/Twitter domain, including full CRUD operations for tweets, lists, and user interactions, as well as advanced features like polls, threads, and direct messages. No significant gaps are apparent; agents can handle most workflows without dead ends.
Maintenance
Related MCP Connectors
Hosted X (Twitter) MCP server for Claude, ChatGPT and Cursor, with each action switched per account.
Hosted MCP server from TwitterAPI.io that gives AI agents read-only access to Twitter/X data. 12 tools: tweet search with X operators, user profiles, a user's latest tweets, followers and followings, replies, quotes, retweeters, mentions and trends. Connect at https://mcp.twitterapi.io/mcp with a TwitterAPI.io API key or account sign-in; usage is paid per result returned. Separately, TwitterAPI.io also offers x402 pay-per-call HTTP endpoints (tweet search, user info, a user's latest tweets) paid in USDC on Base or Solana with no account or API key; see https://docs.twitterapi.io/x402-pay-per-call. The MCP server itself uses an API key or sign-in.
Agent-first social media publishing, scheduling, analytics, and unified inbox API + 16-tool MCP server across 18 social platforms (X, LinkedIn, Instagram, YouTube, TikTok, Threads, Bluesky, Reddit, Telegram, Discord, Mastodon, Facebook, Pinterest).
Hosted MCP with 91 agent tools: X, domains, SEO, Maps, Trends, Search, YouTube, TikTok, and more.
Related MCP Servers
- AlicenseAqualityCmaintenanceAn MCP server that provides AI agents with full access to the X (Twitter) API for posting, searching, and managing engagement through natural language. It supports comprehensive tools for tweet management, media uploads, and account analytics across multiple MCP-compatible clients.1563MIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server that enables AI agents to automate actions on X (Twitter) through a real browser session, including posting, engaging, and reading via over 40 tools. It supports self-hosting and provides a panel for API key management.8MIT
- AlicenseNot gradedqualityDmaintenanceProvides programmatic X (Twitter) engagement via MCP, offering 24 tools for search, timelines, notifications, bookmarks, profiles, and tweet actions through a headless browser.MIT
- AlicenseBqualityCmaintenanceAn MCP server that enables AI assistants to interact with Twitter/X through a single authenticated session without an official API key, providing 27 tools for reading and writing tweets, user management, timeline access, trends, and direct messages.2719 PyPI2MIT