Skip to content
Skillpedia
● Free and open sourceπŸ’» LocalπŸ”‘ Needs an API keyMarketing and sales

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

NameWhat it isRequired
X_USE_HOMEAbsolute private directory for configuration, cookies, action journals and account state. Keep this stable across MCP client working directories.No
OPENAI_API_KEYOptional. 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_URLOptional. 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 posts
  • get_tweet and get_thread: read a post and its thread
  • get_inbox, get_conversation, get_notifications: read messages and notifications
  • post_tweet, reply_to_tweet, prepare_thread: stage posts as drafts
  • approve_draft: publish a draft after review
  • get_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

Python 3.11+ and Chromium. You export your own X session cookies from your logged-in browser, so you need an X account. No X API key.

Skills that pair well

⭐ Skillpedia MCP Β· freeYour agent finds the right skill on its ownInstall our MCP and your agent searches 15,000+ skills whenever it needs one.Install for free β†’

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.