MCP.so
登录

Hacker News MCP — by NeCL – Neural Engineering & Cognitive Logic

@adjacentai

基本信息

分类

开发工具

许可证

MIT

传输方式

stdio

作者

adjacentai

提交者

necl_adjacentai

关于 Hacker News MCP — by NeCL – Neural Engineering & Cognitive Logic

Hacker News tools for AI agents (MCP server). Top stories, comments thread, full-text search via Algolia. No API key required. By NeCL.

Hacker News MCP — by NeCL – Neural Engineering & Cognitive Logic 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

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

Hacker News MCP — by NeCL – Neural Engineering & Cognitive Logic 工具

5

Get the top Hacker News stories from the last N hours, ranked by score. Args: limit: Number of stories to return (1-30). Default 10. hours: Time window in hours back from now. Default 24. Returns: List of story dicts with id, title, url, score, author, comments_count, posted_unix, hn_url, type, text (for Ask/Show HN posts).

Get stories from a specific HN category. Args: category: One of "top", "new", "best", "ask", "show", "job". limit: Number of stories to return (1-30). Default 10. Returns: List of story dicts.

Get full metadata for a single HN story by id. Args: story_id: The HN item id. Returns: Story dict with id, title, url, score, author, comments_count, posted_unix, hn_url, type, text. Returns {"error": "..."} if not found.

Get the top-level comments thread for a story, in HN ranking order. Args: story_id: The HN item id of the parent story. limit: Number of comments to return (1-30). Default 10. Returns: List of comment dicts with id, author, text, posted_unix, replies_count.

Full-text search across HN stories and comments via Algolia. Args: query: Search query string. sort: "relevance" (default) or "date" (newest first). limit: Number of hits to return (1-50). Default 20. Returns: Dict with `hits` (list of clean dicts: id, kind, title, url, hn_url, author, points, comments_count, story_text, comment_text, created_at, tags) and `total_hits` (total matches Algolia found, may exceed limit).

概览

What is Hacker News MCP — by NeCL – Neural Engineering & Cognitive Logic?

A set of tools for AI agents to access Hacker News top stories, story details, comments threads, and full-text search via the public HN API. It requires no credentials, is zero‑config, and is built by NeCL – an AI engineering studio that uses it internally.

How to use Hacker News MCP — by NeCL – Neural Engineering & Cognitive Logic?

Install via uvx (recommended, no setup) or pip, then add the configuration to your MCP client’s mcp.json. Once configured, agents can call tools like hn_top_stories, hn_get_story, hn_get_comments, hn_search, and hn_category using natural language prompts.

Key features of Hacker News MCP — by NeCL – Neural Engineering & Cognitive Logic

  • Zero credentials and zero configuration required.
  • Five tools for top stories, story details, comments, search, and categories.
  • Battle‑tested code extracted from NeCL’s internal content engine.
  • Clean structured data output, designed for LLM chaining.
  • Compatible with any MCP client (Claude Desktop, Claude Code, etc.).
  • Uses the free public HN API with no rate limits worth worrying about.

Use cases of Hacker News MCP — by NeCL – Neural Engineering & Cognitive Logic

  • Generate daily content briefs from top HN stories.
  • Perform competitive research by searching HN for company mentions.
  • Monitor trends by polling new and best categories on a cron.
  • Build a newsletter pipeline that searches by keyword, clusters results, and creates editorial digests.
  • Automate customer‑discovery by searching Ask HN for problems your product solves.

常见问题

1

`mcp` command not found or install errors?

Ensure Python 3.10+ is installed. If using `uvx`, install `uv` (`pip install uv`). For pip install, run `pip install necl-hn-mcp` and verify with `python -m necl_hn_mcp --help`.

2

Tool calls timeout?

HN’s Firebase API can be slow when fetching many items. For long‑window queries (e.g. `hn_top_stories(limit=30, hours=168)`), reduce the `limit` value. Default timeout is 10 seconds per request.

3

Algolia returns no hits for my search?

Algolia indexes HN content with a delay of about 5–15 minutes for fresh items. Use `sort="date"` to prioritise recent activity.

4

Why are comments threads empty for some stories?

`hn_get_comments` returns only top‑level comments to keep token costs predictable. The `replies_count` field on each comment indicates if deeper discussion exists, but replies are not recursively fetched.

5

Tools don’t show up in Claude after configuration?

Fully restart Claude Desktop or Claude Code (not just reload). Check the MCP logs under Settings → Developer to verify the server connects.

评论

开发工具 分类下的更多 MCP 服务器