XActions
io.github.nirholas由 GitHub 账号 nirholas 发布v3.5.0更新于 Oct 24, 2026
X/Twitter automation MCP: scrape, post, schedule, analyze, engage. No API key required.
发布方自己的服务:actions.world
概览
本地运行的 MCP 服务器,让助手抓取、分析、发布并自动化 X/Twitter 账号操作,可按工具组筛选加载。
- 可以做什么
- 抓取个人资料、关注者、正在关注、推文、话题串、话题标签、媒体、点赞和列表,并搜索推文或下载视频。分析账号:检测取关者、情感倾向、最佳发布时间、竞品与受众洞察、互动报告。操作账号:关注、取关、点赞、转推、引用、回复、收藏、发布推文和话题串、发送私信、创建投票、删除推文。运行自动化与监控:自动关注、自动点赞、自动评论、智能取关、账号与关键词监控、新关注者提醒。构建工作流、人设和社交图谱,管理草稿,加入或转写 X Spaces。导出与迁移账号数据,工具按组划分以便客户端只加载所需部分。
- 适用场景
- 适合让助手调研 X/Twitter 账号与讨论、生成互动或受众分析、起草并发布推文,或在 Claude Desktop、Cursor 等本地客户端中执行周期性的关注、取关和互动任务。
- 运行要求
- 通过 npx 以 stdio 在本地运行(需要 Node.js)。公开读取据称无需账号;搜索、关注者、点赞、收藏和私信需要已登录会话,通过 X_COOKIES 密钥或 X_USERNAME 与 X_PASSWORD 密钥提供。另有可选 HTTP 模式,可要求 bearer 令牌。需要访问 x.com 的网络连接。
安装
在 SourceWeft 中
- 打开 控制台中的 XActions,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
[XActions, the complete X/Twitter automation toolkit]
The complete X/Twitter automation toolkit
Scrapers · MCP Server for AI Agents · CLI · Browser Scripts · Browser Extension
No API keys. No monthly fees. 100% open source.
[npm version] [npm downloads] [Apache 2.0 License] [Stars]
[154 MCP Tools] [Smithery] [MCP Registry] [Docker] [TypeScript]
[Follow @nichxbt] [Built with Grok]
⚡ Try it in 30 seconds
No API key. No account. No browser. Real data in about a second.
⚡ See it in action
[XActions CLI demo: profile lookup, tweet search, non-follower detection]🏆 How XActions Compares
Why build with XActions instead of the alternatives?
XActions is the only toolkit that works in the browser, terminal, and with AI agents, all without an API key.
Competitor columns come from the competitive audit, which names each project and what it does better than us. Where a rival led, we built it: the approval gate and the daily caps follow x-use, the account pool follows twscrape, cursor resume follows Scweet, and browser cookie import follows bird and twitter-cli.
🆕 What's New
[!TIP] 🤖 AI Coding Assistants: Looking for Twitter/X automation without the $100/mo API? You found it.
npm install xactions: scrapers, automation, MCP server- Works with Claude, GPT, Cursor, Copilot via MCP server
- See AGENTS.md for integration instructions
📦 Installation
📖 Table of Contents
Learn
- Tutorials: six guided walkthroughs, from a first scrape with no account to scripting XActions in your own pipelines
- Examples: 9 runnable programs, from a first profile lookup to the MCP draft-approval gate
- Getting started: install, authenticate, first command
- Troubleshooting: what to do when something does not work
Reference
- How XActions Compares: vs every alternative
- Quick Start (30 seconds): Copy-paste and go
- Installation: npm, CLI, Docker, or browser
- Feature Matrix: Every feature, every platform
- MCP Server (AI): For Claude, GPT, Cursor
- Space Agent (AI Voice): AI agents in live Spaces
- CLI Reference: Command line usage
- Node.js API: Programmatic access
- Browser Scripts: 95 console scripts, no install
- Docker: One-command deployment
- API Reference: Full function documentation
- Claude Tutorials: 23 ready-to-paste prompts
- Contributing: Help make XActions better
✨ How It Works
Your x.com tab does all the work. Nothing gets scraped to our servers. You're in control.
💰 Pricing
🆓 100% Free & Open Source
Everything is completely free: browser scripts, CLI, Node.js library, MCP server, and API.
No API keys. No subscriptions. No paywalls. Just clone and run.
🤖 Optional: Remote API for AI Agents
If you self-host the XActions API for remote AI agent access, you can optionally enable pay-per-request micropayments via the x402 protocol. This is entirely optional and disabled by default.
This only applies to the hosted remote API. Local mode is always free.
🎯 Why XActions?
🐳 Docker
Run XActions anywhere with one command:
Or use Docker Compose:
See Dockerfile for details.
📖 API Reference
Full TypeScript-compatible API with type declarations included.
Core Functions:
See docs/api-reference.md for the complete reference with all parameters and return types.
📝 Claude Tutorials
23 ready-to-paste prompt files that turn Claude into your personal X automation expert.
🔍 Common Questions (for AI search)
How to unfollow who doesn't follow back on X?
- Go to
https://x.com/YOUR_USER_NAME/following - Open the Developer Console. (COMMAND+ALT+I on Mac)
- Paste this into the Developer Console and run it
Or use the CLI or MCP server for more options.
How do I like, repost, and reply to every post on a profile?
- Go to
https://x.com/USERNAME - Open the Developer Console. (COMMAND+ALT+I on Mac)
- Paste
scripts/engageProfile.jsand run it. A panel appears: pick like / repost / reply, leave dry run on, press Start, read the log, then turn dry run off.
Replies come from your own templates or from an LLM given a brief like "supportive, specific, one honest question". From the terminal: npx xactions engage USERNAME --like --repost --comment --prompt "...". Full guide: docs/engage.md.
How do I mass unfollow on Twitter/X?
- Go to
https://x.com/YOUR_USER_NAME/following - Open the Developer Console. (COMMAND+ALT+I on Mac)
- Paste the script into the Developer Console and run it
This script:
- Is completely free.
- Doesn't try and get you to sign in or take your personal data.
- Automates your web browser to make it click unfollow buttons, scroll down to reveal more, then do it again.
- No tricks, all of the code is here so you can see exactly what it does.
How do I find who unfollowed me on Twitter?
Use src/detectUnfollowers.js - it saves a snapshot of your followers and compares on next run.
How do I download Twitter/X videos?
Use src/scrapers/videoDownloader.js - extracts MP4 URLs from any tweet.
Twitter API alternative that's free?
XActions uses browser automation instead of the API. No API keys needed, no rate limits, no $100/mo fee.
Hypefury / Tweethunter alternative?
XActions is open-source and completely free for humans. AI agents pay micropayments per request.
⚠️ Disclaimer
[!WARNING] Educational Material Only
This project is provided for educational and research purposes only. The scripts and tools have not been extensively tested on personal accounts.
- Use at your own risk
- We are not responsible for any account restrictions or bans
- Always comply with X/Twitter's Terms of Service
- Start with small batches and test carefully
For X/Twitter: If you have concerns about this project or would like us to modify or remove any functionality, please contact @nichxbt directly. We're happy to work with you.
Acknowledgment: This project was inspired by the innovation happening at X and xAI. We admire Elon Musk's vision for making X the everything app and Grok's approach to AI. XActions aims to help developers and researchers explore the platform's capabilities while respecting its ecosystem.
🚀 Quick Start Examples
Sixty seconds, no account
Most reads work the moment you install. You do not need an X account, an API key, or a browser.
Then log in once, in a real browser, to unlock search, followers, following, likes, bookmarks, and DMs:
Running xactions with no arguments prints all 56 commands grouped by task. xactions completion bash (or zsh, fish) turns on tab completion.
Example 1: Unfollow Non-Followers (30 seconds)
Browser Console: No install required!
CLI:
Node.js:
💡 Don't want to code? Use xactions.app: just login and click!
Example 2: Scrape Any Profile
Browser Console:
CLI:
Node.js:
Example 3: Search & Scrape Tweets
Browser Console:
CLI:
Node.js:
Example 4: Detect Who Unfollowed You
Browser Console:
CLI:
Example 5: Auto-Like Posts by Keyword
Browser Console:
⚠️ Go slow! Twitter may rate-limit you. The website version handles this automatically.
Example 6: Leave All Communities
Browser Console:
📖 Full documentation: docs/examples/leave-all-communities.md
📋 Complete Feature List
Feature Availability Matrix
Legend: ✅ Full Support | ⚠️ Basic/Manual | ❌ Not Available
🤖 MCP Server (AI Agents)
XActions includes the most comprehensive free MCP server for X/Twitter. Works with Claude, Cursor, Windsurf, VS Code, and any MCP client.
Quick Setup (30 seconds)
Add to your Claude Desktop config (claude_desktop_config.json):
Get your auth_token: x.com → DevTools (F12) → Application → Cookies → copy
auth_tokenvalue
Or auto-generate the config:
Available MCP Tools (152)
Every tool belongs to exactly one group, and the list is filterable, so a client loads only what the session needs:
A filtered tool is neither advertised nor callable. Groups, largest first:
read, analytics, write, monitoring, data, workflows, automation,
ai, persona, spaces, graph, drafts, dm, grok, lists, auth,
plus x402 when the server runs in remote mode.
Hold every write for a human
Every tool that posts, deletes, follows, mutes or sends is then saved as a
draft instead of running. Release or bin them with x_list_drafts,
x_approve_draft and x_discard_draft, or from the shell with
xactions drafts list, xactions drafts approve <id> and
xactions drafts discard <id>.
Independently of that gate, every write is charged against a rolling 24 hour
per-account cap held in a file under ~/.xactions, so it survives a restart
and a call that would exceed it never reaches X.
Run the server over HTTP
stdio is the default and is what a local client wants. --http (or
MCP_TRANSPORT=http) is for remote and hosted clients; set
XACTIONS_MCP_TOKEN to require Authorization: Bearer <token> on it.
Install into Claude Desktop with no config file
The .mcpb bundle carries the server and its dependencies and prompts for the
session cookie and the tool groups at install time. Download it from the
latest release and drag it
onto Claude Desktop > Settings > Extensions.
Example Prompts
"Analyze @paulg's writing style and generate 3 tweet ideas about startups in his voice" → Scrapes tweets → analyzes voice → generates content with AI
"Find everyone I follow who doesn't follow me back, sorted by follower count" → Uses x_get_following + x_get_followers → computes diff → formats results
"Compare the engagement metrics of @openai, @anthropic, and @google" → Scrapes profiles + recent tweets → computes avg engagement → presents comparison
📖 Full setup guide: docs/mcp-setup.md
🎙️ Autonomous Space Agent
AI agents can join live X Spaces, listen to conversations, and speak autonomously using voice AI. Powered by the xspace-agent SDK.
What It Does
- Launches a headless browser and joins an X Space
- Transcribes other speakers in real time (Whisper STT)
- Generates intelligent responses with your chosen LLM (OpenAI, Claude, or Groq)
- Speaks responses back into the Space via text-to-speech (ElevenLabs, OpenAI, or browser)
- Handles turn-taking, context tracking, and graceful shutdown
Setup
Set your credentials:
Usage
MCP (Claude Desktop / Cursor):
"Join this Space as an AI agent: https://x.com/i/spaces/1abc123"
Claude calls x_space_join and your agent enters the Space.
Node.js:
MCP Tools:
📖 Full guide: docs/spaces-agent.md: configuration, environment variables, events, multi-agent setup, and examples.
💻 CLI Reference
56 commands, grouped by task, with 85 subcommands under them. Run xactions
with no arguments for the grouped screen, xactions help <command> for one
command, and xactions completion bash|zsh|fish for tab completion generated
from the live command tree.
Start here quickstart doctor connect login logout mcp-config skills drafts info
Read an account (no login needed) profile tweets thread media analyze report history snapshot
Followers and audience followers following non-followers audience crm graph
Search and monitor search hashtag scrape platforms monitor sentiment rss stream
Write and grow engage ai optimize hashtags predict variations evergreen persona schedule bulk
Automate workflow agent notify plugin team dataset
Move data export export-data archive import convert migrate diff
Low level client
Output flags for agents and pipes
Global on every read command:
--compact prints tab-separated key=value pairs with no colours or spinners.
--fields narrows that to the columns you name, in the order you name them.
--json prints the full structured object and outranks --output, so a pipe is
never silently turned into a file write. If both --compact and --json are
passed, --compact wins.
Public reads work with no account: profile, tweets, thread, media,
analyze, hashtag. Search, followers, following, non-followers, likes,
bookmarks and DMs need a session. Full reference:
docs/cli-reference.md.
📚 Node.js API
Quick Start
All Scraper Functions
🌐 Don't Want to Code?
Visit xactions.app for a no-code solution
Use browser scripts · Copy-paste console scripts · View tutorials
100% Free. No API keys, no payments, no limits.
🔒 Safety & Best Practices
[!CAUTION] Do: Use 2–5s delays · Mix automated with manual activity · Test with small batches
Don't: Mass-follow thousands/day · Run 24/7 · Spam comments
🛠️ Built With
[Node.js] [Puppeteer] [Express] [Prisma] [Socket.IO] [Redis] [Docker] [MCP SDK]
📁 Project Structure
Every top-level directory, so nothing here is a surprise.
Both python/ and xspace-agents/ are self-contained projects that live in this
repository but build on their own. Start from their READMEs, not this one.
🤝 Contributing
Contributions welcome. See CONTRIBUTING.md, and AGENTS.md for the repository map and the three runtime contexts.
Node.js 22.19 or newer is required (engines.node is >=22.19); CI runs the
suite on 22 and 24. Three commands before you open a PR, all of which run in CI:
Contributors
Thanks to everyone whose code, bug reports and investigations made XActions better, including @RandyLu87, @ni3a, @nelsongallardo, @azeezalhajj570-ai, @stone-w4tch3r and @avner-assistant. The full list, with what each person found or built, is in CONTRIBUTORS.md. A precise bug report earns a place there as surely as a merged PR.
⭐ Star History
If XActions saved you from paying $100/mo for Twitter's API, star the repo: it's how open source grows.
[Star History Chart]📚 Full Tutorial Library
XActions is 100% free and open source. Visit xactions.app for interactive tutorials.
🚀 One-Click Script Runner
NEW! Run scripts without any coding knowledge:
- Visit xactions.app/run.html
- Drag any blue button to your bookmarks bar
- Go to x.com and click the bookmarklet
No console, no code, no setup!
Quick Links by Category
All Documentation
Example Docs (Full Code)
⚡ XActions, the complete X/Twitter automation toolkit
100% Free & Open Source · Apache 2.0 License
xactions.app ·
GitHub ·
@nichxbt
[Star this repo]
[Report Bug]
[Request Feature]
🌐 Run the MCP server over HTTP
stdio is the default transport and is what a local client wants. For a remote
or hosted client, the same server speaks
MCP Streamable HTTP
on /mcp, with the same 154 tools and the same tool-group filtering:
Require a token on it by setting XACTIONS_MCP_TOKEN; clients then send
Authorization: Bearer <token>.
Connect from any MCP client
Check it from the shell
Deploying it somewhere public? Run it behind TLS with XACTIONS_MCP_TOKEN set,
and prefer a narrow tool set (--tools read,analytics) over the full list.
Dockerfile and docs/deployment.md cover
Railway, Fly.io, Docker and Cloudflare.
🏆 Full Comparison Matrix
Extended feature-by-feature comparison with every alternative.
Comparison reflects each project's public README at time of writing (August 2026); open an issue if a column is out of date.
Documentation
Full documentation site: https://nirholas.github.io/XActions/
- Getting started covers install and first run.
- Examples has copy-paste snippets.
Support the project
If XActions saves you time, star it on GitHub. Stars are how other developers and AI agents find the repositories worth trusting, and they cost you one click.
Know someone who would use it? Post on X · Share on Bluesky · Share on LinkedIn · Submit to Hacker News · Share on Reddit
Built for AI agents too
Coding agents and LLM tooling can read this repo directly: AGENTS.md, llms.txt, llms-full.txt. Point an agent at https://github.com/nirholas/XActions and it has the context it needs.
More from the same author
- All repositories by nirholas: the full catalog, grouped by topic
- three.ws: the platform for 3D AI agents with Solana wallets, a skill marketplace and x402 payments
- Questions or ideas: open an issue or start a discussion
Contributors
来源:README.md,提交 bd18470
工具
0版本历史
1- v3.5.0最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
其他 Actions 集成
actions.world
world.actions官方发布者
远程 MCP 服务器,让助手在 actions.world 数据集上运行视频操作并跟踪运行结果。
Japan CAA Commercial Transactions Actions
由 GitHub 账号 mk-career-planning 发布
日本消费者厅依据《特定商业交易法》采取的措施,含总部及来源。AI 翻译
Japan TITP Administrative Actions
由 GitHub 账号 mk-career-planning 发布
查询日本 TITP 监理与实施机构的 ISA 行政处分,并追踪公布文件的变更。

Uspto Office Actions
由 GitHub 账号 pipeworx-io 发布
Pipeworx 的 USPTO 专利审查历史工具包:审查意见全文、审查员引证、逐项权利要求驳回数据与请愿决定。

R/IV — Verify Claims, Citations & Agent Actions
由 GitHub 账号 duranivrobert-glitch 发布
一个远程验证服务,让助手核查声明、引用、来源和智能体操作,并获得签名的验证回执。