Live survey315 models · 14 providers · 23,592 auditsAudited implement · SAFE →What changedHow we verifyllms.txt

MCP server · Audited from source

X Twitter MCP server

by rafaljanicki/x-twitter-mcp-serverMIT licenceAudited 8 Oct 2026 · source 4154be1f3287

PyPI x-twitter-mcpstreamable-http★ 35
✓SAFEGrade B · 89/100 · 8 Oct 2026 · 4154be1
35GitHub stars

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

Ask an AI about this pageGChatGPTCClaudePPerplexityGeGeminiXGrok
More
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

Trust score89/100✓SAFE B
0 critical0 high1 medium2 low1 info

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

LayerWhat we checkResult
L0 ProvenanceRepo owner, licence, archive status, activityPASS
L1 Static sourceSecrets, path traversal, supply chainPASS 2 findings
L2 InstructionsPrompt injection and authority framing in docs and tool descriptionsPASS 1 finding
L3 InventoryDeclared tools match the sourceWARN 1 finding
L4 SandboxRun in isolation and watch behaviourSKIPPED

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 PyPIx-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
F-05 Filesystem / pathCWE-22 · CWE-59Layer L3
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
F-07 Obfuscation / stealthCWE-506 · CWE-94Layer L1
raw = base64.b64decode(unquote(enc))
Why
No further detail recorded for this rule.
Fix
—
LOWSupply chainsupply.unpinned · requirements.txt
F-08 Supply chainCWE-829 · CWE-1357Layer L1
fastmcp, python-dotenv, tweepy
Why
3 requirement(s) not pinned with ==
Fix
pin exact versions
INFOPrompt injectionprompt.credential_read · README.md:25
F-01 Prompt injectionCWE-94 · CWE-1427Layer L2
- **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

13 read2 write3 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.

ToolRiskWhat it does
delete_all_bookmarksdestructivePermanently deletes all of the authenticated user
delete_bookmarkdestructiveRemoves a bookmark.
delete_tweetdestructiveDeletes a tweet.
create_poll_tweetwriteCreates a poll tweet.
post_tweetwritePosts a tweet.
bookmark_tweetreadBookmarks a tweet.
favorite_tweetreadFavorites a tweet.
get_bookmarksreadFetches the authenticated user
get_trendsreadFetches trending topics (uses Twitter API v1.1 as v2 trends require specific location WOEID).
get_tweet_detailsreadFetches tweet details.
get_user_by_idreadFetches user by ID.
get_user_by_screen_namereadFetches user by screen name.
get_user_followersreadRetrieves a list of followers for a given user.
get_user_followingreadRetrieves a list of users whom the given user is following.
get_user_mentionsreadFetches tweets mentioning a specific user.
get_user_profilereadFetches user profile by user ID.
search_twitterreadSearches Twitter for recent tweets.
unfavorite_tweetreadUnfavorites 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

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

  1. ✓SAFE B 89 / 100

    First audit · 4154be1f3287

README badge

For maintainers · updates on every re-audit

ModelsAtlas: SAFE BMODELSATLASSAFE · B
[![ModelsAtlas: SAFE B](https://modelsatlas.com/mcp/rafaljanicki/x-twitter-1/badge.svg)](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?
X/Twitter MCP server
What tools does X Twitter expose?
18 in total: 13 read-only, 2 that write, and 3 that can delete or overwrite (delete_all_bookmarks, delete_bookmark, delete_tweet). Every one is listed on this page with its risk.
Is X Twitter safe to connect to an agent?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B. Separately from the audit: 3 of its tools can destroy data, so scope the token you give it to what you actually need.
What credentials does X Twitter need?
It reads TWITTER_ACCESS_TOKEN, TWITTER_ACCESS_TOKEN_SECRET, TWITTER_API_KEY, TWITTER_API_SECRET, TWITTER_BEARER_TOKEN and TWITTER_OAUTH2_USER_ACCESS_TOKEN from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.
How does X Twitter run?
It speaks streamable-http, so it runs as a service you connect to over the network. It is published on PyPI as x-twitter-mcp.
How current is this page?
The grade is for one exact copy of the source (4154be1f3287), read on 2026-10-08. The repository is watched and re-audited when it changes.
Which X (Twitter) MCP server is the right one?
vidhupv/x-mcp. 2 servers share the name; see the side-by-side comparison.

Sources

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.