twikit-x-mcp
v0.1.1MCP server exposing twikit's Twitter/X capabilities to AI assistants — no official API key required.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
whoami
Return the authenticated account's own user id (confirms the session works).
rate_limit_status
Report the current client-side rate-limit configuration. Does not require auth and does not consume a rate-limit token. Configure via TWIKIT_MCP_RATE_LIMIT (on/off) and TWIKIT_MCP_RATE_LIMIT_PER_MINUTE.
get_user
Look up a user profile by @handle (screen name), e.g. "jack".
| Parameter | Type | Description |
|---|---|---|
screen_name * | string |
get_user_by_id
Look up a user profile by their numeric user id.
| Parameter | Type | Description |
|---|---|---|
user_id * | string |
search_users
Search for user accounts matching a query. Paginated via ``cursor``.
| Parameter | Type | Description |
|---|---|---|
query * | string | |
count | integer | |
cursor |
get_user_tweets
Get a user's tweets. ``tweet_type`` selects the tab. Paginated via ``cursor``.
| Parameter | Type | Description |
|---|---|---|
user_id * | string | |
count | integer | |
cursor | ||
tweet_type | string |
get_user_followers
List accounts that follow the given user id. Paginated via ``cursor``.
| Parameter | Type | Description |
|---|---|---|
user_id * | string | |
count | integer | |
cursor |
get_user_following
List accounts the given user id follows. Paginated via ``cursor``.
| Parameter | Type | Description |
|---|---|---|
user_id * | string | |
count | integer | |
cursor |
follow_user
Follow the account with the given user id.
| Parameter | Type | Description |
|---|---|---|
user_id * | string |
unfollow_user
Unfollow the account with the given user id.
| Parameter | Type | Description |
|---|---|---|
user_id * | string |
block_user
Block the account with the given user id.
| Parameter | Type | Description |
|---|---|---|
user_id * | string |
mute_user
Mute the account with the given user id.
| Parameter | Type | Description |
|---|---|---|
user_id * | string |
get_tweet
Fetch a single tweet by its id, including engagement counts and media.
| Parameter | Type | Description |
|---|---|---|
tweet_id * | string |
search_tweets
Search tweets. ``product`` = Top | Latest | Media. Paginated via ``cursor``. Supports X search operators, e.g. 'from:nasa filter:media -is:retweet'.
| Parameter | Type | Description |
|---|---|---|
query * | string | |
count | integer | |
cursor | ||
product | string |
get_home_timeline
Get the authenticated user's home timeline ('for_you' or 'following').
| Parameter | Type | Description |
|---|---|---|
count | integer | |
cursor | ||
kind | string |
get_retweeters
List accounts that retweeted the given tweet. Paginated via ``cursor``.
| Parameter | Type | Description |
|---|---|---|
tweet_id * | string | |
count | integer | |
cursor |
get_favoriters
List accounts that liked the given tweet. Paginated via ``cursor``.
| Parameter | Type | Description |
|---|---|---|
tweet_id * | string | |
count | integer | |
cursor |
post_tweet
Post a tweet. Set ``reply_to`` to a tweet id to reply. ``is_note_tweet`` allows long-form (>280 char) posts on eligible accounts.
| Parameter | Type | Description |
|---|---|---|
text * | string | |
is_note_tweet | boolean | |
reply_to |
delete_tweet
Delete one of your own tweets by id.
| Parameter | Type | Description |
|---|---|---|
tweet_id * | string |
like_tweet
Like (favorite) a tweet by id.
| Parameter | Type | Description |
|---|---|---|
tweet_id * | string |
unlike_tweet
Remove your like from a tweet by id.
| Parameter | Type | Description |
|---|---|---|
tweet_id * | string |
retweet
Retweet a tweet by id.
| Parameter | Type | Description |
|---|---|---|
tweet_id * | string |
undo_retweet
Undo a retweet by tweet id.
| Parameter | Type | Description |
|---|---|---|
tweet_id * | string |
bookmark_tweet
Bookmark a tweet by id.
| Parameter | Type | Description |
|---|---|---|
tweet_id * | string |
get_trends
Get current trends for a category.
| Parameter | Type | Description |
|---|---|---|
category | string | |
count | integer |
send_direct_message
Send a direct message to a user id. ``reply_to`` is an optional message id.
| Parameter | Type | Description |
|---|---|---|
text * | string | |
user_id * | string | |
reply_to |
get_dm_history
Get direct-message history with a user id. ``max_id`` pages older messages.
| Parameter | Type | Description |
|---|---|---|
user_id * | string | |
max_id |