x-readonly
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
x-readonly
A tiny, read-only MCP server for X/Twitter. Built for feeding news, timelines and opinions into a local agent without giving it the ability to post anything.
Seven tools, no writes: no create, no like, no retweet, no DMs. The code
only ever calls search, users, tweets, trends and timelines read paths.
One file, no MCP SDK.
server.mjsspeaks JSON-RPC over stdio directly.Works without an account. No token → guest mode: profiles and user timelines read fine. Search, trends and home timelines need a real
auth_token(X returns 404 for those GraphQL operations to guests).Nothing is stored. No database, no cache, no logs of posts.
Powered by emusks, a
reverse-engineered X API client. That means it impersonates a browser's TLS
fingerprint — read their caveats and X's terms before you use it, and use an
account you don't mind losing.
Tools
tool | what it does |
| search posts; |
| profile by |
| recent posts from one account: |
| a single post by id, with engagement stats |
| a post plus its reply thread |
| current trending topics (needs auth) |
| your own Following/For You timeline, |
Results come back as compact text — author, timestamp, id, engagement, body clipped at 600 chars, expanded links, permalink — so a 20-post search costs about a screen of tokens instead of a wall of JSON.
Related MCP server: Twitter/X MCP
Install
git clone https://github.com/bonsko/x-readonly-mcp
cd x-readonly-mcp
npm install --no-audit --no-fundnpm install pulls ~142 MB, almost all of it cycletls (a bundled Go binary
that does the TLS impersonation). That is the price of the API answering at all.
Authenticate (optional but needed for search)
The library wants the cookie, not OAuth:
sign in to x.com in a browser
DevTools → Application → Cookies →
https://x.com→ copyauth_tokensave it:
umask 077
mkdir -p ~/.config/x-readonly-mcp
cat > ~/.config/x-readonly-mcp/auth.json <<'EOF'
{"auth_token": "PASTE_HERE"}
EOF
chmod 600 ~/.config/x-readonly-mcp/auth.jsonX_AUTH_TOKEN in the environment overrides the file. Without either, the
server runs as a guest.
Note that an auth_token is a full-account credential — it can do everything
you can. Use an account you don't care about.
Register with an MCP client
{
"mcpServers": {
"x-readonly": {
"command": "node",
"args": ["/home/you/x-readonly-mcp/server.mjs"]
}
}
}Claude Desktop, Cursor, Hermes and anything else that speaks stdio MCP take that
shape. Hermes: hermes mcp add x-readonly --command node --args /path/server.mjs.
Limits
Guest tokens are IP-bound and rate-limited hard; expect 429s on long sessions.
users.tweetsreturns a full page (~100) regardless of the requested count; the server trims and reports "showing N of M".Search and trends are plain GraphQL reads — X changes query ids without warning, so a
404on those means the emusks release needs updating, not that your token is wrong.
Licence
MIT. No warranty, no affiliation with X Corp.
This server cannot be deployed
Maintenance
Related MCP Connectors
Read public Twitter/X data: tweets, profiles, followers, search. No X developer account.
Search X (Twitter) posts and read profiles, followers, trends and X Articles. OAuth sign-in.
Read-only public X (Twitter) data: profiles, tweets, threads, followers, search. Pay per result.
Live X/Twitter data: profiles, tweets, search, followers, lists and trends. 29 read-only tools.
Related MCP Servers
- AlicenseAqualityCmaintenanceEnables reading public X (Twitter) content like profiles, tweets, and search results via a stealth browser, without official API costs.11MIT
- AlicenseNot gradedqualityAmaintenanceEnables reading public X posts, replies, and profiles, and searching X, via Rettiwt by default or the official X API.75 npm1ISC

@xcrap/mcpofficial
AlicenseAqualityCmaintenanceProvides read-only access to X (Twitter) data — posts, threads, profiles, timelines, followers, media, and trends — through twelve tools, with no login or API key required.1213 npm1MIT- AlicenseAqualityCmaintenanceEnables read-only research on public X data through tools for posts, threads, profiles, search, trends, collections, and saved-result analysis using free public APIs and optional sessions.8MIT