twitterapi-mcp-server

v0.1.1
io.github.kaitoInfra/twitterapi-mcp-server Checked 4 days ago Published 4 days ago

Official twitterapi.io MCP server (npm, stdio): Twitter/X tweets, users, followers, trends.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

search_tweets

Search Twitter/X for tweets matching a query. Supports the full Twitter advanced search syntax (from:, to:, since:, until:, lang:, filter:, has:, -, OR, etc). Returns ~20 tweets per page in reverse chronological order ('Latest') or by engagement ('Top'). Use this for keyword research, monitoring mentions of a brand/topic, finding tweets in a date range, or any open-ended tweet discovery.

ParameterTypeDescription
query *stringTwitter advanced search query string. Supports operators: from:USER, to:USER, since:YYYY-MM-DD, until:YYYY-MM-DD, lang:en, filter:replies, -filter:retweets, has:images, etc. Example: 'from:elonmusk si…
queryType *string'Latest' returns most recent tweets first; 'Top' returns highest-engagement tweets first. Default to 'Latest' for time-sensitive queries.
cursorstringPagination cursor from a previous response's next_cursor field. Omit for first page. Each page returns ~20 tweets.

get_user_info

Fetch basic profile info for a Twitter/X user by their screen name (handle). Returns user ID, display name, bio, follower/following counts, verified status, profile picture, banner, location, website, and account creation date. Use this as the starting point for any user analysis.

ParameterTypeDescription
userName *stringTwitter/X screen name (handle) WITHOUT the leading @ sign. Example: 'elonmusk', not '@elonmusk'.

get_user_about

Fetch the extended 'about' / profile page data for a Twitter/X user by screen name. Returns extra profile metadata beyond what get_user_info gives (when available). Use get_user_info first; only call this if you need additional about-page fields.

ParameterTypeDescription
userName *stringTwitter/X screen name without @ — fetches the user's profile 'about' / bio page.

get_user_followers

Fetch followers of a Twitter/X user in reverse chronological order (newest first), each with full profile metadata (name, bio, follower count, verified status, etc.). Paginates via cursor. Use this to analyze who follows an account, build follower audiences, or sample for competitive analysis. For large accounts use pagination; you will not get all followers in one call.

ParameterTypeDescription
userName *stringTwitter/X screen name without @ — fetches followers of this user.
cursorstringPagination cursor from previous response's next_cursor. Omit for first page.
pageSizeintegerFollowers per page (default 200, max 200). Each follower includes full profile metadata (name, bio, follower count, etc.).

get_user_followings

Fetch the accounts a Twitter/X user follows, with full profile metadata. Paginates via cursor. Use this to map a user's interest graph (who they follow signals what they care about).

ParameterTypeDescription
userName *stringTwitter/X screen name without @ — fetches accounts this user follows.
cursorstringPagination cursor; omit for first page.
pageSizeintegerFollowings per page (default 200, max 200). Each includes full profile metadata.

get_user_last_tweets

Fetch the most recent tweets posted by a Twitter/X user, sorted by created_at descending. Provide EITHER userName (screen name, no @) OR userId (numeric). Use userId when known — handles can change. Set includeReplies=true to include the user's reply tweets in addition to top-level tweets. Paginates via cursor.

ParameterTypeDescription
cursorstringPagination cursor; omit for first page.
includeRepliesbooleanInclude the user's reply tweets in addition to top-level tweets. Default false — only top-level tweets.
userIdstringTwitter/X numeric user ID (e.g. '44196397'). Provide EITHER userName OR userId. Prefer userId if known — handles can change.
userNamestringTwitter/X screen name without @ (e.g. 'elonmusk'). Provide EITHER userName OR userId.

get_user_mentions

Fetch tweets that mention a specific Twitter/X user (i.e. tweets containing @userName). Useful for brand monitoring, sentiment tracking on a public figure, or finding conversations involving an account. Supports time-bound queries via sinceTime/untilTime (Unix seconds). Paginates via cursor.

ParameterTypeDescription
userName *stringTwitter/X screen name without @ — fetches tweets that mention this user (@userName).
cursorstringPagination cursor; omit for first page (~20 per page).
sinceTimeintegerUnix timestamp (seconds) lower bound — only mentions after this time. Omit for no lower bound.
untilTimeintegerUnix timestamp (seconds) upper bound. Omit for no upper bound.

get_tweets_by_ids

Batch-fetch full tweet objects by their numeric tweet IDs. Pass a comma-separated string of up to 100 IDs. Use this when you already have specific tweet IDs (e.g., from a search result, a URL, or a webhook event) and need the full tweet data — author, text, engagement counts, media, etc.

ParameterTypeDescription
tweet_ids *stringComma-separated tweet IDs (e.g. '1234567890,9876543210'). Batch fetch up to 100 tweets in one call. Tweet IDs are numeric strings.

get_tweet_replies

Fetch replies to a specific tweet. Pass the numeric tweetId of the root tweet; returns top-level replies (about 20 per page) with full tweet objects. Use this for thread analysis, sentiment on a viral post, or building reply trees.

ParameterTypeDescription
tweetId *stringNumeric ID of the tweet to fetch replies for.
cursorstringPagination cursor; omit for first page (~20 replies per page).
queryTypestring'Latest' or 'Top' — sort order of replies. Default 'Latest'.

get_tweet_quotes

Fetch quote-tweets (tweets that quote the given tweetId). Useful for finding commentary on a tweet, measuring reach beyond direct replies. Supports time bounds (sinceTime/untilTime, Unix seconds). Paginates via cursor (~20 per page).

ParameterTypeDescription
tweetId *stringNumeric ID of the tweet to fetch quote-tweets for.
cursorstringPagination cursor; omit for first page (~20 per page).
includeRepliesbooleanInclude reply-type quote-tweets in addition to top-level. Default false.
sinceTimeintegerUnix timestamp (seconds) lower bound.
untilTimeintegerUnix timestamp (seconds) upper bound.

get_tweet_retweeters

Fetch users who retweeted a specific tweet (the simple 'retweet' action, not quote-tweets — for those use get_tweet_quotes). Returns user profiles with metadata. Paginates via cursor (~100 per page).

ParameterTypeDescription
tweetId *stringNumeric ID of the tweet to fetch retweeters for.
cursorstringPagination cursor; omit for first page (~100 per page).