x-use
Lets your AI agent research X (Twitter) profiles, read your inbox and prepare reviewed posts and replies, with no X API key.
181 stars on GitHubby ihuzaifashoukatLicense MITUpdated 21 days ago
How to install
This MCP is local: it runs on your computer.
It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Codeβ¦). Choose your app:
Paste in the terminal:
claude mcp add x-use -- uvx x-use-mcp
What to fill in
| Name | What it is | Required |
|---|---|---|
X_USE_HOME | Absolute private directory for configuration, cookies, action journals and account state. Keep this stable across MCP client working directories. | No |
OPENAI_API_KEY | Optional. Only needed for server-side text generation ('auto' replies, composite draft tools, background automation). Interactive MCP use is keyless because the calling agent writes the text. | No |
OPENAI_BASE_URL | Optional. OpenAI-compatible endpoint, for example https://openrouter.ai/api/v1 or http://localhost:11434/v1 for Ollama. Defaults to api.openai.com. | No |
Ready! Now test it
Restart the app and paste one of these requests in the chat:
Check my account health, research the profile I give you and summarize its recent posts, then prepare one reply draft and wait for my approval.
Show me the unread conversations in my X inbox and draft short replies.
What it is
x-use runs on your computer and drives a browser logged in to your X account. Your agent can research profiles and posts, read your inbox and notifications, and prepare posts, replies and threads as drafts. Drafts wait for your approval before publishing.
What it can do
get_profile_context,search_profile,search_tweets: research profiles and postsget_tweetandget_thread: read a post and its threadget_inbox,get_conversation,get_notifications: read messages and notificationspost_tweet,reply_to_tweet,prepare_thread: stage posts as draftsapprove_draft: publish a draft after reviewget_account_health: check the account state
When to use
- βΊWhen you research a person's recent posts before writing a reply
- βΊWhen you want to go through your X inbox and prepare answers
- βΊWhen you plan a post or thread and want to read the exact draft before it goes out
What you need
Skills that pair well
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
x-twitter-growthHelps your agent grow an X (Twitter) account by auditing the profile, drafting tweets and threads, and planning a posting schedule.twitter-hand-skillHelps your agent manage an X (Twitter) account: post, reply, build threads and track results using the API v2.get-seen-in-repliesEnables your agent to write engaging replies to tweets. It's useful for those wanting to grow on Twitter/X or have their replies noticed and read.Frequently asked questions
Does it need an X API key?
No. It uses a browser session with your own cookies. An optional LLM key is only needed for server-side text generation.
Is it free and open source?
Yes, it is MIT licensed. AI client, proxy and hosting costs are yours.
Does it post automatically?
Draft mode is on by default. Messages, follows and thread starts need individual approval.
Can I use several accounts?
Yes. Accounts have separate cookies, browser contexts and policy settings.
What are the limits?
It only reads visible X content, layout changes or expired sessions can break it, and the readme says local controls do not guarantee against account restrictions.
Is it affiliated with X?
No, it is an independent community project.
If it does not work
- βΊRun x-use doctor to check your setup and install Chromium with python -m patchright install chromium.
- βΊUse the same absolute X_USE_HOME path in your client config as when you ran x-use init.
- βΊIf a session expires, import fresh cookies from your browser and call list_accounts first.
5 new skills a week. 1 minute to read.