X-MCP
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| DEBUG | No | Enable debug logging (set to 'true' to enable). | |
| X_COOKIE | No | Authentication cookie from X (auth_token and ct0). Required unless using cookies.txt file. | |
| HTTP_PROXY | No | HTTP proxy URL (e.g., http://127.0.0.1:7897). | |
| HTTPS_PROXY | No | HTTPS proxy URL (e.g., http://127.0.0.1:7897). | |
| DOWNLOAD_DIR | No | Download directory for media (default: ./downloads). | |
| HTTP_TIMEOUT | No | Request timeout in milliseconds (default: 30000). | |
| REQUEST_DELAY | No | Delay between requests when fetching timeline (default: 2000). | |
| X_BEARER_TOKEN | No | Optional bearer token (default uses X Web interface). | |
| NODE_USE_ENV_PROXY | No | Set to '1' to use proxy environment variables for Node fetch. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| x_get_user_profileB | 获取 X 平台用户的基本信息(头像、简介、粉丝数等) |
| x_get_tweetsB | 获取指定用户的最新推文列表 |
| x_search_tweetsB | 按关键词搜索推文,支持 X 高级搜索语法 |
| x_download_mediaC | 下载指定推文中的图片和视频到本地 |
| x_download_all_mediaB | 批量下载某博主最新推文中的所有图片和视频 |
| x_get_tweet_detailA | 获取单条推文的详细信息,包括完整文本、媒体链接、互动数据 |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 6 tools
Each tool targets a distinct action: user profile, tweet listing, tweet detail, search, media download from user, and media download from tweet. No overlap in functionality.
All tools follow the consistent 'x_' prefix and snake_case verb_noun pattern (e.g., x_get_tweets, x_download_media), making them predictable.
Six tools is well-scoped for a social media read/media-download server – not too few nor too many.
Covers core read operations (profile, tweets, search, tweet detail) and media download, but lacks write operations like posting, liking, or retweeting, which are common in such APIs.