X-UseSAFE
Browser-native AI agents for X (Twitter): multi-account, MCP-ready, no X API key required.
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
Browser-native AI agents for X (Twitter). Multi-account, MCP-ready, no X API key required.
x-use drives a real, stealth-hardened browser instead of the paid X API. It posts, replies, searches, and engages across as many accounts as you configure, writes content with your own LLM, and exposes everything as MCP tools, so Claude Desktop, Claude Code, Cursor, and other MCP clients can run your X presence directly.
The X API's pricing tiers put write access out of reach for exactly the people who want to automate a couple of accounts. x-use sidesteps the API entirely: if a logged-in browser can do it, an MCP client can ask for it. And because write actions go through a draft-approval step by default, an agent can prepare work all day while nothing reaches X until a human says yes.
x-use is the v2 relaunch of twitter-automation-ai. The repository was renamed; old URLs keep redirecting, and stars, forks, and issues came along intact.
[](https://lobehub.com/mcp/ihuzaifashoukat-x-use) [](https://glama.ai/mcp/servers/ihuzaifashoukat/x-use) [](https://opensource.org/licenses/MIT) [](https://www.python.org/downloads/) [](https://github.com/ihuzaifashoukat/x-use/actions/workflows/ci.yml) [](https://github.com/ihuzaifashoukat/x-use/issues) [](https://github.com/ihuzaifashoukat/x-use/network/members) [](https://github.com/ihuzaifashoukat/x-use/st
617096158f47OBSERVED · 2026-10-07Connect
Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control. Replace the environment placeholders with a token scoped to the least it needs.
claude mcp add x-use-mcp --env OPENAI_API_KEY=${OPENAI_API_KEY} -- None x-use-mcp==2.4.1Trust audit
SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | PASS |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- declared (2 observation(s))
- Network
- declared (5 observation(s))
- Shell
- none-observed
- Dependencies
- not all pinned
- Secrets in source
- none-found
Findings (11)
dedup_key = f"post_{account_id}_{hashlib.sha1(key_material.encode('utf-8')).hexdigest()[:12]}"dedup_key = f"post_{account_id}_{hashlib.sha1(key_material.encode('utf-8')).hexdigest()[:12]}"return f"post_{account_id}_{hashlib.sha1(material.encode('utf-8')).hexdigest()[:12]}"return f"post_{account_id}_{hashlib.sha1(material.encode('utf-8')).hexdigest()[:12]}""https://x.com/nasa/../../evil",
"https://1.2.3.4:8443",
{"pool": "dc", "proxy_url": "http://5.6.7.8:3128"})decoded = Image.open(io.BytesIO(base64.b64decode(block.data)))
selenium, webdriver-manager, fake-headers, pydantic, langchain-google-genai, openai, requests, python-dotenv
curl -fsSL https://raw.githubusercontent.com/ihuzaifashoukat/x-use/main/install.sh | bash
Gates applied: no_behavioural_pass.
617096158f47full audit observations/trust-audit/mcp-server/ihuzaifashoukat__x-use.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-07 | 617096158f47 | SAFE | B | 89 | first audit |
Questions
What is the X-Use MCP server?
Browser-native AI agents for X (Twitter): multi-account, MCP-ready, no X API key required.
Is X-Use 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.
What credentials does X-Use need?
It reads OPENAI_API_KEY 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-Use run?
It speaks stdio, so it runs as a local process your client starts. It is published on PyPI as x-use-mcp.
How current is this page?
The grade is for one exact copy of the source (617096158f47), read on 2026-10-07. The repository is watched and re-audited when it changes.