twikit-x-mcp

v0.1.1
twikit-x-mcp Checked 3 days ago Published 4 months ago

MCP 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".

ParameterTypeDescription
screen_name *string

get_user_by_id

Look up a user profile by their numeric user id.

ParameterTypeDescription
user_id *string

search_users

Search for user accounts matching a query. Paginated via ``cursor``.

ParameterTypeDescription
query *string
countinteger
cursor

get_user_tweets

Get a user's tweets. ``tweet_type`` selects the tab. Paginated via ``cursor``.

ParameterTypeDescription
user_id *string
countinteger
cursor
tweet_typestring

get_user_followers

List accounts that follow the given user id. Paginated via ``cursor``.

ParameterTypeDescription
user_id *string
countinteger
cursor

get_user_following

List accounts the given user id follows. Paginated via ``cursor``.

ParameterTypeDescription
user_id *string
countinteger
cursor

follow_user

Follow the account with the given user id.

ParameterTypeDescription
user_id *string

unfollow_user

Unfollow the account with the given user id.

ParameterTypeDescription
user_id *string

block_user

Block the account with the given user id.

ParameterTypeDescription
user_id *string

mute_user

Mute the account with the given user id.

ParameterTypeDescription
user_id *string

get_tweet

Fetch a single tweet by its id, including engagement counts and media.

ParameterTypeDescription
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'.

ParameterTypeDescription
query *string
countinteger
cursor
productstring

get_home_timeline

Get the authenticated user's home timeline ('for_you' or 'following').

ParameterTypeDescription
countinteger
cursor
kindstring

get_retweeters

List accounts that retweeted the given tweet. Paginated via ``cursor``.

ParameterTypeDescription
tweet_id *string
countinteger
cursor

get_favoriters

List accounts that liked the given tweet. Paginated via ``cursor``.

ParameterTypeDescription
tweet_id *string
countinteger
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.

ParameterTypeDescription
text *string
is_note_tweetboolean
reply_to

delete_tweet

Delete one of your own tweets by id.

ParameterTypeDescription
tweet_id *string

like_tweet

Like (favorite) a tweet by id.

ParameterTypeDescription
tweet_id *string

unlike_tweet

Remove your like from a tweet by id.

ParameterTypeDescription
tweet_id *string

retweet

Retweet a tweet by id.

ParameterTypeDescription
tweet_id *string

undo_retweet

Undo a retweet by tweet id.

ParameterTypeDescription
tweet_id *string

bookmark_tweet

Bookmark a tweet by id.

ParameterTypeDescription
tweet_id *string

send_direct_message

Send a direct message to a user id. ``reply_to`` is an optional message id.

ParameterTypeDescription
text *string
user_id *string
reply_to

get_dm_history

Get direct-message history with a user id. ``max_id`` pages older messages.

ParameterTypeDescription
user_id *string
max_id