Connector guide1-minute read8 MCP toolsEN · DE · IT

如何通过 MCP 将 Hacker News 连接到 Claude

通过官方 Firebase API 从任何 AI 代理读取 Hacker News(故事、评论、用户、热门/最新/最佳/提问/展示/工作列表)。8 个工具,无需认证。

HCBy HelpCode teamUpdated 1 min read Open source on GitHub

No credit card · 7-day trial · Self-host alternative available

Hacker News

MCP connector

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.

Tools

8

Region

INTL

Category

Data & Analytics

Authentication

Public API

Install in one click on Cloud

7-day free trial · No credit card

  • 7-day free trial
    No credit card required
  • GDPR & SOC 2 ready
    EU data residency, audit logs
  • Open-source on GitHub
    Open source AGPL-3.0
  • Works with ChatGPT, Claude, Gemini
    Any MCP-compatible client

Skip the install. Get this working in under 2 minutes.

Start a free trial on cloud.anythingmcp.com, add the Hacker News in one click, then point your AI client (Claude, ChatGPT, Copilot or Cursor) at the generated MCP endpoint. No Docker, no git clone, zero engineering experience required.

Start free trial

Summary

通过官方 Firebase API 从任何 AI 代理读取 Hacker News(故事、评论、用户、热门/最新/最佳/提问/展示/工作列表)。8 个工具,无需认证。

试试这样问

Hacker News 的示例提示

点击任意提示即可复制,然后粘贴到 Claude、ChatGPT、Cursor、Gemini、Copilot 或 OpenClaw 中,在该连接器上运行。

Hacker News · 通过 MCP 实时
分享
Opus 4.7

Claude 是 AI,可能会出错。请核对回答。

💡 不想安装?直接使用 cloud.anythingmcp.com 登录,点击 Connectors → Hacker News,粘贴你的凭据,生成 MCP API 密钥 — 完成。无需 Docker,无需 git clone,无需本地服务器。

Hacker News + Claude

通过官方 Firebase API 从任何 AI 代理读取 Hacker News(故事、评论、用户、热门/最新/最佳/提问/展示/工作列表)。8 个工具,无需认证。

前提条件

请查看连接器中包含的完整设置说明(在你选择连接器时可在应用内商店中查看)。此连接器所需的环境变量为:

(无 — 公共 API)

第一步 — 获取凭据

此连接器封装了托管在 Firebase 上的官方 Hacker News API(hacker-news.firebaseio.com)。

设置:无。该 API 是公共的,只读且无需认证。

无写入权限:官方 API 是只读的。无法通过此连接器发布故事、评论或投票 — 这些操作需要通过向 news.ycombinator.com 提交 HTML 登录表单获得的会话 cookie,而这超出了 MCP 适配器的范围。

两步模式:列表端点仅返回整数 ID 数组(例如,前 500 个故事 ID)。你必须通过 hackernews_get_item 获取每个 ID,以获取实际的标题/网址/文本/分数。请合理规划 — 获取 500 个热门故事意味着 501 个请求。

…(在应用内连接器说明中继续)

第二步 — 安装适配器

git clone https://github.com/HelpCode-ai/anythingmcp.git
cd anythingmcp && docker compose up -d

第三步 — 在 Claude 中添加连接器

推荐路径 — 在 claude.ai web 上工作,无需编辑任何配置文件。

  1. 打开 claude.ai/customize/connectors
  2. 点击 "添加自定义连接器"
  3. 填写:
    • 名称: Hacker News
    • URL: https://cloud.anythingmcp.com/mcp
    • 认证: Bearer token → 粘贴你的 MCP API 密钥(来自 AnythingMCP → Profile → MCP API Keys → New Key
  4. 点击 连接 以授权。

所有工具将出现在你的聊天中 — 开始输入提示。

可用工具

工具功能
hackernews_top_stories返回当前首页(热门)故事的最多 500 个项目 ID 数组
hackernews_new_stories返回最多 500 个最新故事 ID 的数组
hackernews_best_stories返回最多 500 个“最佳”故事 ID 的数组(HN 的算法推荐)
hackernews_ask_stories返回最多 200 个 Ask HN 故事 ID
hackernews_show_stories返回最多 200 个 Show HN 故事 ID
hackernews_job_stories返回最多 200 个“谁在招聘/工作”故事 ID
hackernews_get_item通过 ID 获取单个项目(故事、评论、工作、投票、投票选项)
hackernews_get_user通过区分大小写的用户名获取用户资料:返回 idcreatedkarmaaboutsubmitted(最近项目 ID 的数组)

常见问题

它是否适用于 Claude Code 和 Claude Desktop? 是的 — 两者都指向 https://cloud.anythingmcp.com/mcp

下一步

这份指南对你有帮助吗?

Ready to ship

Your Hacker agent is one click away.

Install the connector, paste the key, prompt Claude. Free for 7 days, no credit card.

相关指南