x_login
Login to X/Twitter using a session cookie (auth_token). Required before some operations.
Read and act on X/Twitter from an assistant — profiles, timelines, search, posting — with no API key.
LABSCO SUMMARY
Public reads need nothing; search, followers and DMs need your auth_token cookie, and every posting or automation tool then acts as your account. That makes the read and analysis half — unfollower detection, competitor comparison, best time to post — the low-risk place to start, and the auto-follow and auto-comment tools the ones to reach for deliberately.
An X/Twitter toolkit whose MCP server exposes the scraping, analysis and posting surface to any MCP client.
Node and npx. Public reads — a profile, a timeline — work with no account at all. Anything past that needs your own session: put your x.com auth_token cookie in XACTIONS_SESSION_COOKIE. npx xactions mcp-config writes the client config for Claude, Cursor or Windsurf. Since it drives your own session rather than an API, the automation tools act as you.
One command plus credentials — npx -y xactions-mcp, then supply credentials
USE CASES
Pull a profile or recent tweets straight away — no account, no key.
Compare followers against following and get the difference, sorted how you like.
Search for the term and read the sentiment across the results.
Analyse an account's writing style, then generate posts that match it.
Listed in project code.
x_loginLogin to X/Twitter using a session cookie (auth_token). Required before some operations.
x_get_profileGet profile information for a user including bio, follower count, etc. Supports Twitter, Bluesky, Threads, and Mastodon.
x_get_followersScrape followers for an account. Supports Twitter, Bluesky, Mastodon, and Threads.
x_get_followingScrape accounts that a user is following. Supports Twitter, Bluesky, Mastodon, and Threads.
x_get_non_followersGet accounts you follow that do not follow you back.
x_get_tweetsScrape recent tweets/posts from a user profile. Supports Twitter, Bluesky, Mastodon, and Threads.
x_search_tweetsSearch for tweets/posts matching a query. Supports Twitter, Bluesky, Mastodon, and Threads.
x_followFollow an X/Twitter user.
x_unfollowUnfollow an X/Twitter user.
x_unfollow_non_followersBulk unfollow accounts that don't follow you back.
x_detect_unfollowersGet current followers for comparison. Run periodically to detect unfollowers.
x_post_tweetPost a new tweet to X/Twitter.
x_likeLike a tweet by its URL.
x_retweetRetweet a tweet by its URL.
x_download_videoGet video download URLs from a tweet.
x_update_profileUpdate your X/Twitter profile fields (name, bio, location, website).
x_post_threadPost a multi-tweet thread to X/Twitter.
x_create_pollCreate a poll tweet on X/Twitter.
x_schedule_postSchedule a tweet for future posting (requires Premium).
x_delete_tweetDelete a tweet by its URL.
x_replyReply to a tweet.
x_bookmarkBookmark a tweet.
x_get_bookmarksExport your bookmarked tweets.
x_clear_bookmarksClear all bookmarks. This cannot be undone.
x_auto_likeAuto-like tweets matching keywords in your feed.
x_get_trendsGet current trending topics on X/Twitter.
x_get_exploreScrape the Explore feed for trending content.
x_get_notificationsScrape your recent notifications with type classification.
x_mute_userMute an X/Twitter user.
x_unmute_userUnmute an X/Twitter user.
x_send_dmSend a direct message to an X/Twitter user.
x_get_conversationsGet your DM conversation list.
x_export_dmsExport DM messages to JSON.
x_grok_queryQuery Grok AI on X/Twitter. Requires Premium access.
x_grok_summarizeUse Grok to summarize a topic from X/Twitter posts.
x_get_listsGet your X/Twitter lists.
x_get_list_membersGet members of a specific X/Twitter list.
x_get_spacesGet live or scheduled X/Twitter Spaces.
x_scrape_spaceScrape metadata and speakers from a specific Space.
x_space_joinJoin an X Space with an AI voice agent that listens, transcribes, and speaks autonomously. Requires xspace-agent installed and AI API key configured.
x_space_leaveLeave the currently active X Space and get a summary of the session.
x_space_statusGet the status of the currently active X Space agent, including duration, transcription count, and recent events.
x_space_transcriptGet recent transcriptions from the active X Space session.
x_get_analyticsGet your account engagement analytics.
x_get_post_analyticsGet detailed analytics for a specific post.
x_get_settingsGet a snapshot of your account settings and privacy configuration.
x_toggle_protectedToggle protected (private) account mode.
x_get_blockedGet your blocked accounts list.
x_brand_monitorMonitor brand mentions with sentiment analysis.
x_competitor_analysisCompare metrics across competitor accounts.
x_check_premiumCheck premium subscription status and available features.
x_publish_articlePublish a long-form article (requires Premium+).
x_creator_analyticsGet creator dashboard analytics including revenue and subscribers.
x_analyze_sentimentAnalyze the sentiment of text. Returns a score (-1 to 1), label (positive/neutral/negative), confidence, and key sentiment-bearing words. Uses a built-in rule-based analyzer by default (zero dependencies), or optionally an LLM via OpenRouter for nuanced analysis.
x_monitor_reputationStart monitoring sentiment for a username or keyword over time. Scrapes mentions periodically, analyzes sentiment, computes rolling averages, detects anomalies, and can trigger webhook alerts.
x_reputation_reportGenerate a reputation report for a monitored username. Shows sentiment distribution, top positive/negative mentions, timeline data, keyword frequency, and alerts. Requires an active monitor for the target.
x_stream_startStart a real-time stream that polls an X/Twitter account and pushes new events. Types: tweet (new tweets), follower (follow/unfollow events), mention (new mentions). Events are emitted via Socket.IO. Rejects duplicates (same type + username).
x_stream_stopStop an active real-time stream by its ID. Removes all state and history.
x_stream_listList all active real-time streams with status, poll/event counts, errors, and browser pool info.
x_stream_pausePause an active stream (stops polling but retains state). Resume later with x_stream_resume.
x_stream_resumeResume a paused stream. Clears backoff and starts polling again immediately.
x_stream_statusGet detailed status for a single stream including poll count, event count, errors, and backoff info.
x_stream_historyGet recent events from a stream. Optionally filter by event type.
x_workflow_createCreate a new automation workflow. Workflows chain multiple actions (scrape, filter, summarize, etc.) into pipelines with triggers and conditions.
x_workflow_runRun a workflow by ID or name. Returns execution results with step-by-step logs.
x_workflow_listList all saved workflows with their trigger type, step count, and enabled status.
x_workflow_actionsList all available actions that can be used in workflow steps (scrapers, transforms, AI, utilities).
x_export_accountExport a Twitter account: profile, tweets, followers, following, bookmarks. Outputs JSON, CSV, Markdown, and a self-contained HTML archive viewer. Supports resume-on-failure.
x_migrate_accountMigrate exported Twitter data to Bluesky or Mastodon. Supports dry-run mode to preview actions without executing. Requires a prior export.
x_diff_exportsCompare two account exports to find new/lost followers, deleted tweets, and engagement changes. Generates a diff report in JSON and Markdown.
x_get_threadUnroll and scrape an entire Twitter/X thread given the URL of the first tweet.
x_best_time_to_postAnalyze a user's tweet history to determine the best times and days to post for maximum engagement.
x_account_reportFull account report for one or more public X accounts, computed from public data with no login: engagement rate, median interactions per post, posting cadence, content mix (original vs reply vs repost, media and link share), best hour and weekday by median engagement, top posts, top hashtags, and plain-language observations. Pass an array of usernames to get a side-by-side comparison as well. Use this instead of fetching a profile and a timeline separately when the question is about how an account is performing.
x_analyze_voiceAnalyze a user's writing style/voice from their tweets. Returns tone, vocabulary patterns, emoji usage, avg length, and a voice profile. Requires OPENROUTER_API_KEY for full analysis.
x_generate_tweetGenerate a tweet in the style of a user. First analyzes their voice, then generates content matching their tone. Requires OPENROUTER_API_KEY.
x_rewrite_tweetRewrite/improve an existing tweet to be more engaging, shorter, add a hook, etc. Uses a voice profile for style matching. Requires OPENROUTER_API_KEY.
x_summarize_threadAI-powered summarization of a Twitter/X thread. Unrolls the thread and generates a concise summary. Requires OPENROUTER_API_KEY.
x_list_platformsList all supported social media platforms (Twitter, Bluesky, Mastodon, Threads) and their capabilities.
x_graph_buildBuild a social network graph by crawling an account's followers and following. Maps relationships, identifies clusters, bridge accounts, and influence scores. Returns a graph ID for further analysis.
x_graph_analyzeAnalyze a built social graph. Returns: mutual connections, bridge accounts (betweenness centrality), clusters (label propagation), influence ranking (PageRank), ghost followers, orbit analysis (inner circle vs periphery).
x_graph_recommendationsGet actionable recommendations from a graph: who to follow, who to engage with, competitors to watch, safe accounts to unfollow.
x_graph_listList all saved social graphs with their seed account, node/edge counts, and status.
x_persona_createCreate a new persona for algorithm building and automated account growth. A persona defines niche, topics, engagement strategy, activity patterns, and LLM voice settings. Use presets for quick setup.
x_persona_listList all saved personas with their stats (sessions, follows, likes, comments, last active).
x_persona_statusGet detailed status and lifetime stats for a specific persona.
x_persona_editEdit an existing persona configuration (topics, search terms, target accounts, strategy, activity pattern).
x_persona_deleteDelete a saved persona and all its stored state.
x_persona_runStart the 24/7 Algorithm Builder for a persona. Launches headless Puppeteer with LLM-powered engagement (search, like, comment, follow, post). Requires auth token and OPENROUTER_API_KEY for AI comments.
x_persona_presetsList all available niche presets, engagement strategies, and activity patterns for persona creation.
x_history_getGet account history / time-series snapshots for a username. Returns followers, following, tweet count over time.
x_history_snapshotTake a snapshot of account metrics right now and save to history.
x_growth_rateCalculate follower growth rate for an account over N days.
x_compare_accountsCompare multiple accounts on a metric over time.
x_audience_overlapAnalyze follower overlap between two Twitter accounts.
x_crm_syncSync followers of a username into the CRM database.
x_crm_tagAdd a tag to a CRM contact.
x_crm_searchSearch CRM contacts by username or display name.
x_crm_segmentGet contacts in a CRM segment.
x_bulk_executeExecute bulk follow/unfollow/block/mute from a list of usernames.
x_schedule_addAdd a cron-scheduled job.
x_schedule_listList all scheduled jobs.
x_schedule_removeRemove a scheduled job.
x_evergreen_analyzeFind top-performing evergreen tweets that can be recycled.
x_rss_addAdd an RSS feed to monitor.
x_rss_checkCheck all RSS feeds for new items.
x_rss_draftsView drafts generated from RSS feeds.
x_optimize_tweetAI-optimize a tweet for maximum engagement.
x_suggest_hashtagsSuggest relevant hashtags for a tweet.
x_predict_performancePredict how well a tweet will perform (score, strengths, weaknesses).
x_generate_variationsGenerate alternative versions of a tweet.
x_notify_sendSend a notification to all configured channels (Slack, Discord, Telegram, Email).
x_notify_testSend a test notification to a specific channel.
x_dataset_listList all stored scraping datasets.
x_dataset_getGet items from a dataset with pagination.
x_team_createCreate a new team.
x_team_membersList team members.
x_import_dataImport data from Apify, Phantombuster, or CSV format.
x_convert_formatConvert data between Apify/Phantombuster/CSV formats.
x_get_repliesScrape replies to a specific tweet. Returns reply text, author, timestamp, likes, and nested reply chains.
x_get_hashtagScrape tweets containing a specific hashtag. More focused than general search — returns trending metrics and top contributors.
x_get_likersGet the list of users who liked a specific tweet. Useful for finding engaged audiences.
x_get_retweetersGet the list of users who retweeted a specific tweet.
x_get_mediaScrape all media (images, videos, GIFs) from a user profile. Returns direct download URLs.
x_get_recommendationsGet "Who to follow" recommendations based on a user or topic. Useful for discovering accounts in a niche.
x_get_mentionsScrape tweets that mention a specific user. Includes replies, quote tweets, and direct mentions.
x_get_quote_tweetsGet all quote tweets of a specific tweet. Shows how people are commenting on/sharing a tweet.
x_get_likesScrape tweets that a user has liked. Shows what content a user engages with.
x_auto_followAuto-follow users matching criteria. Specify a source (hashtag, keyword, or target account followers) and optional filters.
x_follow_engagersFollow people who engage with a specific account (likers, retweeters, repliers). Great for finding active users in a niche.
x_unfollow_allMass unfollow everyone you follow. Nuclear option — unfollows ALL accounts. Use with caution.
x_smart_unfollowSmart unfollow based on criteria: inactive accounts, spam/bot accounts, accounts that never engage with you, or accounts outside your niche.
x_quote_tweetQuote tweet — retweet with your own comment/text added.
x_auto_commentAuto-comment on tweets matching a search query. Can use AI-generated or template comments.
x_auto_retweetAuto-retweet tweets matching a search query or from specific accounts.
x_detect_botsDetect bot/spam accounts using heuristic and AI analysis. Checks posting patterns, bio, followers ratio, account age, and tweet content.
x_find_influencersFind influencers in a specific niche or topic. Returns accounts ranked by engagement rate, niche relevance, and audience quality.
x_smart_targetFind ideal accounts to engage with for growth. Uses AI to analyze your niche and find users most likely to follow back or engage.
x_crypto_analyzeAnalyze crypto/token sentiment on X. Scrapes tweets about a coin/token and returns sentiment score, volume, key influencer opinions, and price correlation.
x_grok_analyze_imageAnalyze an image using Grok's multimodal vision capabilities. Extract text, describe content, identify objects, or answer questions about images in tweets.
x_audience_insightsGet detailed audience demographics and interests for an account. Analyzes followers to determine top locations, active hours, interests, and audience quality.
x_engagement_reportGenerate a comprehensive engagement analytics report. Includes engagement rate, best performing content, optimal posting times, and growth trends.
x_monitor_accountStart monitoring an account for changes: new tweets, bio updates, follower surges, and profile changes. Get real-time alerts.
x_monitor_keywordMonitor X for tweets containing specific keywords. Get alerts when new tweets match. Useful for brand monitoring, trend tracking, or competitor alerts.
x_follower_alertsSet up alerts for follower changes. Get notified when notable accounts follow/unfollow you, when you hit milestones, or when there are unusual changes.
x_track_engagementTrack engagement metrics for a tweet or account over time. Returns time-series data showing likes, retweets, replies, and impressions growth.
BEFORE YOU INSTALL
145 tools registered in the project's code.
INSTALLATION
npx -y xactions-mcpnpx xactions mcp-config --client claudeThe configuration on this page does not set XACTIONS_SESSION_COOKIE and XACTIONS_CSRF_TOKEN. Add both to the "env" section of the client entry these commands generate — the server reads them from its environment.
npx xactions mcp-config --client cursorThe configuration on this page does not set XACTIONS_SESSION_COOKIE and XACTIONS_CSRF_TOKEN. Add both to the "env" section of the client entry these commands generate — the server reads them from its environment.
npx xactions mcp-config --client windsurfThe configuration on this page does not set XACTIONS_SESSION_COOKIE and XACTIONS_CSRF_TOKEN. Add both to the "env" section of the client entry these commands generate — the server reads them from its environment.