necl-hn-mcp: Hacker News tools MCP server for AI agents

necl-hn-mcp: Hacker News tools MCP server for AI agents

necl-hn-mcp•byadjacentai

An MCP server providing Hacker News tools for AI agents, including top stories, story details, comment threads, full-text search, and category feeds, using the public HN API with zero credentials.

License: MIT•Runtime: Awaiting documentation review•Category: search web

WHAT IT DOES

  • •Provides hn_top_stories to return top N stories from the last N hours ranked by score, defaulting to top 10 from the last 24 hours.
  • •Provides hn_get_story to return full story metadata including title, url, score, author, comments count, and posted time.
  • •Provides hn_get_comments to return top-level comment threads for a story, sorted by HN ranking.
  • •Provides hn_search and hn_category for full-text search across HN posts and comments, and stories from top, new, best, ask, show, or job categories.

BEST FOR

  • •Content research and automatic news digests.
  • •Monitoring HN categories on a schedule to detect trend spikes.
  • •Searching Ask HN for customer-discovery research.

ABOUT NECL-HN-MCP

necl-hn-mcp: Hacker News tools MCP server for AI agents is cataloged as an MCP server attributed to adjacentai. An MCP server providing Hacker News tools for AI agents, including top stories, story details, comment threads, full-text search, and category feeds, using the public HN API with zero credentials. It is categorized under search web. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for necl-hn-mcp: Hacker News tools MCP server for AI agents are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Does this MCP server require credentials or API keys?

No. It uses the public HN API with zero credentials and no signup.

Does hn_get_comments fetch replies recursively?

No. hn_get_comments returns only top-level comments; replies are not recursively fetched to keep token cost predictable, and each comment has a replies_count field.

Why might Algolia search return no hits for fresh items?

Algolia indexes HN content with a delay of about 5 to 15 minutes for fresh items; using sort="date" is suggested for recent activity.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 6f7019e381fb · 采集于 2026-11-13 11:44:30 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

necl-hn-mcp

License: MIT MCP Python Built by NeCL

Hacker News tools for AI agents. Top stories, story details, comments thread, full-text search.

Zero credentials. Public HN API. Install and use.

Built by NeCL — AI engineering studio. Production-tested: this is the exact HN layer that powers our internal content agent, running 3× daily for months.

Tools

ToolWhat it does
hn_top_stories(limit, hours)Top N stories from the last N hours, ranked by score. Default: top 10 from last 24h.
hn_get_story(id)Full story metadata: title, url, score, author, comments count, posted time.
hn_get_comments(id, limit)Top-level comments thread for a story, sorted by HN ranking.
hn_search(query, sort)Full-text search across HN posts and comments (via Algolia HN API).
hn_category(category, limit)Stories from a specific category: top, new, best, ask, show, job.

Why this MCP

  • Zero credentials, zero config — public HN API, no rate limits worth worrying about, no signup.
  • Battle-tested code — extracted from our internal HN-to-drafts content engine that's been running 3×/day for months.
  • Built for AI agents — every tool returns clean structured data that LLMs can chain together (search → top story → comments → summary).
  • Use case — content research, trend monitoring, automatic news digests, prompt-context enrichment.

Install

uvx runs the package in an ephemeral env. No pip install, no venv. Add to your mcp.json (Claude Desktop, Claude Code, or any MCP client):

{
  "mcpServers": {
    "necl-hn": {
      "command": "uvx",
      "args": [
        "--from",
        "git+https://github.com/adjacentai/necl-hn-mcp.git",
        "necl-hn-mcp"
      ]
    }
  }
}

Don't have uvx? Install it: pip install uv or brew install uv.

Via pip + python -m

pip install git+https://github.com/adjacentai/necl-hn-mcp.git

Then in mcp.json:

{
  "mcpServers": {
    "necl-hn": {
      "command": "python",
      "args": ["-m", "necl_hn_mcp"]
    }
  }
}

From source (for development)

git clone https://github.com/adjacentai/necl-hn-mcp.git
cd necl-hn-mcp
pip install -e ".[dev]"

Then use the same python -m necl_hn_mcp config as above.

Example use in Claude

Once installed, just ask Claude things like:

  • "What are the top 5 stories on HN in the last 6 hours?"
  • "Get the comments thread for HN story 38420000"
  • "Search HN for posts about RAG performance, sorted by date"
  • "Show me everything in the Ask HN category right now"
  • "Find the top 3 Show HN posts about AI agents this week"

Claude will call the right tool, no further setup.

What you can build with this

  • Daily content brief — pull top HN stories, summarize, generate cross-platform posts.
  • Competitive research bot — search HN for mentions of your competitors, surface negative comments.
  • Trend detector — monitor new and best categories on a cron, alert when a topic spikes.
  • Newsletter pipeline — search by keyword window, cluster results, generate editorial digest.
  • Customer-discovery agent — search Ask HN for problems your product solves, generate cold-outreach drafts.
  • Tech-radar updater — periodically scan show category for new tools in your stack.

Troubleshooting

"mcp command not found" / install errors. Make sure your Python is 3.10+. If using uvx, ensure uv is installed (pip install uv). For pip install: pip install necl-hn-mcp then verify python -m necl_hn_mcp --help doesn't error.

Tool calls timeout. HN's Firebase API can be slow when fetching many items (e.g. hn_top_stories(limit=30, hours=168) scans 200 stories). Default timeout is 10s per request. For long-window queries, use lower limit.

Algolia returns no hits. Algolia indexes HN content with a delay (~5-15 min for fresh items). Try sort="date" for recent activity.

Comments thread is empty for a story I see on HN. hn_get_comments returns only top-level comments. Replies aren't recursively fetched (to keep token cost predictable for LLMs). Use the replies_count field on each comment to know if there's deeper discussion.

Tools don't show up in Claude. After editing mcp.json, fully restart Claude Desktop / Claude Code (not just reload). Check the MCP logs in Settings → Developer.

Pair with

  • necl-content-poster Skill — turn HN stories into ready-to-publish posts for TG/LinkedIn/Threads.

Full pipeline:

necl-hn-mcp (find story) → necl-content-poster (write 3 posts) → you publish

Built by NeCL

neclco.com — production AI engineering. RAG systems, voice agents, Telegram bots, custom MCPs and content engines for companies that need more than wrappers.

Need a custom MCP wired to your internal APIs / databases / SaaS? Visit neclco.com.

Development

git clone https://github.com/adjacentai/necl-hn-mcp.git
cd necl-hn-mcp
pip install -e ".[dev]"

# Run locally with MCP inspector
mcp dev src/necl_hn_mcp/server.py

License

MIT — see LICENSE.


Follow NeCL: Telegram · LinkedIn · X · Site

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for necl-hn-mcp: Hacker News tools MCP server for AI agents from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/necl-hn-mcp)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related search web MCP Servers

Alternative and complementary servers in the same category

View all in search web →

An MCP server that merges Google Search Console history with a live first-party crawl of your site to produce a prioritised, evidence-backed technical SEO audit inside Claude, complete with paste-ready fixes.

Repository stats unavailable
Search & Web Research

An MCP server that offers intelligent web search using OpenAI reasoning models, with support for fast iterations and deep research.

94
Search & Web Research