N

Necl Hn Mcp

adjacentai
๐Ÿ”Ž Search & Data Extraction
0 Views
0 Installs

๐Ÿ โ˜๏ธ - Hacker News tools for AI agents: top stories by time window, category feeds (top/new/best/ask/show/job), comment threads, and full-text search via Algolia. No API key required.

Quick Install

One-Click IDE Configuration
claude_desktop_config.json
{
  "mcpServers": {
    "adjacentai-necl-hn-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "adjacentai-necl-hn-mcp"
      ]
    }
  }
}
Or

Using an AI coding agent (Claude Code, Cursor, etc.)? Copy a ready-made prompt that tells it to fetch the setup instructions and install this server for you.

Documentation Overview

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

Via uvx (recommended โ€” no setup)

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

Related MCP Servers

M
Mineru Mcp

๐Ÿ“‡ โ˜๏ธ - MCP server for MinerU document parsing API. Parse PDFs, images, DOCX, and PPTX with OCR (109 languages), batch processing (200 docs), page ranges, and local file upload. 73% token reduction with structured output.

๐Ÿ”Ž Search & Data Extraction1 views
J
Job Searchoor

๐Ÿ“‡ ๐Ÿ  - An MCP server for searching job listings with filters for date, keywords, remote work options, and more.

๐Ÿ”Ž Search & Data Extraction0 views
O
Open WebSearch

๐Ÿ ๐Ÿ“‡ โ˜๏ธ - Web search using free multi-engine search (NO API KEYS REQUIRED) โ€” Supports Bing, Baidu, DuckDuckGo, Brave, Exa, and CSDN.

๐Ÿ”Ž Search & Data Extraction0 views
M
Mcp Servers Kagi

๐Ÿ“‡ โ˜๏ธ - Kagi search API integration

๐Ÿ”Ž Search & Data Extraction0 views

Engagement

Views
0
Installs
0
Upvotes
0

Views and upvotes are unique per visitor network (hashed IP). Installs count copy actions.

Status

Health: Not checked yet

We have not completed a health check for this listing yet.

Last checked: 7/28/2026, 5:30:33 AM

Unclaimed listing (imported or pending owner verification). Claim it โ†’
โ˜… Spotlight Slot

Feature Your MCP Server

Get maximum visibility for your server across our directory, search results, and detail pages.

Spotlight Your Server

Own this project?

This directory is pre-filled from public sources. Claim via GitHub README, site badge, or DNS TXT to get the verified badge and attach your website.

Claim this listing

Promote this listing

Optional paid placement. Free listings stay free forever.

Share & Embed

Add our SVG badge (dark/light directory styles) or embeddable widget to your site.