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
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。