Skip to content
appsgit

XActions

XActions is an MCP server that adds web browsing tools to AI assistants such as Claude Desktop, Claude Code and Cursor. X/Twitter automation MCP: scrape, post, schedule, analyze, engage. It has 571 GitHub stars, is released under the Apache-2.0 license and runs locally with npx -y xactions.

github.com/nirholas/XActions (opens in a new tab)

Install XActions

Generated from the server's MCP registry entry. Replace your-value with your own values.

Claude Desktop

claude_desktop_config.json
{
  "mcpServers": {
    "xactions": {
      "command": "npx",
      "args": [
        "-y",
        "xactions"
      ],
      "env": {
        "X_COOKIES": "your-value",
        "X_PASSWORD": "your-value"
      }
    }
  }
}

Settings > Developer > Edit Config. macOS: ~/Library/Application Support/Claude/, Windows: %APPDATA%\Claude\. Restart Claude Desktop afterwards.

Claude Code

claude mcp add --env X_COOKIES=your-value --env X_PASSWORD=your-value --transport stdio xactions -- npx -y xactions

Cursor

.cursor/mcp.json
{
  "mcpServers": {
    "xactions": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "xactions"
      ],
      "env": {
        "X_COOKIES": "your-value",
        "X_PASSWORD": "your-value"
      }
    }
  }
}

Project file; use ~/.cursor/mcp.json to enable it in every project.

VS Code

.vscode/mcp.json
{
  "inputs": [
    {
      "type": "promptString",
      "id": "x_cookies",
      "description": "X_COOKIES",
      "password": true
    },
    {
      "type": "promptString",
      "id": "x_password",
      "description": "X_PASSWORD",
      "password": true
    }
  ],
  "servers": {
    "xactions": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "xactions"
      ],
      "env": {
        "X_COOKIES": "${input:x_cookies}",
        "X_PASSWORD": "${input:x_password}"
      }
    }
  }
}

Config formats checked against the official docs on Oct 7, 2026: modelcontextprotocol.io (opens in a new tab), code.claude.com (opens in a new tab), cursor.com (opens in a new tab), code.visualstudio.com (opens in a new tab).

Environment variables

Variables the server reads at startup.

NameRequiredDescription
X_COOKIESsecretNoX/Twitter authentication cookies (JSON string or path to cookies file)
X_USERNAMENoX/Twitter username for login
X_PASSWORDsecretNoX/Twitter password for login

About XActions

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.

  • ai-agent
  • automation
  • claude
  • gpt
  • mass-unfollow
  • mcp
  • model-context-protocol
  • nodejs
  • open-source
  • puppeteer

FAQ

XActions FAQ

Still curious? Email info@appsgit.com.

What is XActions?

XActions is an MCP server that adds web browsing tools to AI assistants such as Claude Desktop, Claude Code and Cursor. X/Twitter automation MCP: scrape, post, schedule, analyze, engage. It has 571 GitHub stars, is released under the Apache-2.0 license and runs locally with npx -y xactions. The source code is at github.com/nirholas/XActions.

How do I install the XActions MCP server?

Add the command npx -y xactions to your MCP client: put it in claude_desktop_config.json for Claude Desktop, run claude mcp add for Claude Code, or add it to .cursor/mcp.json (Cursor) or .vscode/mcp.json (VS Code). The snippets on this page are ready to paste.

Is XActions free?

The server is open source under the Apache-2.0 license, so running it is free. It needs credentials (X_COOKIES and X_PASSWORD) for the service it connects to, which may require a paid account.

Is XActions actively maintained?

The most recent commit was on Oct 5, 2026. appsgit only lists MCP servers with a commit in the last six months and re-checks every server daily.