TwittrAPI
NPM · TWITTRAPI-MCP · 2 COMPONENTS
Read public Twitter/X data: tweets, profiles, followers, search. No X developer account.
Available components
Last scanned (4 hours ago)
Scores higher than 76% of npm servers
Category News and Social
How this component scores in each security and reliability category. Every signal is checked automatically from public evidence about the published package, including repeated runs of it in an isolated sandbox, and we only credit what we can confirm. How we score → Why this is hard to score →
Supply Chain Security81
- No malware found by supply-chain analysis.Pass
- CVE check failed: a known high-severity CVE affects zod 4.6.5, a direct dependency. A fixed version is available. View diagnostics → Fail
- No install/post-install scripts declared.Pass
- 30 of 93 dependencies flagged as unhealthy. View diagnostics → Partial
Provenance & Transparency97
- Source repository is publicly reachable at the declared URL. View diagnostics → Pass
- Cryptographically verified build provenance (signed, bound to twittrapi/twittrapi-mcp). View diagnostics → Pass
- Clear OSI-approved license (MIT).Pass
- Actively maintained (last published 17 days ago).Pass
- Disclosure check failed: no security disclosure policy was found in the source repository. See how to fix → Fail
Schema Quality & AI Usability67
- AI-judged instruction clarity (excellent).Pass
- Context-footprint check failed: tool/resource definitions use about 5674 tokens (~195/item across 29 items; 29 tools + 0 resources), over budget; trim descriptions and params. See how to fix → Fail
- Usage-examples check failed: none of the tools include examples. See how to fix → Fail
Stability & Change Management69
- Stability check failed: the tool surface changed between 0.3.1 and 1.2.0: 1 tool removals, 0 breaking changes, 7 additions. See how to fix → Fail
Tool Coverage100
- 100% of tools have a non-trivial description (not blank, and not just the tool's name).Pass
- 100% of tool parameters carry a description.Pass
Tool Safety100
- No prompt-injection markers were found in the server instructions, tool names or descriptions we captured.Pass
- We read all 29 captured tool definition(s), and no name or description among them implies an irreversible operation.Pass
- An AI judge read all 30 captured unit(s) of tool text and found none that tries to manipulate the model reading it.Pass
Capabilities100
- Implements a supported MCP spec version (2025-11-25); the latest is 2026-07-28.Pass
Every change we have recorded for this component, newest first. Security-relevant changes are always shown. ▲ marks a change for the better, ▼ a change for the worse; unmarked changes are neutral.
- 4 Nov 26 +1
No change was recorded against any check on this day. Stability & Change Management went from 62 to 66.
- 1 Nov 26 +1
No change was recorded against any check on this day. Stability & Change Management went from 52 to 56.
- 31 Oct 26 0
- Security disclosure: unverified → fail ▼ functional
- 30 Oct 26 +1
No change was recorded against any check on this day. Stability & Change Management went from 46 to 49.
- 29 Oct 26 0
- Security disclosure: fail → unverified ▼ functional
- 28 Oct 26 +1
No change was recorded against any check on this day. Stability & Change Management went from 39 to 42.
- 26 Oct 26 +1
No change was recorded against any check on this day. Stability & Change Management went from 32 to 36.
- 24 Oct 26 −5
- CVE-2023-54404 affects this package: high ▼ security
- Known CVEs: pass → fail ▼ security
Diagnostic detail from the automated scan of this channel: what the scanner observed at each step, so you can see exactly where a check passed or failed. It is informational only and never changes the trust score.
Captured 5 Nov 2026 · Analysed npm/twittrapi-mcp@1.2.0
Provenance Verified
A signed build attestation was found and verified, binding this exact artifact to the source repository it claims to come from.
| Result | Verified |
|---|---|
| Ecosystem | npm |
| Reason | Verified |
| Discovered via | Registry attestation endpoint |
| Source repo | twittrapi/twittrapi-mcp |
| Certificate issuer | https://token.actions.githubusercontent.com |
| Certificate SAN | https://github.com/twittrapi/twittrapi-mcp/.github/workflows/publish.yml@refs/tags/v1.2.0 |
| Rekor log index | 3319478530 |
| Predicate type | SLSA build provenance https://slsa.dev/provenance/v1 |
| Subject digest | sha512:6c7af755729dc3086749374cdaf31525fd28b9a28d142d77a5174a66e8bf1ba541ce1662600461c8e136bbbac2326b591555a8652b8baea21215f03e5 |
Background: How many MCP packages publish verified provenance →
Vulnerabilities 1 finding
| ID | CVE | Severity | Vector | Fix available |
|---|---|---|---|---|
| GHSA-mrhx-c7xc-m3w5 | CVE-2023-54404 | high | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H | yes |
Background: What a vulnerability scan can and cannot prove →
Dependencies 93 packages
| Packages resolved | 93 |
|---|---|
| Stale | 30 |
| Tree resolution | Complete |
Background: SBOMs and build attestations, explained →
The tools this component advertises to a client, with an estimated token cost for each. Expand a tool to see its parameters and schema. The per-tool counts are indicative and are not scored directly; the schema's total context footprint is one signal in Schema Quality & AI Usability. A tool's description is untrusted text the model reads on every call, which is what makes this list a security surface and not just an inventory: how tool poisoning works →
get_community Get community ~141
Get an X Community's name, description, rules, member count and admins.
| Name | Type | Req | Description |
|---|---|---|---|
| communityId | string | yes | Numeric community ID. |
| format | string | – | Response format (default simple). simple: compact JSON with flat camelCase tweets and users, about 60% fewer tokens. raw: X's full GraphQL JSON, only needed for fields simple leaves out (cards, polls… |
| max_chars | integer | – | Maximum characters of JSON to return (default 50000). Longer output is cut with a [TRUNCATED] marker. Lower it to save context, raise it if you need the full response. |
No output schema declared.
No examples provided.
get_community_about Get community about page ~95
Get the About page of an X Community: description, rules, creation date, moderators and a preview of members. Returns raw JSON.
| Name | Type | Req | Description |
|---|---|---|---|
| communityId | string | yes | Numeric community ID. |
| max_chars | integer | – | Maximum characters of JSON to return (default 50000). Longer output is cut with a [TRUNCATED] marker. Lower it to save context, raise it if you need the full response. |
No output schema declared.
No examples provided.
get_community_tweets Get community tweets ~194
Get tweets posted in an X Community. Paginated.
| Name | Type | Req | Description |
|---|---|---|---|
| communityId | string | yes | Numeric community ID. |
| count | integer | – | How many tweets to request per page (default 20). X may return slightly more or fewer. |
| cursor | string | – | Pagination cursor. Leave empty for the first page; pass the next_cursor from a previous result to get the next page. |
| format | string | – | Response format (default simple). simple: compact JSON with flat camelCase tweets and users, about 60% fewer tokens. raw: X's full GraphQL JSON, only needed for fields simple leaves out (cards, polls… |
| max_chars | integer | – | Maximum characters of JSON to return (default 50000). Longer output is cut with a [TRUNCATED] marker. Lower it to save context, raise it if you need the full response. |
No output schema declared.
No examples provided.
get_followers Get followers ~235
Get accounts that follow a user, newest followers first. Paginated.
| Name | Type | Req | Description |
|---|---|---|---|
| count | integer | – | How many users to request per page (default 20). X may return slightly more or fewer. |
| cursor | string | – | Pagination cursor. Leave empty for the first page; pass the next_cursor from a previous result to get the next page. |
| format | string | – | Response format (default simple). simple: compact JSON with flat camelCase tweets and users, about 60% fewer tokens. raw: X's full GraphQL JSON, only needed for fields simple leaves out (cards, polls… |
| max_chars | integer | – | Maximum characters of JSON to return (default 50000). Longer output is cut with a [TRUNCATED] marker. Lower it to save context, raise it if you need the full response. |
| userId | string | – | Numeric X user ID (rest_id). Provide this or username. Using the ID is faster. |
| username | string | – | X handle, used when you do not have the user ID. Provide this or userId. |
No output schema declared.
No examples provided.
get_following Get following ~230
Get accounts a user follows. Paginated.
| Name | Type | Req | Description |
|---|---|---|---|
| count | integer | – | How many users to request per page (default 20). X may return slightly more or fewer. |
| cursor | string | – | Pagination cursor. Leave empty for the first page; pass the next_cursor from a previous result to get the next page. |
| format | string | – | Response format (default simple). simple: compact JSON with flat camelCase tweets and users, about 60% fewer tokens. raw: X's full GraphQL JSON, only needed for fields simple leaves out (cards, polls… |
| max_chars | integer | – | Maximum characters of JSON to return (default 50000). Longer output is cut with a [TRUNCATED] marker. Lower it to save context, raise it if you need the full response. |
| userId | string | – | Numeric X user ID (rest_id). Provide this or username. Using the ID is faster. |
| username | string | – | X handle, used when you do not have the user ID. Provide this or userId. |
No output schema declared.
No examples provided.
get_friendships_batch Get relationships with many accounts ~164
Check whether one account follows up to 50 others, and whether they follow it back, in one call. Returns raw JSON: one relationship per target, in order, plus errors for handles that could not be looked up.
| Name | Type | Req | Description |
|---|---|---|---|
| max_chars | integer | – | Maximum characters of JSON to return (default 50000). Longer output is cut with a [TRUNCATED] marker. Lower it to save context, raise it if you need the full response. |
| sourceUsername | string | yes | The account to compare with the others, e.g. "jack" (a leading @ is fine). |
| targetUsernames | array | yes | Accounts to check, 1 to 50 X handles (a leading @ is fine). Billed as one call per handle. |
No output schema declared.
No examples provided.
get_list_details Get list details ~147
Get an X list's name, description, owner, and member/follower counts.
| Name | Type | Req | Description |
|---|---|---|---|
| format | string | – | Response format (default simple). simple: compact JSON with flat camelCase tweets and users, about 60% fewer tokens. raw: X's full GraphQL JSON, only needed for fields simple leaves out (cards, polls… |
| listId | string | yes | Numeric list ID, from the list URL. |
| max_chars | integer | – | Maximum characters of JSON to return (default 50000). Longer output is cut with a [TRUNCATED] marker. Lower it to save context, raise it if you need the full response. |
No output schema declared.
No examples provided.
get_list_members Get list members ~195
Get the accounts that are members of an X list. Paginated.
| Name | Type | Req | Description |
|---|---|---|---|
| count | integer | – | How many users to request per page (default 20). X may return slightly more or fewer. |
| cursor | string | – | Pagination cursor. Leave empty for the first page; pass the next_cursor from a previous result to get the next page. |
| format | string | – | Response format (default simple). simple: compact JSON with flat camelCase tweets and users, about 60% fewer tokens. raw: X's full GraphQL JSON, only needed for fields simple leaves out (cards, polls… |
| listId | string | yes | Numeric list ID. |
| max_chars | integer | – | Maximum characters of JSON to return (default 50000). Longer output is cut with a [TRUNCATED] marker. Lower it to save context, raise it if you need the full response. |
No output schema declared.
No examples provided.
get_list_tweets Get list tweets ~202
Get the tweet timeline of an X list (tweets from its members), newest first. Paginated.
| Name | Type | Req | Description |
|---|---|---|---|
| count | integer | – | How many tweets to request per page (default 20). X may return slightly more or fewer. |
| cursor | string | – | Pagination cursor. Leave empty for the first page; pass the next_cursor from a previous result to get the next page. |
| format | string | – | Response format (default simple). simple: compact JSON with flat camelCase tweets and users, about 60% fewer tokens. raw: X's full GraphQL JSON, only needed for fields simple leaves out (cards, polls… |
| listId | string | yes | Numeric list ID. |
| max_chars | integer | – | Maximum characters of JSON to return (default 50000). Longer output is cut with a [TRUNCATED] marker. Lower it to save context, raise it if you need the full response. |
No output schema declared.
No examples provided.
get_space Get Space ~113
Get an X Space by ID: title, state, host and participants, and whether a replay is available. Returns raw JSON.
| Name | Type | Req | Description |
|---|---|---|---|
| max_chars | integer | – | Maximum characters of JSON to return (default 50000). Longer output is cut with a [TRUNCATED] marker. Lower it to save context, raise it if you need the full response. |
| spaceId | string | yes | Space ID, the letters and digits at the end of the Space URL (x.com/i/spaces/<spaceId>). |
No output schema declared.
No examples provided.
get_trend_locations Get trend locations ~137
List the locations (countries and cities) that have trends, with their WOEIDs for get_trends.
| Name | Type | Req | Description |
|---|---|---|---|
| format | string | – | Response format (default simple). simple: compact JSON with flat camelCase tweets and users, about 60% fewer tokens. raw: X's full GraphQL JSON, only needed for fields simple leaves out (cards, polls… |
| max_chars | integer | – | Maximum characters of JSON to return (default 50000). Longer output is cut with a [TRUNCATED] marker. Lower it to save context, raise it if you need the full response. |
No output schema declared.
No examples provided.
get_trends Get trends ~182
Get trending topics for a location by WOEID (1 = worldwide, 23424977 = United States, 23424975 = United Kingdom). Use get_trend_locations to look up other WOEIDs.
| Name | Type | Req | Description |
|---|---|---|---|
| format | string | – | Response format (default simple). simple: compact JSON with flat camelCase tweets and users, about 60% fewer tokens. raw: X's full GraphQL JSON, only needed for fields simple leaves out (cards, polls… |
| locationId | string | yes | Yahoo WOEID of the location, e.g. "1" for worldwide. |
| max_chars | integer | – | Maximum characters of JSON to return (default 50000). Longer output is cut with a [TRUNCATED] marker. Lower it to save context, raise it if you need the full response. |
No output schema declared.
No examples provided.
get_tweet Get tweet ~208
Get a tweet by ID with full text, author, media, engagement counts and the reply thread (conversation). Use cursor to load more replies.
| Name | Type | Req | Description |
|---|---|---|---|
| cursor | string | – | Pagination cursor. Leave empty for the first page; pass the next_cursor from a previous result to get the next page. |
| format | string | – | Response format (default simple). simple: compact JSON with flat camelCase tweets and users, about 60% fewer tokens. raw: X's full GraphQL JSON, only needed for fields simple leaves out (cards, polls… |
| max_chars | integer | – | Maximum characters of JSON to return (default 50000). Longer output is cut with a [TRUNCATED] marker. Lower it to save context, raise it if you need the full response. |
| rankingMode | string | – | Sort order. Default Relevance. |
| tweetId | string | yes | Numeric tweet ID, the number at the end of a tweet URL. |
No output schema declared.
No examples provided.
get_tweet_quotes Get tweet quotes ~193
Get tweets that quote a given tweet. Paginated.
| Name | Type | Req | Description |
|---|---|---|---|
| count | integer | – | How many tweets to request per page (default 20). X may return slightly more or fewer. |
| cursor | string | – | Pagination cursor. Leave empty for the first page; pass the next_cursor from a previous result to get the next page. |
| format | string | – | Response format (default simple). simple: compact JSON with flat camelCase tweets and users, about 60% fewer tokens. raw: X's full GraphQL JSON, only needed for fields simple leaves out (cards, polls… |
| max_chars | integer | – | Maximum characters of JSON to return (default 50000). Longer output is cut with a [TRUNCATED] marker. Lower it to save context, raise it if you need the full response. |
| tweetId | string | yes | Numeric tweet ID. |
No output schema declared.
No examples provided.
get_tweet_replies Get tweet replies ~208
Get only the replies to a tweet, without the tweet itself or the tweets above it. Paginated.
| Name | Type | Req | Description |
|---|---|---|---|
| cursor | string | – | Pagination cursor. Leave empty for the first page; pass the next_cursor from a previous result to get the next page. |
| format | string | – | Response format (default simple). simple: compact JSON with flat camelCase tweets and users, about 60% fewer tokens. raw: X's full GraphQL JSON, only needed for fields simple leaves out (cards, polls… |
| includePromotedContent | boolean | – | Include promoted replies (default false). |
| max_chars | integer | – | Maximum characters of JSON to return (default 50000). Longer output is cut with a [TRUNCATED] marker. Lower it to save context, raise it if you need the full response. |
| rankingMode | string | – | Sort order. Default Relevance. |
| tweetId | string | yes | Numeric tweet ID. |
No output schema declared.
No examples provided.
get_tweet_retweets Get tweet retweeters ~195
Get the users who retweeted a tweet. Paginated.
| Name | Type | Req | Description |
|---|---|---|---|
| count | integer | – | How many users to request per page (default 20). X may return slightly more or fewer. |
| cursor | string | – | Pagination cursor. Leave empty for the first page; pass the next_cursor from a previous result to get the next page. |
| format | string | – | Response format (default simple). simple: compact JSON with flat camelCase tweets and users, about 60% fewer tokens. raw: X's full GraphQL JSON, only needed for fields simple leaves out (cards, polls… |
| max_chars | integer | – | Maximum characters of JSON to return (default 50000). Longer output is cut with a [TRUNCATED] marker. Lower it to save context, raise it if you need the full response. |
| tweetId | string | yes | Numeric tweet ID. |
No output schema declared.
No examples provided.
get_tweet_thread Get tweet thread ~159
Get the author's own thread around a tweet in reading order: their tweets above it and their replies to themselves below it, up to the first reply by someone else.
| Name | Type | Req | Description |
|---|---|---|---|
| format | string | – | Response format (default simple). simple: compact JSON with flat camelCase tweets and users, about 60% fewer tokens. raw: X's full GraphQL JSON, only needed for fields simple leaves out (cards, polls… |
| max_chars | integer | – | Maximum characters of JSON to return (default 50000). Longer output is cut with a [TRUNCATED] marker. Lower it to save context, raise it if you need the full response. |
| tweetId | string | yes | Numeric tweet ID. |
No output schema declared.
No examples provided.
get_user_about_batch Get "About this account" for many users ~144
Get the "About this account" data (country the account is based in, username changes, verification) of up to 20 accounts in one call. Returns raw JSON: one entry per handle, in order, plus errors for handles that could not be looked up.
| Name | Type | Req | Description |
|---|---|---|---|
| max_chars | integer | – | Maximum characters of JSON to return (default 50000). Longer output is cut with a [TRUNCATED] marker. Lower it to save context, raise it if you need the full response. |
| usernames | array | yes | Accounts to look up, 1 to 20 X handles (a leading @ is fine). Billed as one call per handle. |
No output schema declared.
No examples provided.
get_user_affiliates Get affiliates ~250
Get the accounts affiliated with an organization, as in the Affiliates tab of its profile. Empty for accounts without affiliates. Paginated.
| Name | Type | Req | Description |
|---|---|---|---|
| count | integer | – | How many users to request per page (default 20). X may return slightly more or fewer. |
| cursor | string | – | Pagination cursor. Leave empty for the first page; pass the next_cursor from a previous result to get the next page. |
| format | string | – | Response format (default simple). simple: compact JSON with flat camelCase tweets and users, about 60% fewer tokens. raw: X's full GraphQL JSON, only needed for fields simple leaves out (cards, polls… |
| max_chars | integer | – | Maximum characters of JSON to return (default 50000). Longer output is cut with a [TRUNCATED] marker. Lower it to save context, raise it if you need the full response. |
| userId | string | – | Numeric X user ID (rest_id). Provide this or username. Using the ID is faster. |
| username | string | – | X handle, used when you do not have the user ID. Provide this or userId. |
No output schema declared.
No examples provided.
get_user_by_id Get user by ID ~151
Get an X user's profile by numeric user ID (rest_id). Same data as get_user_by_username.
| Name | Type | Req | Description |
|---|---|---|---|
| format | string | – | Response format (default simple). simple: compact JSON with flat camelCase tweets and users, about 60% fewer tokens. raw: X's full GraphQL JSON, only needed for fields simple leaves out (cards, polls… |
| max_chars | integer | – | Maximum characters of JSON to return (default 50000). Longer output is cut with a [TRUNCATED] marker. Lower it to save context, raise it if you need the full response. |
| userId | string | yes | Numeric X user ID (rest_id). |
No output schema declared.
No examples provided.
get_user_by_username Get user by username ~182
Get an X (Twitter) user's profile by handle: name, bio, follower/following counts, verification, created date, and the numeric user ID (rest_id) needed by other tools.
| Name | Type | Req | Description |
|---|---|---|---|
| format | string | – | Response format (default simple). simple: compact JSON with flat camelCase tweets and users, about 60% fewer tokens. raw: X's full GraphQL JSON, only needed for fields simple leaves out (cards, polls… |
| max_chars | integer | – | Maximum characters of JSON to return (default 50000). Longer output is cut with a [TRUNCATED] marker. Lower it to save context, raise it if you need the full response. |
| username | string | yes | X handle without the URL, e.g. "elonmusk" (a leading @ is fine). |
No output schema declared.
No examples provided.
get_user_media Get user media ~234
Get a user's tweets that contain photos or videos. Paginated.
| Name | Type | Req | Description |
|---|---|---|---|
| count | integer | – | How many tweets to request per page (default 20). X may return slightly more or fewer. |
| cursor | string | – | Pagination cursor. Leave empty for the first page; pass the next_cursor from a previous result to get the next page. |
| format | string | – | Response format (default simple). simple: compact JSON with flat camelCase tweets and users, about 60% fewer tokens. raw: X's full GraphQL JSON, only needed for fields simple leaves out (cards, polls… |
| max_chars | integer | – | Maximum characters of JSON to return (default 50000). Longer output is cut with a [TRUNCATED] marker. Lower it to save context, raise it if you need the full response. |
| userId | string | – | Numeric X user ID (rest_id). Provide this or username. Using the ID is faster. |
| username | string | – | X handle, used when you do not have the user ID. Provide this or userId. |
No output schema declared.
No examples provided.
get_user_tweets Get user tweets ~248
Get a user's recent tweets (their profile timeline, without replies), newest first, including retweets and pinned tweet. Paginated.
| Name | Type | Req | Description |
|---|---|---|---|
| count | integer | – | How many tweets to request per page (default 20). X may return slightly more or fewer. |
| cursor | string | – | Pagination cursor. Leave empty for the first page; pass the next_cursor from a previous result to get the next page. |
| format | string | – | Response format (default simple). simple: compact JSON with flat camelCase tweets and users, about 60% fewer tokens. raw: X's full GraphQL JSON, only needed for fields simple leaves out (cards, polls… |
| max_chars | integer | – | Maximum characters of JSON to return (default 50000). Longer output is cut with a [TRUNCATED] marker. Lower it to save context, raise it if you need the full response. |
| userId | string | – | Numeric X user ID (rest_id). Provide this or username. Using the ID is faster. |
| username | string | – | X handle, used when you do not have the user ID. Provide this or userId. |
No output schema declared.
No examples provided.
get_user_tweets_and_replies Get user tweets and replies ~241
Get a user's tweets including their replies to others, newest first. Paginated.
| Name | Type | Req | Description |
|---|---|---|---|
| count | integer | – | How many tweets to request per page (default 20). X may return slightly more or fewer. |
| cursor | string | – | Pagination cursor. Leave empty for the first page; pass the next_cursor from a previous result to get the next page. |
| format | string | – | Response format (default simple). simple: compact JSON with flat camelCase tweets and users, about 60% fewer tokens. raw: X's full GraphQL JSON, only needed for fields simple leaves out (cards, polls… |
| max_chars | integer | – | Maximum characters of JSON to return (default 50000). Longer output is cut with a [TRUNCATED] marker. Lower it to save context, raise it if you need the full response. |
| userId | string | – | Numeric X user ID (rest_id). Provide this or username. Using the ID is faster. |
| username | string | – | X handle, used when you do not have the user ID. Provide this or userId. |
No output schema declared.
No examples provided.
get_verified_followers Get verified followers ~239
Get a user's followers that have a verified (blue check) badge. Paginated.
| Name | Type | Req | Description |
|---|---|---|---|
| count | integer | – | How many users to request per page (default 20). X may return slightly more or fewer. |
| cursor | string | – | Pagination cursor. Leave empty for the first page; pass the next_cursor from a previous result to get the next page. |
| format | string | – | Response format (default simple). simple: compact JSON with flat camelCase tweets and users, about 60% fewer tokens. raw: X's full GraphQL JSON, only needed for fields simple leaves out (cards, polls… |
| max_chars | integer | – | Maximum characters of JSON to return (default 50000). Longer output is cut with a [TRUNCATED] marker. Lower it to save context, raise it if you need the full response. |
| userId | string | – | Numeric X user ID (rest_id). Provide this or username. Using the ID is faster. |
| username | string | – | X handle, used when you do not have the user ID. Provide this or userId. |
No output schema declared.
No examples provided.
search_communities Search communities ~206
Search X Communities by keyword. Returns community IDs for get_community and get_community_tweets. Paginated.
| Name | Type | Req | Description |
|---|---|---|---|
| count | integer | – | How many communities to request per page (default 20). X may return slightly more or fewer. |
| cursor | string | – | Pagination cursor. Leave empty for the first page; pass the next_cursor from a previous result to get the next page. |
| format | string | – | Response format (default simple). simple: compact JSON with flat camelCase tweets and users, about 60% fewer tokens. raw: X's full GraphQL JSON, only needed for fields simple leaves out (cards, polls… |
| max_chars | integer | – | Maximum characters of JSON to return (default 50000). Longer output is cut with a [TRUNCATED] marker. Lower it to save context, raise it if you need the full response. |
| searchTerm | string | yes | Keyword to search for. |
No output schema declared.
No examples provided.
search_tweets Search tweets ~294
Search X like the search box. Supports X search operators in the query, e.g. from:user, to:user, "exact phrase", lang:en, since:2025-01-01, until:2025-02-01, min_faves:100, filter:media, -filter:replies. category Latest gives newest first; People returns accounts instead of tweets. Paginated.
| Name | Type | Req | Description |
|---|---|---|---|
| category | string | – | Result tab: Top (default), Latest, People, Photos or Videos. |
| count | integer | – | How many results to request per page (default 20). X may return slightly more or fewer. |
| cursor | string | – | Pagination cursor. Leave empty for the first page; pass the next_cursor from a previous result to get the next page. |
| format | string | – | Response format (default simple). simple: compact JSON with flat camelCase tweets and users, about 60% fewer tokens. raw: X's full GraphQL JSON, only needed for fields simple leaves out (cards, polls… |
| max_chars | integer | – | Maximum characters of JSON to return (default 50000). Longer output is cut with a [TRUNCATED] marker. Lower it to save context, raise it if you need the full response. |
| searchItem | string | yes | Search query, max 512 characters. May contain X search operators. |
No output schema declared.
No examples provided.
username_to_id Username to user ID ~167
Resolve an X handle to its numeric user ID. Cheaper and smaller than get_user_by_username when you only need the ID.
| Name | Type | Req | Description |
|---|---|---|---|
| format | string | – | Response format (default simple). simple: compact JSON with flat camelCase tweets and users, about 60% fewer tokens. raw: X's full GraphQL JSON, only needed for fields simple leaves out (cards, polls… |
| max_chars | integer | – | Maximum characters of JSON to return (default 50000). Longer output is cut with a [TRUNCATED] marker. Lower it to save context, raise it if you need the full response. |
| username | string | yes | X handle without the URL, e.g. "elonmusk" (a leading @ is fine). |
No output schema declared.
No examples provided.
users_by_ids Get users by IDs ~149
Get profiles for up to 500 X users in one call, by numeric user ID.
| Name | Type | Req | Description |
|---|---|---|---|
| format | string | – | Response format (default simple). simple: compact JSON with flat camelCase tweets and users, about 60% fewer tokens. raw: X's full GraphQL JSON, only needed for fields simple leaves out (cards, polls… |
| ids | array | yes | Numeric X user IDs, 1 to 500. |
| max_chars | integer | – | Maximum characters of JSON to return (default 50000). Longer output is cut with a [TRUNCATED] marker. Lower it to save context, raise it if you need the full response. |
No output schema declared.
No examples provided.
How do I install the TwittrAPI MCP server?
TwittrAPI runs locally as an npm package, launched with npx -y twittrapi-mcp. Ready-made configuration for Claude, Cursor, VS Code, Codex and 5 more is on this page, copied from each client's own documentation.
npm · twittrapi-mcp
claude mcp add twittrapi-twittrapi-mcp -- npx -y twittrapi-mcp
What is the TwittrAPI MCP server?
TwittrAPI is an MCP server listed in the public MCP registry as io.github.twittrapi/twittrapi-mcp. Read public Twitter/X data: tweets, profiles, followers, search. No X developer account. This page covers its npm package (twittrapi-mcp).
Is the TwittrAPI MCP server safe to use?
TwittrAPI scores 83 out of 100 on VerifyMCP. We recorded 1 known advisory against it as of 5 November 2026. It declares no install or post-install scripts. Its build provenance is signed and verified. That is a record of what we were able to check automatically, not an endorsement. The category breakdown on this page shows every signal behind the number, including the ones we could not confirm.
What tools does the TwittrAPI MCP server expose?
TwittrAPI exposes 29 tools: get_user_by_username, get_user_by_id, username_to_id, users_by_ids, get_user_tweets, and 24 more. Their descriptions and schemas cost roughly 5,503 tokens of context every time the server is loaded.
Is the TwittrAPI MCP server still maintained?
TwittrAPI is still listed as active in the MCP registry. We last reached this channel on 5 November 2026. Those dates come from our own scans of the registry and the channel itself, not from anything the publisher announced.
What licence is the TwittrAPI MCP server under?
TwittrAPI declares the MIT licence, which is OSI-approved. That covers the source only, and says nothing about the cost of any service it calls.