xscraper-agent-kit

ensp1re/xscraper-agent-kit Checked 3 days ago

X (Twitter) data for AI agents: the xscraper MCP server and Agent Skills for account research, topic research, thread digests and monitoring.

X (Twitter) data for AI agents: the xscraper MCP server and Agent Skills that teach an agent when and how to use it without wasting tokens. You need an xscraper API key from https://xscraper.online/dashboard (new accounts get 1,000 free tokens). or copy the folders in plugins/xscraper/skills/ into the agent's skills directory. Without the MCP server the skills fall back to curl with $XSCRAPER_API_KEY.

Summary extracted from the README.

xscraper agent kit

X (Twitter) data for AI agents: the xscraper MCP server and Agent Skills that teach an agent when and how to use it without wasting tokens.

You need an xscraper API key from https://xscraper.online/dashboard (new accounts get 1,000 free tokens).

What is inside

  • MCP server at https://mcp.xscraper.online/mcp with 9 read-only tools: x_search_tweets, x_search_users, x_get_user, x_get_tweet, x_get_followers, x_get_user_likes, x_get_list_tweets, x_get_trends, x_get_balance. Each tool call costs the tokens of the REST call behind it, and every result ends with the cost and your balance.
  • Skills in plugins/xscraper/skills/:
Skill Use it for
xscraper-api Core: which tool answers which question, search operators, spend rules, REST reference
x-account-research Who is this account, is their engagement real, background before a deal
x-topic-research What X says about a topic, brand, launch or ticker; themes and sentiment with links
x-thread-digest Summarize a post with its replies and quote posts
x-monitor Watch accounts or keywords and report only new posts, on a schedule

Install

Claude Code (MCP server and skills)

export XSCRAPER_API_KEY=xs_your_key

Then in Claude Code:

/plugin marketplace add ensp1re/xscraper-agent-kit
/plugin install xscraper@xscraper

MCP server only:

claude mcp add --transport http xscraper https://mcp.xscraper.online/mcp --header "x-api-key: $XSCRAPER_API_KEY"

Other agents that read Agent Skills (Codex, Cursor, VS Code Copilot, Gemini CLI, ...)

npx skills add ensp1re/xscraper-agent-kit

or copy the folders in plugins/xscraper/skills/ into the agent's skills directory. Without the MCP server the skills fall back to curl with $XSCRAPER_API_KEY.

Any client that runs local servers (stdio)

npx -y xscraper-mcp with XSCRAPER_API_KEY set runs the same tools locally.

Claude Desktop

claude_desktop_config.json:

{
  "mcpServers": {
    "xscraper": { "command": "npx", "args": ["-y", "xscraper-mcp"], "env": { "XSCRAPER_API_KEY": "xs_your_key" } }
  }
}

For the skills, zip a skill folder and upload it in Settings → Capabilities → Skills.

Cursor

~/.cursor/mcp.json:

{ "mcpServers": { "xscraper": { "url": "https://mcp.xscraper.online/mcp", "headers": { "x-api-key": "xs_your_key" } } } }

VS Code

.vscode/mcp.json:

{
  "servers": { "xscraper": { "type": "http", "url": "https://mcp.xscraper.online/mcp", "headers": { "x-api-key": "${input:xscraper-key}" } } },
  "inputs": [{ "type": "promptString", "id": "xscraper-key", "description": "xscraper API key", "password": true }]
}

Costs

Prices per call are in plugins/xscraper/skills/xscraper-api/references/endpoints.md and at https://xscraper.online/docs. Errors are refunded except 404 (not found). The skills tell the agent to start with one page, estimate before larger tasks, and ask before spending more than about 50 tokens.

Changelog

The npm package is xscraper-mcp. npx -y xscraper-mcp runs the latest version; the hosted server is always current.

1.0.2 (2026-09-26)

  • Search now goes past page 4. A cursor may be up to 8,000 characters (was 1,000): X's cursors for top, photo and video search grow about 285 characters a page. Latest-mode cursors from the API now stay about 430 characters.

1.0.1 (2026-09-23)

  • Concise output marks pinned posts, shows a retweet as the original post with its counts, and prints ? for unknown values.
  • The hosted server rejects malformed keys with 401.
  • x_get_followers returns one page (about 50 to 70 accounts); an empty replies or quotes page ends paging; paged calls get more time per page.
  • Package metadata for the MCP registry.

1.0.0 (2026-09-23)

  • First release: 9 read-only tools, over stdio (npm) and HTTP (hosted).

Source

This repository is generated from the xscraper monorepo, where the skills are tested against the live price catalog. Report problems in the issues here or at support@xscraper.online.