
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
XActions - The Complete X/Twitter Automation Toolkit. Scrapers, MCP server for AI agents, CLI, and browser scripts. No API required. Open source by @nichxbt. Don't Panic.
โโโ โโโ โโโโโโ โโโโโโโโโโโโโโโโโโโ โโโโโโโ โโโโ โโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโ โโโโโโ โโโโโโโโโโโ โโโ โโโโโโ โโโโโโโโโ โโโโโโโโโโโ โโโโโโ โโโโโโโโโโโ โโโ โโโโโโ โโโโโโโโโโโโโโโโโโโโโ โโโโ โโโโโโ โโโโโโโโโโโ โโโ โโโโโโโโโโโโโโโ โโโโโโโโโโโโโโ โโโ โโโโโโ โโโ โโโโโโโ โโโ โโโ โโโโโโโ โโโ โโโโโโโโโโโโโ
Scrapers ย ยทย MCP Server for AI Agents ย ยทย CLI ย ยทย Browser Scripts ย ยทย Browser Extension
No API keys. No monthly fees. 100% open source.
Website ย ยทย npm ย ยทย Docs ย ยทย MCP Server ย ยทย Docker ย ยทย API Ref
Why build with XActions instead of the alternatives?
| Feature | XActions | twikit | twitter-mcp | agent-twitter-client | twit | twitter-scraper |
|---|---|---|---|---|---|---|
| No API Key Required | โ | โ | โ Needs keys | โ | โ Needs keys | โ |
| MCP Server (AI agents) | โ 140+ tools | โ | โ 2 tools | โ | โ | โ |
| Browser Console Scripts | โ 50+ | โ | โ | โ | โ | โ |
| AI Voice Agent in Spaces | โ Join, listen, speak | โ | โ | โ | โ | โ |
| CLI | โ 12 commands | โ | โ | โ | โ | โ |
XActions is the only toolkit that works in the browser, terminal, and with AI agents โ all without an API key.
The biggest update since launch. 58,000+ lines of new code across 115 files.
| Feature | What it does |
|---|---|
| Plugin System | Community plugins via npm โ xactions-plugin-* packages extend scrapers, MCP tools, and automation |
| Cross-Platform | Scrape Bluesky (AT Protocol), Mastodon (REST API), and Threads โ unified interface |
| Workflow Engine | Declarative JSON pipelines with triggers, conditions, and chained actions |
| Real-Time Streaming | Subscribe to live tweet/follower/mention events via Socket.IO |
| Sentiment Analysis | Built-in analyzer (works offline) + optional LLM mode โ reputation monitoring with alerts |
| Social Graph | Map account relationships, detect clusters, find bridge accounts, D3.js visualization |
| Account Portability | Export your entire Twitter life to JSON/CSV/HTML โ migration stubs for Bluesky & Mastodon |
| Browser Extension | Chrome/Firefox Manifest V3 โ run automations from a popup, no console needed |
| Dashboard Upgrade | Live automation controls, real-time monitoring, visual workflow builder, analytics page |
| 15+ New Scripts | Engagement booster, shadowban checker, viral detector, thread composer, content calendar, and more |
See CHANGELOG.md for full details.
[!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
https://x.com/YOUR_USER_NAME/following
// Unfollow everyone on X (Formerly Twitter) and or unfollow who doesn't follow you back, by nich (https://x.com/nichxbt)
// https://github.com/nirholas/xactions
// 1. Go to https://x.com/YOUR_USER_NAME/following
// 2. Open the Developer Console. (COMMAND+ALT+I on Mac)
// 3. Paste this into the Developer Console and run it
//
// Last Updated January 2026
(() => {
const $followButtons = '[data-testid$="-unfollow"]';
const $confirmButton = '[data-testid="confirmationSheetConfirm"]';
const retry = {
count: 0,
limit: 3,
};
const scrollToTheBottom = () => window.scrollTo(0, document.body.scrollHeight);
const retryLimitReached = () => retry.count === retry.limit;
const addNewRetry = () => retry.count++;
const sleep = ({ seconds }) =>
new Promise((proceed) => {
console.log(`WAITING FOR ${seconds} SECONDS...`);
setTimeout(proceed, seconds * 1000);
});
const unfollowAll = async (followButtons) => {
console.log(`UNFOLLOWING ${followButtons.length} USERS...`);
await Promise.all(
followButtons.map(async (followButton) => {
followButton && followButton.click();
await sleep({ seconds: 1 });
const confirmButton = document.querySelector($confirmButton);
confirmButton && confirmButton.click();
})
);
};
const nextBatch = async () => {
scrollToTheBottom();
await sleep({ seconds: 1 });
let followButtons = Array.from(document.querySelectorAll($followButtons));
followButtons = followButtons.filter(b => b.parentElement?.parentElement?.querySelector('[data-testid="userFollowIndicator"]') === null)
const followButtonsWereFound = followButtons.length > 0;
if (followButtonsWereFound) {
await unfollowAll(followButtons);
await sleep({ seconds: 2 });
return nextBatch();
} else {
addNewRetry();
}
if (retryLimitReached()) {
console.log(`NO ACCOUNTS FOUND, SO I THINK WE'RE DONE`);
console.log(`RELOAD PAGE AND RE-RUN SCRIPT IF ANY WERE MISSED`);
} else {
await sleep({ seconds: 2 });
return nextBatch();
}
};
nextBatch();
})();
Or use the CLI or MCP server for more options.
https://x.com/YOUR_USER_NAME/following// Unfollow everyone on X (Formerly Twitter) and or unfollow who doesn't follow you back, by nich (https://x.com/nichxbt)
// https://github.com/nirholas/xactions
//
// 1. Go to https://x.com/YOUR_USER_NAME/following
// 2. Open the Developer Console. (COMMAND+ALT+I on Mac)
// 3. Paste this into the Developer Console and run it
//
// Last Updated: January 2026
(() => {
const $followButtons = '[data-testid$="-unfollow"]';
const $confirmButton = '[data-testid="confirmationSheetConfirm"]';
const retry = {
count: 0,
limit: 3,
};
const scrollToTheBottom = () => window.scrollTo(0, document.body.scrollHeight);
const retryLimitReached = () => retry.count === retry.limit;
const addNewRetry = () => retry.count++;
const sleep = ({ seconds }) =>
new Promise((proceed) => {
console.log(`WAITING FOR ${seconds} SECONDS...`);
setTimeout(proceed, seconds * 1000);
});
const unfollowAll = async (followButtons) => {
console.log(`UNFOLLOWING ${followButtons.length} USERS...`);
await Promise.all(
followButtons.map(async (followButton) => {
followButton && followButton.click();
await sleep({ seconds: 1 });
const confirmButton = document.querySelector($confirmButton);
confirmButton && confirmButton.click();
})
);
};
const nextBatch = async () => {
scrollToTheBottom();
await sleep({ seconds: 1 });
const followButtons = Array.from(document.querySelectorAll($followButtons));
const followButtonsWereFound = followButtons.length > 0;
if (followButtonsWereFound) {
await unfollowAll(followButtons);
await sleep({ seconds: 2 });
return nextBatch();
} else {
addNewRetry();
}
if (retryLimitReached()) {
console.log(`NO ACCOUNTS FOUND, SO I THINK WE'RE DONE`);
console.log(`RELOAD PAGE AND RE-RUN SCRIPT IF ANY WERE MISSED`);
} else {
await sleep({ seconds: 2 });
return nextBatch();
}
};
nextBatch();
})();
This script:
Use src/detectUnfollowers.js - it saves a snapshot of your followers and compares on next run.
Use src/scrapers/videoDownloader.js - extracts MP4 URLs from any tweet.
XActions uses browser automation instead of the API. No API keys needed, no rate limits, no $100/mo fee.
XActions is open-source and completely free for humans. AI agents pay micropayments per request.
| 1. Paste Copy a script into the x.com DevTools console | 2. Run Use the CLI, MCP server, or browser extension | 3. Done Everything runs locally. No data leaves your machine |
Your x.com tab does all the work. Nothing gets scraped to our servers. You're in control.
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.
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.
| Operation | Price |
|---|---|
| Profile scrape | $0.001 |
| Followers/Following | $0.01 |
| Tweet scrape | $0.005 |
| Search tweets | $0.01 |
| Unfollow non-followers | $0.05 |
| Detect unfollowers | $0.02 |
| Auto-like | $0.02 |
| Video download | $0.005 |
This only applies to the hosted remote API. Local mode is always free.
| XActions | Others | |
| Scope | Browser + CLI + Node.js + MCP + Extension | Usually 1 thing |
| API Key | Not needed | Most need Twitter API ($100/mo) |
| MCP Tools | 140+ for Claude, GPT, Cursor | 0โ2 tools |
| AI Features | Sentiment, Grok, reputation | None |
| Export | JSON, CSV, Markdown, HTML | JSON only (if any) |
| Migration | Bluesky & Mastodon stubs | None |
| Tutorials | 22 Claude prompts | None |
Run XActions anywhere with one command:
# Quick start
docker build -t xactions .
docker run -it xactions xactions profile elonmusk
# Run the MCP server
docker run -p 3000:3000 xactions npm run mcp
# With environment variables
docker run -e XACTIONS_SESSION_COOKIE=your_cookie xactions xactions followers elonmusk
Or use Docker Compose:
docker compose up
See Dockerfile for details.
Full TypeScript-compatible API with type declarations included.
import { createBrowser, createPage, scrapeProfile, scrapeFollowers } from 'xactions';
import { scrapeFollowing, scrapeTweets, searchTweets } from 'xactions/scrapers';
Core Functions:
| Function | Description | Returns |
|---|---|---|
createBrowser(options?) | Launch Puppeteer browser | Browser |
createPage(browser) | Create stealth page | Page |
scrapeProfile(page, username) | Get user profile data | Profile |
scrapeFollowers(page, username, options?) | List followers | User[] |
scrapeFollowing(page, username, options?) | List following | User[] |
scrapeTweets(page, username, options?) | Get user tweets | Tweet[] |
searchTweets(page, query, options?) | Search tweets | Tweet[] |
downloadVideo(page, tweetUrl) | Extract video URLs | VideoResult |
exportBookmarks(page, options?) | Export bookmarks | Bookmark[] |
unrollThread(page, tweetUrl) | Unroll a thread | Thread |
See docs/api-reference.md for the complete reference with all parameters and return types.
22 ready-to-paste prompt files that turn Claude into your personal X automation expert.
| Tutorial | What You'll Learn |
|---|---|
| MCP Setup | Install and connect XActions to Claude Desktop |
| Unfollow Cleanup | Remove non-followers, detect unfollowers |
| Growth Suite | Auto-follow, auto-like, keyword targeting |
| Scraping | Extract profiles, tweets, hashtags |
| Content Posting | Tweets, threads, polls, scheduling |
| Analytics | Performance tracking, competitor analysis |
| Power User Playbook | 10 advanced multi-feature strategies |
[!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.
| npm |
|
| CLI |
|
| Browser |
No install needed โ copy-paste scripts into your browser console on x.com |
Browser Console โ No install required!
// Go to: x.com/YOUR_USERNAME/following
// Press F12 โ Console โ Paste this:
(() => {
const sleep = (s) => new Promise(r => setTimeout(r, s * 1000));
const run = async () => {
const buttons = [...document.querySelectorAll('[data-testid$="-unfollow"]')]
.filter(b => !b.closest('[data-testid="UserCell"]')
?.querySelector('[data-testid="userFollowIndicator"]'));
for (const btn of buttons) {
btn.click();
await sleep(1);
document.querySelector('[data-testid="confirmationSheetConfirm"]')?.click();
await sleep(2);
}
window.scrollTo(0, document.body.scrollHeight);
await sleep(2);
if (document.querySelectorAll('[data-testid$="-unfollow"]').length) run();
else console.log('โ
Done! Reload page to continue.');
};
run();
})();
CLI:
xactions login
xactions non-followers YOUR_USERNAME --output non-followers.json
Node.js:
import { createBrowser, createPage, scrapeFollowing } from 'xactions';
const browser = await createBrowser();
const page = await createPage(browser);
const following = await scrapeFollowing(page, 'your_username', { limit: 500 });
const nonFollowers = following.filter(u => !u.followsBack);
console.log(`Found ${nonFollowers.length} non-followers`);
await browser.close();
๐ก Don't want to code? Use xactions.app โ just login and click!
Browser Console:
// Go to any profile on x.com, then run:
(() => {
const profile = {
name: document.querySelector('[data-testid="UserName"]')?.textContent?.split('@')[0]?.trim(),
username: location.pathname.slice(1),
bio: document.querySelector('[data-testid="UserDescription"]')?.textContent,
followers: document.querySelector('a[href$="/followers"] span')?.textContent,
following: document.querySelector('a[href$="/following"] span')?.textContent,
};
console.log(profile);
copy(JSON.stringify(profile, null, 2)); // Copies to clipboard!
})();
CLI:
xactions profile elonmusk --json
Node.js:
import { createBrowser, createPage, scrapeProfile } from 'xactions';
const browser = await createBrowser();
const page = await createPage(browser);
const profile = await scrapeProfile(page, 'elonmusk');
console.log(profile);
// { name: 'Elon Musk', followers: '200M', bio: '...', ... }
await browser.close();
Browser Console:
// Go to: x.com/search?q=YOUR_KEYWORD&f=live
(() => {
const tweets = [...document.querySelectorAll('article[data-testid="tweet"]')]
.map(article => ({
text: article.querySelector('[data-testid="tweetText"]')?.textContent,
author: article.querySelector('[data-testid="User-Name"] a')?.href?.split('/')[3],
time: article.querySelector('time')?.getAttribute('datetime'),
}));
console.table(tweets);
copy(JSON.stringify(tweets, null, 2));
})();
CLI:
xactions search "AI startup" --limit 100 --output ai-tweets.json
Node.js:
import { createBrowser, createPage, searchTweets } from 'xactions';
const browser = await createBrowser();
const page = await createPage(browser);
const tweets = await searchTweets(page, 'AI startup', { limit: 100 });
console.log(`Found ${tweets.length} tweets`);
await browser.close();
Browser Console:
// Go to: x.com/YOUR_USERNAME/followers
(() => {
const KEY = 'xactions_followers';
const sleep = (ms) => new Promise(r => setTimeout(r, ms));
const scrape = async () => {
const users = new Set();
let retries = 0;
while (retries < 5) {
document.querySelectorAll('[data-testid="UserCell"] a')
.forEach(a => users.add(a.href.split('/')[3]?.toLowerCase()));
window.scrollTo(0, document.body.scrollHeight);
await sleep(1500);
retries++;
}
return [...users].filter(Boolean);
};
scrape().then(current => {
const saved = localStorage.getItem(KEY);
if (saved) {
const old = JSON.parse(saved);
const gone = old.filter(u => !current.includes(u));
console.log('๐จ Unfollowed you:', gone);
}
localStorage.setItem(KEY, JSON.stringify(current));
console.log(`๐พ Saved ${current.length} followers`);
});
})();
CLI:
# First run saves snapshot
xactions followers YOUR_USERNAME --output snapshot1.json
# Later, compare
xactions followers YOUR_USERNAME --output snapshot2.json
# Use diff tools to compare
Browser Console:
// Go to: x.com/search?q=YOUR_KEYWORD&f=live
(async () => {
const sleep = (s) => new Promise(r => setTimeout(r, s * 1000));
const liked = new Set();
while (liked.size < 20) { // Like 20 posts
const buttons = [...document.querySelectorAll('[data-testid="like"]')]
.filter(b => !liked.has(b));
for (const btn of buttons.slice(0, 3)) {
btn.click();
liked.add(btn);
console.log(`โค๏ธ Liked ${liked.size} posts`);
await sleep(3 + Math.random() * 2); // Random delay
}
window.scrollTo(0, document.body.scrollHeight);
await sleep(2);
}
console.log('โ
Done!');
})();
โ ๏ธ Go slow! Twitter may rate-limit you. The website version handles this automatically.
Browser Console:
// Go to: x.com/YOUR_USERNAME/communities
(() => {
const $communityLinks = 'a[href^="/i/communities/"]';
const $joinedButton = 'button[aria-label^="Joined"]';
const $confirmButton = '[data-testid="confirmationSheetConfirm"]';
const $communitiesNav = 'a[aria-label="Communities"]';
const getLeftCommunities = () => {
try { return JSON.parse(sessionStorage.getItem('xactions_left_ids') || '[]'); }
catch { return []; }
};
const markAsLeft = (id) => {
const left = getLeftCommunities();
if (!left.includes(id)) {
left.push(id);
sessionStorage.setItem('xactions_left_ids', JSON.stringify(left));
}
};
const sleep = (ms) => new Promise(r => setTimeout(r, ms));
const getCommunityId = () => {
const leftAlready = getLeftCommunities();
for (const link of document.querySelectorAll($communityLinks)) {
const match = link.href.match(/\/i\/communities\/(\d+)/);
if (match && !leftAlready.includes(match[1])) return { id: match[1], element: link };
}
return null;
};
const run = async () => {
console.log(`๐ Left so far: ${getLeftCommunities().length}`);
await sleep(1500);
const joinedBtn = document.querySelector($joinedButton);
if (joinedBtn) {
const urlMatch = window.location.href.match(/\/i\/communities\/(\d+)/);
const currentId = urlMatch ? urlMatch[1] : null;
joinedBtn.click();
await sleep(1000);
const confirmBtn = document.querySelector($confirmButton);
if (confirmBtn) { confirmBtn.click(); if (currentId) markAsLeft(currentId); await sleep(1500); }
const communitiesLink = document.querySelector($communitiesNav);
if (communitiesLink) { communitiesLink.click(); await sleep(2500); return run(); }
}
const community = getCommunityId();
if (community) { community.element.click(); await sleep(2500); return run(); }
else { console.log(`๐ DONE! Left ${getLeftCommunities().length} communities`); sessionStorage.removeItem('xactions_left_ids'); }
};
run();
})();
๐ Full documentation: docs/examples/leave-all-communities.md
| Feature | Console Script | CLI | Node.js | Website |
|---|---|---|---|---|
| SCRAPING | ||||
| Scrape Profile | โ | โ | โ | โ |
| Scrape Followers | โ | โ | โ | โ |
| Scrape Following | โ | โ | โ | โ |
| Scrape Tweets | โ | โ | โ | โ |
| Search Tweets | โ | โ | โ | โ |
| Scrape Thread | โ | โ | โ | โ |
| Scrape Hashtag | โ | โ | โ | โ |
| Scrape Media | โ | โ | โ | โ |
| Scrape List Members | โ | โ | โ | โ |
| Scrape Likes | โ | โ | โ | โ |
| UNFOLLOW | ||||
| Unfollow Non-Followers | โ | โ | โ | โ |
| Unfollow Everyone | โ | โ | โ | โ |
| Smart Unfollow (after X days) | โ ๏ธ | โ | โ | โ |
| Unfollow with Logging | โ | โ | โ | โ |
| FOLLOW | ||||
| Follow User | โ | โ | โ | โ |
| Keyword Follow | โ ๏ธ | โ | โ | โ |
| Follow Engagers | โ ๏ธ | โ | โ | โ |
| Follow Target's Followers | โ ๏ธ | โ | โ | โ |
| ENGAGEMENT | ||||
| Like Tweet | โ | โ | โ | โ |
| Retweet | โ | โ | โ | โ |
| Auto-Liker | โ ๏ธ | โ | โ | โ |
| Auto-Commenter | โ ๏ธ | โ | โ | โ |
| Post Tweet | โ | โ | โ | โ |
| MONITORING | ||||
| Detect Unfollowers | โ | โ | โ | โ |
| New Follower Alerts | โ | โ | โ | โ |
| Monitor Any Account | โ | โ | โ | โ |
| Continuous Monitoring | โ ๏ธ | โ | โ | โ |
| COMMUNITIES | ||||
| Leave All Communities | โ | โ ๏ธ | โ ๏ธ | โ ๏ธ |
| SPACES | ||||
| Discover Live Spaces | โ | โ | โ | โ |
| Scrape Space Metadata | โ | โ | โ | โ |
| AI Agent Joins Space | โ | โ | โ | โ |
| Agent Listens & Speaks | โ | โ | โ | โ |
| ADVANCED | ||||
| Multi-Account | โ | โ | โ | โ Pro |
| Link Scraper | โ | โ | โ | โ |
| Growth Suite | โ | โ | โ | โ Pro |
| Customer Service Bot | โ | โ | โ | โ Pro |
| MCP Server (AI Agents) | โ | โ | โ | โ |
| Export to CSV/JSON | โ | โ | โ | โ |
Legend: โ Full Support | โ ๏ธ Basic/Manual | โ Not Available
XActions includes the most comprehensive free MCP server for X/Twitter. Works with Claude, Cursor, Windsurf, VS Code, and any MCP client.
Add to your Claude Desktop config (claude_desktop_config.json):
{
"mcpServers": {
"xactions": {
"command": "npx",
"args": ["-y", "xactions-mcp"],
"env": {
"XACTIONS_SESSION_COOKIE": "your_auth_token_here"
}
}
}
}
Get your auth_token: x.com โ DevTools (F12) โ Application โ Cookies โ copy
auth_tokenvalue
Or auto-generate the config:
npx xactions mcp-config --client claude
npx xactions mcp-config --client cursor
npx xactions mcp-config --client windsurf
| Category | Tools |
|---|---|
| Scraping | x_get_profile, x_get_followers, x_get_following, x_get_tweets, x_search_tweets, x_get_thread, x_download_video, x_get_replies, x_get_hashtag, x_get_likers, x_get_retweeters, x_get_media, x_get_mentions, x_get_quote_tweets, x_get_likes, x_get_recommendations |
| Analysis | x_detect_unfollowers, x_analyze_sentiment, x_best_time_to_post, x_competitor_analysis, x_brand_monitor, x_audience_insights, x_engagement_report, x_crypto_analyze |
| Actions | x_follow, x_unfollow, x_like, x_post_tweet, x_post_thread, x_reply, x_retweet, x_quote_tweet, x_bookmark, x_send_dm, x_create_poll, x_delete_tweet |
| Automation | x_auto_follow, x_follow_engagers, x_unfollow_all, x_smart_unfollow, x_auto_comment, x_auto_retweet, x_auto_like, x_unfollow_non_followers |
| AI | x_analyze_voice, x_generate_tweet, x_summarize_thread, x_rewrite_tweet, x_detect_bots, x_find_influencers, x_smart_target, x_grok_analyze_image |
| Monitoring | x_monitor_account, x_monitor_keyword, x_follower_alerts, x_track_engagement, x_monitor_reputation, x_stream_start |
| Workflows | x_workflow_create, x_workflow_run, x_workflow_list, x_workflow_actions |
| Persona | x_persona_create, x_persona_run, x_persona_edit, x_persona_list, x_persona_presets |
| Portability | x_export_account, x_migrate_account, x_diff_exports, x_import_data, x_convert_format |
| Spaces | x_get_spaces, x_scrape_space, x_space_join, x_space_leave, x_space_status, x_space_transcript |
| Graph | x_graph_build, x_graph_analyze, x_graph_recommendations, x_graph_list |
"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
AI agents can join live X Spaces, listen to conversations, and speak autonomously using voice AI. Powered by the xspace-agent SDK.
npm install xactions xspace-agent
Set your credentials:
export X_AUTH_TOKEN="your_auth_token" # From x.com cookies
export X_CT0="your_ct0_token" # From x.com cookies
export OPENAI_API_KEY="sk-..." # Or ANTHROPIC_API_KEY / GROQ_API_KEY
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:
import { joinSpace, leaveSpace } from 'xactions/spaces/agent';
await joinSpace({
url: 'https://x.com/i/spaces/1abc123',
provider: 'openai',
systemPrompt: 'You are a helpful AI participant. Keep responses concise.',
});
// Later...
const summary = await leaveSpace();
// { duration: '300s', transcriptions: 42, responses: 8 }
MCP Tools:
| Tool | Description |
|---|---|
x_space_join | Join a Space with an autonomous AI voice agent |
x_space_leave | Leave the active Space and get session summary |
x_space_status | Get agent status (duration, transcription/response counts) |
x_space_transcript | Get recent transcriptions from the active Space |
๐ Full guide: docs/spaces-agent.md โ configuration, environment variables, events, multi-agent setup, and examples.
# Authentication
xactions login # Set up session cookie
xactions logout # Remove saved auth
# Profile
xactions profile <user> # Get profile info
xactions profile elonmusk --json
# Scraping
xactions followers <user> [--limit 100] [--output file.json]
xactions following <user> [--limit 100] [--output file.csv]
xactions tweets <user> [--limit 50] [--replies]
xactions search <query> [--filter latest|top] [--limit 50]
xactions hashtag <tag> [--limit 50]
xactions thread <url>
xactions media <user> [--limit 50]
# Analysis
xactions non-followers <user> [--limit 500]
# MCP
xactions mcp-config # Generate MCP config for Claude Desktop
xactions mcp-config --client cursor --write # Write config for Cursor
# Info
xactions info # Show version and links
xactions --help # Full help
import {
createBrowser,
createPage,
loginWithCookie,
scrapeProfile,
scrapeFollowers,
scrapeFollowing,
scrapeTweets,
searchTweets,
exportToJSON,
exportToCSV
} from 'xactions';
// Initialize
const browser = await createBrowser({ headless: true });
const page = await createPage(browser);
// Optional: Login for private data
await loginWithCookie(page, 'your_auth_token_cookie');
// Scrape profile
const profile = await scrapeProfile(page, 'elonmusk');
// Scrape followers with progress
const followers = await scrapeFollowers(page, 'elonmusk', {
limit: 1000,
onProgress: ({ scraped, limit }) => console.log(`${scraped}/${limit}`)
});
// Export data
await exportToJSON(followers, 'followers.json');
await exportToCSV(followers, 'followers.csv');
await browser.close();
// Profile
scrapeProfile(page, username)
// Followers & Following
scrapeFollowers(page, username, { limit, onProgress })
scrapeFollowing(page, username, { limit, onProgress })
// Tweets
scrapeTweets(page, username, { limit, includeReplies, onProgress })
searchTweets(page, query, { limit, filter: 'latest'|'top' })
scrapeThread(page, tweetUrl)
scrapeHashtag(page, hashtag, { limit, filter })
// Media
scrapeMedia(page, username, { limit })
scrapeLikes(page, tweetUrl, { limit })
// Lists
scrapeListMembers(page, listUrl, { limit })
// Export
exportToJSON(data, filename)
exportToCSV(data, filename)
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.
|
Rate Limiting โ Built-in 1โ3s delays, human-like scrolling, auto-pause on rate limits |
|
Auth Token โ |
[!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
xactions/
โโโ src/
โ โโโ index.js # Main entry point
โ โโโ scrapers/ # Multi-platform scrapers
โ โ โโโ index.js # Unified interface: scrape(platform, type, opts)
โ โ โโโ twitter/ # X/Twitter scrapers (Puppeteer)
โ โ โโโ bluesky/ # Bluesky scrapers (AT Protocol)
โ โ โโโ mastodon/ # Mastodon scrapers (REST API)
โ โ โโโ threads/ # Threads scrapers (Puppeteer)
โ โโโ cli/ # Command-line interface
โ โโโ mcp/ # MCP server (140+ tools for AI agents)
โ โโโ spaces/ # Autonomous Space agent (xspace-agent integration)
โ โโโ automation/ # Browser console automation scripts
โ โโโ plugins/ # Plugin system (loader, manager, template)
โ โโโ streaming/ # Real-time event streams (Socket.IO)
โ โโโ workflows/ # Declarative automation pipelines
โ โโโ analytics/ # Sentiment analysis & reputation monitoring
โ โโโ portability/ # Account export, migration, archive viewer
โ โโโ graph/ # Social graph analysis & visualization
โโโ api/ # Express REST API
โ โโโ routes/ # 29 route modules
โ โโโ services/ # Business logic + Bull job queue
โ โโโ middleware/ # Auth, x402, AI detection
โ โโโ realtime/ # Socket.IO handler
โโโ dashboard/ # Website (static HTML pages)
โโโ extension/ # Chrome/Firefox browser extension (Manifest V3)
โโโ docs/ # Documentation
โโโ skills/ # 26 Agent Skills (skills/*/SKILL.md)
โโโ tests/ # Vitest test suite
โโโ prisma/ # Database schema
Contributions welcome! See CONTRIBUTING.md.
git clone https://github.com/nirholas/xactions.git
cd xactions && npm install
npm run cli -- profile elonmusk # Run CLI locally
npm run mcp # Run MCP server
If XActions saved you from paying $100/mo for Twitter's API, star the repo โ it's how open source grows.
XActions is 100% free and open source. Visit xactions.app for interactive tutorials.
NEW! Run scripts without any coding knowledge:
No console, no code, no setup!
| Category | Scripts | Tutorial |
|---|---|---|
| Unfollow | Unfollow Everyone, Non-Followers, Smart Unfollow | Tutorial |
| Automation | Auto-Liker, Auto-Commenter, Follow Engagers | Tutorial |
| Scraping | Video Download, Followers, Tweets, Hashtags | Tutorial |
| Monitoring | Detect Unfollowers, Track Accounts, Alerts | Tutorial |
| Communities | Leave All Communities | Tutorial |
| AI/MCP | Claude Desktop, GPT Integration | Tutorial |
| Feature | Documentation |
|---|---|
| Unfollow Everyone | unfollow-everyone.md |
| Unfollow Non-Followers | unfollow-non-followers.md |
| Detect Unfollowers | detect-unfollowers.md |
| Auto-Liker | auto-liker.md |
| Auto-Commenter | auto-commenter.md |
| Follow Engagers | follow-engagers.md |
| Video Downloader | video-downloader.md |
| Followers Scraping | followers-scraping.md |
| Tweet Scraping | tweet-scraping.md |
| Leave Communities | leave-all-communities.md |
| MCP Server | mcp-server.md |
| Monitor Account | monitor-account.md |
| New Follower Alerts | new-follower-alerts.md |
โก XActions โ The Complete X/Twitter Automation Toolkit
100% Free & Open Source ยท MIT License
xactions.app ยท
GitHub ยท
@nichxbt
ย
ย
XActions is deployed and accessible over HTTP via MCP Streamable HTTP transport โ no local installation required.
Endpoint:
https://modelcontextprotocol.name/mcp/xactions
Add to your MCP client configuration (Claude Desktop, Cursor, SperaxOS, etc.):
{
"mcpServers": {
"xactions": {
"type": "http",
"url": "https://modelcontextprotocol.name/mcp/xactions"
}
}
}
| Tool | Description |
|---|---|
search_twitter_users | Search X/Twitter profiles |
get_twitter_trends | Trending topics |
analyze_social_sentiment | Social sentiment analysis |
Search X/Twitter profiles:
curl -X POST https://modelcontextprotocol.name/mcp/xactions \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"search_twitter_users","arguments":{"query":"crypto"}}}'
Trending topics:
curl -X POST https://modelcontextprotocol.name/mcp/xactions \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_twitter_trends","arguments":{"query":"bitcoin"}}}'
Social sentiment analysis:
curl -X POST https://modelcontextprotocol.name/mcp/xactions \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"analyze_social_sentiment","arguments":{"topic":"ethereum"}}}'
curl -X POST https://modelcontextprotocol.name/mcp/xactions \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
Powered by modelcontextprotocol.name โ the open MCP HTTP gateway
Extended feature-by-feature comparison with every alternative.
| Feature | XActions | twikit | twitter-mcp | agent-twitter-client | twit | twitter-scraper |
|---|---|---|---|---|---|---|
| Node.js Library | โ | โ Python | โ | โ | โ | โ Python |
| Workflow Engine | โ | โ | โ | โ | โ | โ |
| Sentiment Analysis | โ Built-in | โ | โ | โ | โ | โ |
| Real-Time Streaming | โ | โ | โ | โ | โ API only | โ |
| Account Export/Migration | โ JSON/CSV/HTML | โ | โ | โ | โ | โ |
| Dashboard (No-Code) | โ | โ | โ | โ | โ | โ |
| Grok AI Integration | โ | โ Separate pkg | โ | โ | โ | โ |
| Docker Support | โ | โ | โ | โ | โ | โ |
| TypeScript Types | โ | โ | โ | โ | โ | โ |
| Claude Tutorials | โ 22 prompts | โ | โ | โ | โ | โ |
| Language | JavaScript | Python | TypeScript | TypeScript | JavaScript | Python |
| Cost | Free | Free | Free + API keys | Free | Free + API keys | Free |
FAQs
XActions - The Complete X/Twitter Automation Toolkit. Scrapers, MCP server for AI agents, CLI, and browser scripts. No API required. Open source by @nichxbt. Don't Panic.
The npm package xactions receives a total of 194 weekly downloads. As such, xactions popularity was classified as not popular.
We found that xactions demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.ย It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.