Connector guide1-minute read8 MCP toolsEN · DE · IT

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

通过官方 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 + ChatGPT

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

前提条件

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

(无 — 公共 API)

第一步 — 获取凭据

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

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

无写入访问:官方 API 为只读。无法通过此连接器发布故事、评论或投票 — 这些需要通过提交 HTML 登录表单到 news.ycombinator.com 获取的会话 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

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

ChatGPT 通过 Connectors 功能支持 MCP 服务器(Plus / Pro / Team / Enterprise 计划)。免费套餐不支持自定义连接器。

  1. 打开 ChatGPT → 设置 → Connectors(或点击创作工具中的 🔧 图标 → 管理连接器)。
  2. 点击 "添加自定义连接器"
  3. 填写:
    • 名称: Hacker News
    • MCP 服务器 URL: https://cloud.anythingmcp.com/mcp
    • 身份验证: Bearer token → 粘贴你的 MCP API 密钥(来自 AnythingMCP → 个人资料 → MCP API 密钥 → 新密钥
  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 的数组)

常见问题

ChatGPT 免费套餐是否支持自定义 MCP 连接器? 不 — 需要 Plus、Pro、Team 或 Enterprise 计划。

下一步

这份指南对你有帮助吗?

Ready to ship

Your Hacker agent is one click away.

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

相关指南