MCP server · Audited from source
X Twitter MCP server
by rafaljanicki/x-twitter-mcp-serverMIT licenceAudited 8 Oct 2026 · source 4154be1f3287
Is it safe? Yes — SAFE, grade B (89/100). It exposes 18 tools: 13 read, 2 write and 3 destructive. The audit recorded 4 findings (0 critical, 0 high, 1 medium, 2 low). Maintainer's description: X/Twitter MCP server
Cite
Cite this page
ModelsAtlas. “X Twitter MCP server (rafaljanicki/x-twitter-mcp-server)”. Retrieved 8 Oct 2026. https://modelsatlas.com/mcp/rafaljanicki/x-twitter-1
2 MCP servers are called X (Twitter). You are viewing rafaljanicki/x-twitter-mcp-server. Compare all 2 →
- vidhupv/x-mcp★ 61✓SAFE
- rafaljanicki/x-twitter-mcp-server★ 35✓SAFE
Trust audit
Audit 0.4.1 · full source read 8 Oct 2026
4 findings, listed below with the file and line each was found on. Grade A needs a sandboxed behavioural run too; this audit read the source only.
What the source does
- FilesystemDeclared1 observation
- NetworkDeclared1 observation
- ShellNone observedNothing seen in the source
- DependenciesNot pinnedSome ranges float
- SecretsNone foundNo keys in source
“Declared” means the server says it does this and the source agrees. Browser, file and shell access are expected of some kinds of server.
Five audit layers
| Layer | What we check | Result |
|---|---|---|
L0 Provenance | Repo owner, licence, archive status, activity | PASS |
L1 Static source | Secrets, path traversal, supply chain | PASS 2 findings |
L2 Instructions | Prompt injection and authority framing in docs and tool descriptions | PASS 1 finding |
L3 Inventory | Declared tools match the source | WARN 1 finding |
L4 Sandbox | Run in isolation and watch behaviour | SKIPPED |
Provenance & runtime
Who published it, and what the audit could and could not run
Provenance
- Repository owner
rafaljanickiUser accountAccount type recorded when we read the repository. - PackagePublished on PyPI
x-twitter-mcp, no version recorded - LicenceMITFrom the repository, as read at the audited commit.
- Last push5 months agoActivity of the repository when we read it.
- Source commit read4154be1f3287The audit covers exactly this commit, read on 8 Oct 2026.
Runtime
- Sandbox runNot run yetThis audit read the source only; it did not execute the server.
- Tool inventory18 declaredRead from the source and classed read, write or destructive.
Every value here is read from the record's own repository and audit.Suggest a correction
Findings (4)
Sorted by severity
MEDIUMFilesystem / pathmcp.destructive_tools
delete_all_bookmarks, delete_bookmark, delete_tweet
- Why
- 3 tool(s) can delete or overwrite
- Fix
- prefer a read-only mode or scoped tokens; the page states the blast radius
LOWObfuscation / stealthobf.decode_call · src/x_twitter_mcp/middleware.py:28
raw = base64.b64decode(unquote(enc))
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWSupply chainsupply.unpinned · requirements.txt
fastmcp, python-dotenv, tweepy
- Why
- 3 requirement(s) not pinned with ==
- Fix
- pin exact versions
INFOPrompt injectionprompt.credential_read · README.md:25
- **Twitter Developer Account**: You need API credentials (API Key, API Secret, Access Token, Access Token Secret, and Bearer Token) from the [Twitter Developer Portal](https://developer.twitter.com/)
- Why
- asks the agent to read credentials
- Fix
- —
Tools it exposes
18 declared in source · 3 destructive
3 tools can delete or overwrite. An agent that can be talked into calling a tool can be talked into calling this one, so give it a token scoped to what you need.
| Tool | Risk | What it does |
|---|---|---|
delete_all_bookmarks | destructive | Permanently deletes all of the authenticated user |
delete_bookmark | destructive | Removes a bookmark. |
delete_tweet | destructive | Deletes a tweet. |
create_poll_tweet | write | Creates a poll tweet. |
post_tweet | write | Posts a tweet. |
bookmark_tweet | read | Bookmarks a tweet. |
favorite_tweet | read | Favorites a tweet. |
get_bookmarks | read | Fetches the authenticated user |
get_trends | read | Fetches trending topics (uses Twitter API v1.1 as v2 trends require specific location WOEID). |
get_tweet_details | read | Fetches tweet details. |
get_user_by_id | read | Fetches user by ID. |
get_user_by_screen_name | read | Fetches user by screen name. |
get_user_followers | read | Retrieves a list of followers for a given user. |
get_user_following | read | Retrieves a list of users whom the given user is following. |
get_user_mentions | read | Fetches tweets mentioning a specific user. |
get_user_profile | read | Fetches user profile by user ID. |
search_twitter | read | Searches Twitter for recent tweets. |
unfavorite_tweet | read | Unfavorites a tweet. |
Install
audited commit 4154be1
One-click links open your editor with the config below filled in, exactly as the snippets show it. The audit covers commit 4154be1 only.
claude mcp add x-twitter-mcp --env TWITTER_ACCESS_TOKEN=${TWITTER_ACCESS_TOKEN} --env TWITTER_ACCESS_TOKEN_SECRET=${TWITTER_ACCESS_TOKEN_SECRET} --env TWITTER_API_KEY=${TWITTER_API_KEY} --env TWITTER_API_SECRET=${TWITTER_API_SECRET} -- uvx x-twitter-mcp{
"mcpServers": {
"x-twitter-mcp": {
"command": "uvx",
"args": [
"x-twitter-mcp"
],
"env": {
"TWITTER_ACCESS_TOKEN": "${TWITTER_ACCESS_TOKEN}",
"TWITTER_ACCESS_TOKEN_SECRET": "${TWITTER_ACCESS_TOKEN_SECRET}",
"TWITTER_API_KEY": "${TWITTER_API_KEY}",
"TWITTER_API_SECRET": "${TWITTER_API_SECRET}"
}
}
}
}The command does not pin a version; the audit covers commit 4154be1f3287. Transport: streamable-http. Reads these environment variables: TWITTER_ACCESS_TOKEN, TWITTER_ACCESS_TOKEN_SECRET, TWITTER_API_KEY, TWITTER_API_SECRET, TWITTER_BEARER_TOKEN, TWITTER_OAUTH2_USER_ACCESS_TOKEN. Give it the narrowest token it needs.
Audit history
- ✓SAFE B 89 / 100
First audit ·
4154be1f3287
README badge
For maintainers · updates on every re-audit
[](https://modelsatlas.com/mcp/rafaljanicki/x-twitter-1/)
The badge always shows the latest audit; a maintainer cannot pin an old verdict.
Other ratings
Cited, never blended into our score
No third-party security ratings are recorded for this server yet. When they exist they appear here with their source and date, beside, not inside, our grade.
Questions about X Twitter MCP server
What is the X Twitter MCP server?
What tools does X Twitter expose?
Is X Twitter safe to connect to an agent?
What credentials does X Twitter need?
How does X Twitter run?
How current is this page?
Which X (Twitter) MCP server is the right one?
Sources
- rafaljanicki/x-twitter-mcp-server on GitHub — the source we read, its licence, stars and activityObserved · 8 Oct 2026
- ModelsAtlas trust audit — SAFE verdict for commit 4154be1f3287Observed · 8 Oct 2026
Spotted something wrong? Report a correction · Methodology
Keep going in your AI
Opens with this page as the source. We add nothing else to the prompt.
- What is the X Twitter MCP server?
- What tools does X Twitter expose?
- Is X Twitter safe to connect to an agent?