x-scout
by ukkwhy
README.md
# x-scout — An X (Twitter) MCP server, agent skill, and CLI for Claude, ChatGPT, and coding agents
English | [简体中文](./README.zh-CN.md) · [Reference](./docs/reference.md) · [Skill](./skills/x-scout/SKILL.md) · [Install for Agents](./INSTALL.md)
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.
```text
$ 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.
## 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):
```bash
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:
```text
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):
```text
/plugin marketplace add ukkwhy/x-scout
/plugin install x-scout@x-scout
```
### Codex
```bash
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:
```json
{
"mcpServers": {
"x-scout": {
"command": "npx",
"args": ["-y", "github:ukkwhy/x-scout", "mcp"]
}
}
}
```
### Agent skill only
```bash
npx skills add ukkwhy/x-scout -g
```
## Turn on X search
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](https://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:
```bash
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`):
```bash
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:
```bash
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
- [`docs/reference.md`](./docs/reference.md) — every install option, tool parameter, cost, and limit
- [`skills/x-scout/SKILL.md`](./skills/x-scout/SKILL.md) — the agent skill definition
- [`INSTALL.md`](./INSTALL.md) — installation steps written for AI agents
MIT License.
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues