Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| X_API_KEY | Yes | The Consumer Key (API Key) from the X Developer Portal. | |
| X_API_SECRET | Yes | The Secret Key (API Secret) from the X Developer Portal. | |
| X_ACCESS_TOKEN | Yes | The Access Token generated from the X Developer Portal (requires Read/Write permissions for posting). | |
| X_BEARER_TOKEN | Yes | The Bearer Token from the X Developer Portal. | |
| X_ACCESS_TOKEN_SECRET | Yes | The Access Token Secret generated from the X Developer Portal (requires Read/Write permissions for posting). |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| post_tweet | Create a new post on X (Twitter). Supports text, polls, and media attachments. |
| reply_to_tweet | Reply to an existing post on X. Provide the tweet ID or URL to reply to. |
| quote_tweet | Quote retweet a post on X. Adds your commentary above the quoted post. |
| delete_tweet | Delete a post on X by its ID. |
| get_tweet | Fetch a tweet and its metadata by ID or URL. Returns author info, metrics, and referenced tweets. |
| search_tweets | Search recent tweets by query. Supports keywords, hashtags, from:user, to:user, is:reply, has:media, etc. Uses the recent search endpoint (last 7 days). |
| get_user | Look up a user profile by username or user ID. Returns bio, metrics, verification status, etc. |
| get_timeline | Fetch a user's recent posts. Requires the user's numeric ID (use get_user first to resolve username to ID). |
| get_mentions | Fetch recent mentions of the authenticated user. |
| get_followers | List followers of a user by their numeric user ID. |
| get_following | List who a user follows by their numeric user ID. |
| like_tweet | Like a post on X. |
| retweet | Retweet a post on X. |
| upload_media | Upload an image or video to X. Returns a media_id that can be attached to posts. Provide the file as base64-encoded data. |
| get_metrics | Get engagement metrics for a specific post (impressions, likes, retweets, replies, quotes, bookmarks). Requires the tweet to be authored by the authenticated user for non-public metrics. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |