reach-mcp
A controllable multi-source search MCP server for AI agents. Enables searching multiple sources like Reddit, X, YouTube, and more, with control over sources, time window, and optional synthesis.
README
reach-mcp
A controllable multi-source search MCP server for AI agents. Search Reddit, X, YouTube, Hacker News, GitHub, arXiv, Polymarket, 雪球, V2EX, B站, 小宇宙 and more — you pick the sources, the window, and whether to synthesize. Built to replace the closed
last30daysserver with an open, agent-driven one.
Why
last30days is a black box: the agent passes a query and gets back a finished brief. It can't choose which sources to hit, can't widen or narrow the time window (hardcoded to 30 days), can't see the raw scored rows, and can't reuse them. Every call re-searches everything.
reach-mcp keeps everything good about last30days — parallel multi-source fetch, engagement-based scoring, cross-source dedup/clustering, an optional LLM-synthesized cited brief — and hands the steering wheel to the agent:
- 🔌 Pick your sources.
sources=["reddit","arxiv","xueqiu"]or omit for all configured ones. - 📅 Pick your window.
days=7for this week,days=180for the half-year — no longer fixed at 30. - 🪓 Decide what matters.
synthesize=falsereturns raw scored rows for the agent to reason over itself;synthesize=true(default) also runs an LLM rerank + brief. - 🇨🇳 Chinese sources last30days lacks — 雪球, V2EX, B站, 小宇宙 — alongside nearly every source last30days ships.
- 🛡️ Polite by default — per-host pacing, honors
Retry-After, bounded timeouts. Never hammers a site.
Sources (23)
| Tier | Source | Backend | Credential (all free-tier / no payment) |
|---|---|---|---|
| Free core | reddit |
RSS + scrape | none |
hackernews |
Algolia API | none | |
bluesky |
AT Protocol | BSKY_HANDLE/BSKY_APP_PASSWORD (optional) |
|
github |
GitHub API | GH_TOKEN (optional) |
|
arxiv |
arXiv API | none | |
techmeme |
scrape | none | |
polymarket |
public API | none | |
stocktwits |
public API | none | |
web |
Searxng | SEARXNG_URL |
|
| Video | youtube |
yt-dlp transcripts | YTDLP_PROXY (optional) |
| Chinese | xueqiu |
scrape | none |
v2ex |
API | none | |
bilibili |
bili-cli | none | |
xiaoyuzhou |
audio → Whisper | Groq key (free tier) | |
| Login-gated (off by default) | x |
cookies | AUTH_TOKEN/CT0 |
truthsocial |
Mastodon API | TRUTHSOCIAL_TOKEN |
|
tiktok |
ScrapeCreators | SC key | |
instagram |
ScrapeCreators | SC key | |
linkedin |
ScrapeCreators/Jina | SC key | |
xiaohongshu |
cookie | RED cookie | |
threads |
cookie/key | free account | |
pinterest |
ScrapeCreators | SC key | |
| Binary (optional) | digg |
digg-pp-cli |
none (needs the CLI on PATH) |
Login-gated sources are off by default and light up the moment you set their (free) credentials — an account you already have, no payment. Only perplexity from last30days was dropped (no recurring free quota).
MCP tools
The
descriptiontext below is exactly what the agent sees — copy these verbatim intosrc/reach_mcp/tools.py.
search — the primary tool
Description:
Search up to 23 social & web sources in parallel, score by engagement, optionally synthesize a cited brief. YOU control scope.
Sources (pass any subset as
sources; omit/None = all currently-configured): free — reddit, hackernews, bluesky, github, arxiv, techmeme, polymarket, stocktwits, web; video — youtube; chinese — xueqiu, v2ex, bilibili, xiaoyuzhou; login-gated (off until creds set) — x, truthsocial, tiktok, instagram, linkedin, xiaohongshu, threads, pinterest; binary — digg.Args:
query(str, the topic/person/ticker);sources(list[str] | None, None=all available);days(int, recency window, default 30);max_per_source(int, row cap per source, default 20);synthesize(bool, default true = also LLM-rerank + write brief).Returns:
{brief: str|null, items: [Item], sources_used: [SourceReport], available_sources: [str]}. Each Item:{source, title, url, author, date, score, engagement, text}. A SourceReport tells you per-source ok/gated_off/errored so a thin result is diagnosable. Calllist_sourcesfirst if unsure what's configured.
Signature:
search(query: str, sources: list[str] | None = None, days: int = 30,
max_per_source: int = 20, synthesize: bool = True) -> dict
list_sources
List all registered sources with availability status, required credentials, and defaults. Call this FIRST to see which sources are active (credentials set) vs gated (off-by-default) before deciding
sources. Returns[{name, description, needs_auth, available, required_env, default_days, default_limit}]. No arguments.
synthesize
Re-synthesize a cited brief from already-fetched items WITHOUT re-searching. Pass the original
queryand theitemslist from a priorsearch(synthesize=false). Returns{brief}. Use to re-brief cheaply with different emphasis. No source calls are made.
For agents — quick usage guide
1. list_sources() # see what's configured; pick targets
2. search("Peter Steinberger",
sources=["reddit","x","github","youtube"],
days=14, synthesize=false) # get raw scored rows, reason yourself
— or —
search("OpenAI vs Anthropic",
days=30, synthesize=true) # one call → cited brief + rows
3. (optional) synthesize(query, items) # re-brief the rows you already have
- Default (
sources=None,synthesize=true): searches every configured source and returns a brief + all rows. Simplest. - Targeted (
sources=[...]): only hit what you need — faster, cheaper, less noise. - Raw (
synthesize=false): you read the rows and draw conclusions; re-brief later withsynthesize. - A gated source you name returns
gated_offinsources_used— set its credential env and retry, or drop it. - One broken source never breaks a search; check
sources_usedfor what failed.
Install
Option A — uvx in your MCP host (recommended for OpenWebUI / mcpo)
// mcpo config.json
"reach": {
"command": "uvx",
"args": ["reach-mcp", "--transport", "stdio"]
}
Or streamable-HTTP: uvx reach-mcp --transport http --host 0.0.0.0 --port 8765.
Option B — Docker
docker pull ghcr.io/xyonium/reach-mcp:latest
docker run -p 8765:8765 --env-file .env ghcr.io/xyonium/reach-mcp:latest
# docker-compose.yml
services:
reach-mcp:
image: ghcr.io/xyonium/reach-mcp:latest
ports: ["8765:8765"]
environment:
REACH_MCP_ALLOWED_HOSTS: "reach-mcp:8765,localhost:8765"
# …credentials below…
restart: unless-stopped
OpenWebUI connects to http://reach-mcp:8765/mcp (native MCP, streamable-HTTP).
Configuration
All config is environment variables (a Settings dataclass). Everything is optional — the server degrades to free-source-only mode if you set nothing.
| Env | Purpose |
|---|---|
OPENAI_BASE_URL, OPENAI_API_KEY |
LLM for rerank + brief (your OpenAI-compatible gateway) |
REACH_MCP_RERANK_MODEL, REACH_MCP_BRIEF_MODEL |
model ids, default gemini-flash-lite |
SEARXNG_URL |
your Searxng instance for the web source |
GH_TOKEN |
optional, for higher GitHub rate limits |
BSKY_HANDLE, BSKY_APP_PASSWORD |
optional Bluesky auth |
AUTH_TOKEN, CT0 |
Twitter/X cookies |
TRUTHSOCIAL_TOKEN |
Truth Social bearer (free account) |
YTDLP_PROXY |
proxy for yt-dlp |
REACH_MCP_ALLOWED_HOSTS |
DNS-rebinding allow-list (cross-container Host headers) |
REACH_MCP_API_KEY |
optional lock on the HTTP surface |
For digg: install digg-pp-cli on PATH (see last30days' build steps) — reach-mcp detects it and enables the source automatically; without it, digg stays gated.
License
MIT © xyonium
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.