supragents-mcp

supragents-mcp

A read-only research MCP server that provides search and browsing tools for Hacker News, Reddit, and Product Hunt. Works with zero API keys for basic use.

Category
访问服务器

README

supragents-mcp

A read-only research MCP server: Hacker News, Reddit, and Product Hunt in one npx command. It works with zero API keys, Hacker News and Reddit's public search both work out of the box. Add a free Reddit app for heavier Reddit use, or a Product Hunt developer token to unlock producthunt_top.

No tracking, no accounts required to start, no dependencies beyond the MCP SDK and zod, everything else uses Node's built-in fetch.

Install

Nothing to install by hand, npx fetches it on first use. Add it to your project's .mcp.json:

{
  "mcpServers": {
    "supragents": {
      "command": "npx",
      "args": ["-y", "supragents-mcp"]
    }
  }
}

Restart Claude Code (or start a fresh session) and the tools below are available immediately, no keys needed for Hacker News or basic Reddit use.

Tools

Tool Params What it does
hn_search query (required), limit? (1-25, default 10) Search Hacker News stories by relevance via the Algolia HN Search API.
hn_front_page limit? (1-25, default 15) Get the current Hacker News front page.
hn_thread id (required), max_comments? (1-25, default 20) Get a story and its top comments, flattened, HTML stripped.
reddit_search query (required), subreddit?, sort? (relevance/hot/top/new/comments), limit? (1-25, default 15) Search Reddit posts by keyword, optionally scoped to a subreddit.
reddit_top subreddit (required), timeframe? (hour/day/week/month/year/all, default week), limit? (1-25, default 15) Top posts from a subreddit over a timeframe.
reddit_comments post_url_or_id (required), limit? (1-25, default 20) A post plus its top-level comments, by URL or id.
producthunt_top topic?, limit? (1-25, default 10) Top Product Hunt posts, optionally by topic. Requires PRODUCTHUNT_ACCESS_TOKEN.
market_research topic (required), limit_per_source? (1-25, default 10) Runs hn_search + reddit_search (+ producthunt_top if configured) in parallel, merges results tagged by source, sorted by engagement. Returns sources_used and sources_skipped, a failure in one source never fails the whole call.

Every result is capped at 25 items, and any HTML in text fields (comment bodies, selftext, titles) is stripped to plain text before it's returned.

Environment variables (all optional)

Variable Unlocks How to get it
REDDIT_CLIENT_ID + REDDIT_CLIENT_SECRET Reliable Reddit access via OAuth (app-only, no user login). Without these, Reddit tools fall back to the public .json endpoints, which Reddit sometimes rate-limits. reddit.com/prefs/apps: create a "script" app, copy the client id and secret.
PRODUCTHUNT_ACCESS_TOKEN producthunt_top (and Product Hunt's slice of market_research) producthunt.com/v2/oauth/applications: create an application, generate a Developer Token.

If a Reddit call hits a public-endpoint block (HTTP 403/429), the tool returns an error result with the exact setup steps above instead of failing silently. If PRODUCTHUNT_ACCESS_TOKEN is missing, producthunt_top returns a helpful error pointing back here instead of a raw 401.

Example with all env vars set

{
  "mcpServers": {
    "supragents": {
      "command": "npx",
      "args": ["-y", "supragents-mcp"],
      "env": {
        "REDDIT_CLIENT_ID": "your-client-id",
        "REDDIT_CLIENT_SECRET": "your-client-secret",
        "PRODUCTHUNT_ACCESS_TOKEN": "your-developer-token"
      }
    }
  }
}

REST mode (--serve)

MCP over stdio is the primary interface, that's what Claude Code speaks and what the sections above assume. --serve is a separate mode for everything outside Claude Code: shell scripts, cron jobs, n8n, or any other tool that wants to call these same tools over plain HTTP instead.

npx supragents-mcp --serve        # binds 127.0.0.1:8787
npx supragents-mcp --serve 9000   # custom port

It exposes the exact same 8 tools, same handlers, same env vars, just over HTTP instead of stdio:

Route What it does
GET /health { status, name, version, tools }
GET /tools Lists every tool with its title, description, and JSON Schema for its arguments
POST /tools/{name} Calls a tool. JSON body is the tool's arguments (e.g. {"query": "claude code"} for hn_search). Returns the tool's JSON result on success, or a JSON error body on failure
curl http://127.0.0.1:8787/health
curl http://127.0.0.1:8787/tools
curl -X POST http://127.0.0.1:8787/tools/hn_search \
  -H 'content-type: application/json' \
  -d '{"query": "claude code"}'

Binds to 127.0.0.1 by default, not 0.0.0.0, so it's not reachable from outside your machine unless you put something in front of it on purpose.

Development

npm install
npm test

Tests are pure unit tests over the URL builders, HTML stripping, the Reddit OAuth/public fallback decision, and the market_research merge logic (all with injected fetchers, no live network calls), one test that spawns the server binary and does a real MCP initialize + tools/list round trip over stdio, and REST-mode tests covering route parsing, the unknown-tool 404, and one end-to-end spawn of --serve against an ephemeral port.

License

MIT

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选