Skip to main content
Glama

x-scout — An X (Twitter) MCP server, agent skill, and CLI for Claude, ChatGPT, and coding agents

English | 简体中文 · Reference · Skill · Install for Agents

Built-in web search barely touches X. Paste a tweet link or ask what people are saying about a launch ten minutes ago, and your assistant comes up empty.

x-scout gives Claude, ChatGPT, Claude Code, Codex, and Cursor real X data—the same live posts Grok sees:

  • Paste an X link and your assistant reads the full post, the thread, the replies, or a long-form X Article without logging in.

  • "What are people on X saying about this morning's launch?" — searches X through xAI's Grok and comes back with original posts from the last few hours, each with author, timestamp, views, and link.

  • "What has @handle posted this week?" — reads any public profile's bio, recent posts, or account numbers on request.

$ x-scout read https://x.com/karpathy/status/2039805659525644595

[1] @karpathy · Andrej Karpathy · 2026-04-02 20:42Z
https://x.com/karpathy/status/2039805659525644595
22M views · 61k likes · 2.9k replies · 7.4k reposts · 2.2k quotes · 108k bookmarks

LLM Knowledge Bases
...

It exposes three tools—x_read, x_search, and x_audit—and is strictly read-only: it never logs in to X and never likes, follows, replies, or posts. Reading tweets and profiles is free, needs no API key, and goes through public readers (FxTwitter, vxTwitter) and X's embed endpoint. Search uses your xAI API key so Grok finds the links and x-scout loads the original posts.

How it works

Reading posts, threads, and profiles doesn't touch Grok at all. Search is a different problem: wiring Claude straight to X's official API produces terrible search results, while Grok—whatever its limits elsewhere—has native, multi-round access to X. x-scout splits the job so Grok filters the noise and Claude reads the actual posts.

When your assistant runs a search, x-scout calls xAI's Responses API (running Grok 4.5 to 4.7 at low reasoning effort) with Grok's built-in x_search tool. Grok starts with the core terms, looks at what comes back, and adapts its follow-up queries across up to five tool turns—using X search operators (Top or Latest), semantic search, user lookups, or thread pulls—and stops as soon as new hits start repeating old ones. It is prompted to favor detailed original posts, X Articles, first-hand accounts, and independent takes over news recaps, translations, and copied summaries.

Crucially, Grok only returns the links it picked, never a summary. x-scout then fetches up to 10 of those original posts in parallel through public readers within 8 seconds, giving Claude the author's uncut text along with the author, date, view count, and link rather than a Grok paraphrase.

Related MCP server: Grok MCP Server

Install

Requires Node.js 18 or newer.

Claude app, claude.ai, mobile & ChatGPT (custom connector)

x-scout isn't just for coding agents. One command deploys your own remote MCP server to Cloudflare Workers (the free plan is enough):

npx -y github:ukkwhy/x-scout deploy

A browser window opens once to sign in to Cloudflare, and the command prints your private connector URL:

https://x-scout.<your-subdomain>.workers.dev/mcp/<token>

Add that URL in claude.ai under Settings → Connectors → Add custom connector, or in ChatGPT as a developer-mode connector. Connectors added on the web automatically show up in the Claude and ChatGPT phone apps.

Claude Code

Install the Claude Code plugin (includes both the MCP tools and the agent skill; prompts for an optional xAI API key and stores it in your system keychain):

/plugin marketplace add ukkwhy/x-scout
/plugin install x-scout@x-scout

Codex

codex mcp add x-scout -- npx -y github:ukkwhy/x-scout mcp

Cursor, VS Code & other MCP clients

Add a stdio server to your MCP configuration:

{
  "mcpServers": {
    "x-scout": {
      "command": "npx",
      "args": ["-y", "github:ukkwhy/x-scout", "mcp"]
    }
  }
}

Agent skill only

npx skills add ukkwhy/x-scout -g

Reading posts, threads, and profiles works without Grok. To enable search, connect x-scout to Grok using either an official xAI API key from console.x.ai (xAI charges roughly $5 per 1,000 fetched posts, plus token usage) or a relay / reverse proxy that serves Grok over xAI's Responses API with the x_search tool enabled.

With an official xAI key, save it and test the connection:

npx -y github:ukkwhy/x-scout setup
npx -y github:ukkwhy/x-scout doctor

With a relay or reverse proxy, pass --base-url (and add --model <name> if your endpoint serves a model other than grok-4.7):

npx -y github:ukkwhy/x-scout setup --base-url https://your-relay.example/v1
npx -y github:ukkwhy/x-scout doctor

If you deployed a remote connector, run npx -y github:ukkwhy/x-scout deploy again to push the configuration to it.

CLI

You can also use x-scout directly from the terminal:

npx -y github:ukkwhy/x-scout read https://x.com/jack/status/20
npx -y github:ukkwhy/x-scout read @jack --posts 10
npx -y github:ukkwhy/x-scout search "bun 1.3 production"

Documentation & License

MIT License.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Enables real-time search of X.com (Twitter) posts, users, threads, and trends via xAI's Grok API, directly from Claude.
      5
      59 PyPI
      4
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI agents to read public X (Twitter) data without the paid official API, including tweet and user search, profiles, timelines, media, replies, retweeters, followers, lists, and trends. All tools are read-only and rotate across multiple scraping accounts with proxy and rate-limit support.
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables agents to search and read public X/Twitter posts without an API key, fetching single or batched posts by ID or URL, running operator-filtered keyword searches with hydrated full-text results, and retrieving public profile metadata.
      6
      MIT