x-mcp-server
v2.1.0Fork of x-mcp-server for X (Twitter) integration — v2 API with OAuth 2.0 media upload
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
get_home_timeline
Get recent posts from your home timeline
| Parameter | Type | Description |
|---|---|---|
limit | number | Number of posts to retrieve (1-100, default 20) |
search_tweets
Search recent posts from the last 7 days. Requires Basic tier or above.
| Parameter | Type | Description |
|---|---|---|
query * | string | Search query (supports X search operators like from:, to:, has:, is:) |
limit | number | Number of results (1-100, default 10) |
get_tweet
Look up a specific post by its ID
| Parameter | Type | Description |
|---|---|---|
tweet_id * | string | The ID of the post to look up |
create_tweet
Create a new post with optional media attachment. Media upload requires OAuth 2.0 credentials.
| Parameter | Type | Description |
|---|---|---|
text * | string | The text content of the post (max 280 characters, or 25,000 for X Premium accounts) |
expected_author_id | string | Optional exact authenticated author ID guard, freshly checked on the same captured client before creating. |
image_path | string | Absolute path to an image file (PNG, JPEG, GIF, WEBP, max 5MB) |
video_path | string | Absolute path to a video file (MP4, MOV, AVI, WEBM, M4V, max 512MB). Cannot be used with image_path. |
reply_to_tweet
Reply to a post with optional media attachment
| Parameter | Type | Description |
|---|---|---|
text * | string | The text content of the reply (max 280 characters, or 25,000 for X Premium accounts) |
tweet_id * | string | The ID of the post to reply to |
image_path | string | Absolute path to an image file (PNG, JPEG, GIF, WEBP, max 5MB) |
video_path | string | Absolute path to a video file (MP4, MOV, AVI, WEBM, M4V, max 512MB) |
quote_tweet
Quote a post with your own commentary
| Parameter | Type | Description |
|---|---|---|
text * | string | Your commentary text (max 280 characters, or 25,000 for X Premium accounts) |
tweet_id * | string | The ID of the post to quote |
delete_tweet
Delete one of your posts
| Parameter | Type | Description |
|---|---|---|
tweet_id * | string | The ID of the post to delete |
like_tweet
Like a post. Not available on Free tier (removed Aug 2025). Requires Basic tier or above.
| Parameter | Type | Description |
|---|---|---|
tweet_id * | string | The ID of the post to like |
unlike_tweet
Remove a like from a post
| Parameter | Type | Description |
|---|---|---|
tweet_id * | string | The ID of the post to unlike |
retweet
Repost a post to your timeline
| Parameter | Type | Description |
|---|---|---|
tweet_id * | string | The ID of the post to repost |
undo_retweet
Remove a repost from your timeline
| Parameter | Type | Description |
|---|---|---|
tweet_id * | string | The ID of the reposted post to undo |
bookmark_tweet
Bookmark a post for later
| Parameter | Type | Description |
|---|---|---|
tweet_id * | string | The ID of the post to bookmark |
unbookmark_tweet
Remove a bookmarked post
| Parameter | Type | Description |
|---|---|---|
tweet_id * | string | The ID of the bookmarked post to remove |
get_bookmarks
Get your bookmarked posts
| Parameter | Type | Description |
|---|---|---|
limit | number | Number of bookmarks to retrieve (1-100, default 20) |
get_me
Read fresh authenticated identity and versioned publisher field-request policy; no entitlement promise.
get_user
Look up a user by their username
| Parameter | Type | Description |
|---|---|---|
username * | string | The username to look up (without the @ symbol) |
get_user_tweets
Get a user's recent posts by username
| Parameter | Type | Description |
|---|---|---|
username * | string | The username (without @) |
limit | number | Number of posts to retrieve (5-100, default 10) |
pagination_token | string | Token from the previous response's meta.next_token, to fetch the next page. Omit for the first page. |
get_user_mentions
Get recent posts mentioning a user by username
| Parameter | Type | Description |
|---|---|---|
username * | string | The username (without @) |
limit | number | Number of mentions to retrieve (5-100, default 10) |
pagination_token | string | Token from the previous response's meta.next_token, to fetch the next page. Omit for the first page. |
get_user_liked_tweets
Get a user's recently liked posts by username
| Parameter | Type | Description |
|---|---|---|
username * | string | The username (without @) |
limit | number | Number of liked posts to retrieve (5-100, default 10) |
pagination_token | string | Token from the previous response's meta.next_token, to fetch the next page. Omit for the first page. |
get_user_followers
Get a user's followers by username
| Parameter | Type | Description |
|---|---|---|
username * | string | The username (without @) |
limit | number | Number of followers to retrieve (1-1000, default 20) |
pagination_token | string | Token from the previous response's meta.next_token, to fetch the next page. Omit for the first page. |
get_user_following
Get accounts a user follows by username
| Parameter | Type | Description |
|---|---|---|
username * | string | The username (without @) |
limit | number | Number of followed accounts to retrieve (1-1000, default 20) |
pagination_token | string | Token from the previous response's meta.next_token, to fetch the next page. Omit for the first page. |
get_blocking_users
Get users blocked by the authenticated account
| Parameter | Type | Description |
|---|---|---|
limit | number | Number of blocked users to retrieve (1-1000, default 20) |
pagination_token | string | Token from the previous response's meta.next_token, to fetch the next page. Omit for the first page. |
get_muting_users
Get users muted by the authenticated account
| Parameter | Type | Description |
|---|---|---|
limit | number | Number of muted users to retrieve (1-1000, default 20) |
pagination_token | string | Token from the previous response's meta.next_token, to fetch the next page. Omit for the first page. |
get_owned_lists
Get lists owned by a user by username
| Parameter | Type | Description |
|---|---|---|
username * | string | The username (without @) |
limit | number | Number of lists to retrieve (1-100, default 20) |
pagination_token | string | Token from the previous response's meta.next_token, to fetch the next page. Omit for the first page. |
get_followed_lists
Get lists followed by a user by username
| Parameter | Type | Description |
|---|---|---|
username * | string | The username (without @) |
limit | number | Number of lists to retrieve (1-100, default 20) |
pagination_token | string | Token from the previous response's meta.next_token, to fetch the next page. Omit for the first page. |
get_list_memberships
Get lists a user belongs to by username
| Parameter | Type | Description |
|---|---|---|
username * | string | The username (without @) |
limit | number | Number of lists to retrieve (1-100, default 20) |
pagination_token | string | Token from the previous response's meta.next_token, to fetch the next page. Omit for the first page. |
get_article
Fetch the full body content of an X Article post by its tweet ID
| Parameter | Type | Description |
|---|---|---|
tweet_id * | string | The ID of the X Article post |