Hacker News
Read Hacker News (stories, comments, users, top/new/best/ask/show/job lists) from any AI agent via the official Firebase API. 8 tools, no auth.
7 天免费 · 无需信用卡 · EU 托管
问 Hacker 任何事
通过 AnythingMCP 对 Hacker News 试一个真实提示 — Claude 调用工具并返回答案。在你的消息上按 Enter 即可在 Cloud 安装。
在 Cloud 上安装 HackerClaude 是 AI,可能会出错。请核对回答。
2 分钟设置
- 1在 cloud.anythingmcp.com 开始免费试用。
- 2在连接器商店点击 Hacker News。提示时粘贴凭据。
- 3生成 MCP API 密钥,将 AI 客户端指向生成的 MCP URL。
配置 Hacker News
直接来自连接器定义:在哪里获取凭据、需要哪些权限,以及该适配器调用的是哪个 API。 由连接器作者以英文提供。
This connector wraps the official Hacker News API hosted on Firebase (hacker-news.firebaseio.com).
Setup: nothing. The API is public, read-only, and unauthenticated.
No write access: the official API is READ-ONLY. There is no way to post stories, comments, or vote via this connector — those require a session cookie obtained by submitting an HTML login form to news.ycombinator.com, which is out of scope for an MCP adapter.
Two-step pattern: list endpoints return arrays of integer IDs only (e.g. top 500 story IDs). You must then fetch each ID via hackernews_get_item to get the actual title/url/text/score. Plan accordingly — fetching 500 top stories means 501 requests.
Item types: story, comment, job, poll, pollopt. Each has different fields — comments have parent + text, stories have title + url (or text for Ask HN), jobs have title + url + text.
Comment trees: comments are a tree via kids (array of IDs) on each item. Walk recursively, watch for deleted: true or dead: true entries.
Rate limits: no published limit, but Firebase will throttle aggressive clients. Stay under ~30 req/s and you'll be fine.
Cache friendly: every item is content-addressable by ID and immutable once posted (votes update but story body doesn't). Long TTLs work well.
Out of scope here: HN Algolia full-text search (different API at hn.algolia.com — could be a separate adapter), write/vote, email subscription.