Necl Hn MCP logo

Necl Hn MCP

by adjacentai

Access Hacker News stories, categories, comments, and Algolia search through MCP without credentials.

Install Necl Hn MCP

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "adjacentai-necl-hn-mcp": {
      "command": "uvx",
      "args": [
        "--from",
        "git+https://github.com/adjacentai/necl-hn-mcp.git",
        "necl-hn-mcp"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Install not yet sandbox-tested— we haven't run this command through our automated sandbox yet. Not a red flag; we're working through the catalog.

Overview

The adjacentai/necl-hn-mcp MCP server exposes Hacker News data and search tools for AI agents. It retrieves ranked stories by time window, category feeds, story metadata, top-level comments, and full-text results through the public Hacker News and Algolia APIs. No API key or other credentials are required. Use it for content research, trend monitoring, news digests, or enriching prompts with current Hacker News discussions.

Use cases

  • Research recent Hacker News discussions
  • Monitor stories in selected Hacker News feeds
  • Build daily technology news briefs
  • Search Ask HN for customer problems
  • Enrich prompts with story comments

Key features

  • Fetch top stories by score and time window
  • Read Hacker News category feeds
  • Retrieve story metadata
  • Fetch ranked top-level comments
  • Search posts and comments through Algolia
  • Run without API credentials

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

26/26 checks healthy over the last 111d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 8d ago via OSV.dev · necl-hn-mcp (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

Last commit5mo agoMost recent push to the default branch.
Directory activity4 viewsConfig copies, upvotes, and views on AllMCPs.

How Necl Hn MCP works

What adjacentai/necl-hn-mcp MCP server does

The adjacentai/necl-hn-mcp MCP server gives an MCP client access to selected Hacker News data sources. It supports ranked stories from a configurable time window, standard Hacker News feeds, individual story details, top-level comment threads, and full-text search across posts and comments.

The server is intended for agents that need current Hacker News context without manually handling the underlying APIs. Typical workflows include finding recent stories, inspecting a story's metadata, reading its discussion, and searching for related topics. Results are returned as structured data suitable for follow-up tool calls and summaries.

How it works

The adjacentai/necl-hn-mcp MCP server uses the public Hacker News API for story, feed, and comment data. Full-text queries use the Algolia Hacker News API. Neither service requires an API key for the documented setup.

The top-story tool accepts a result limit and a time period in hours, then ranks matching stories by score. Category queries can target top, new, best, ask, show, or job. Search accepts a query and a sort option, including date-based sorting for recent activity.

Comment retrieval is limited to top-level comments. Each returned comment includes a replies_count field that can indicate whether deeper replies exist, but nested replies are not recursively loaded.

Setup and configuration

The documented recommended setup runs the project with uvx directly from its GitHub repository. The repository requires Python 3.10 or newer, and uv can be installed with pip or Homebrew if it is not already available. A pip-based setup is also documented: install the repository and start it with python -m necl_hn_mcp.

A Claude Desktop or other MCP client configuration needs the server command and arguments. No environment variables, account registration, or credential values are required. After changing an MCP configuration, fully restart the client so the tools are discovered.

For development, the project can be cloned and installed in editable mode with its development dependencies.

Tools and capabilities

The adjacentai/necl-hn-mcp MCP server provides these tools:

  • hn_top_stories(limit, hours) returns highly ranked stories from the requested recent time range. Its documented default is 10 stories from the previous 24 hours.
  • hn_get_story(id) retrieves metadata such as the title, URL, score, author, comment count, and posting time.
  • hn_get_comments(id, limit) returns a ranked list of top-level comments for a story.
  • hn_search(query, sort) searches Hacker News posts and comments through Algolia.
  • hn_category(category, limit) reads one of the supported category feeds: top, new, best, ask, show, or job.

These capabilities can support daily content briefs, keyword-based research, monitoring of new or best stories, newsletter preparation, and searches across Ask HN discussions.

Limitations and notes

Hacker News Firebase requests can take longer when a query scans a large range or requests many items. The README gives a 10-second per-request default timeout and recommends using a smaller limit for long time windows.

Algolia may index new Hacker News content with a delay of roughly five to fifteen minutes. Recent searches may therefore return incomplete results; sorting by date is suggested when looking for fresh activity. Comment results intentionally omit recursive replies, so they should not be treated as a complete discussion tree.

The project is released under the MIT license. Its documented integrations are the public Hacker News API and Algolia's Hacker News search API; no paid API service is required.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Necl Hn MCP

Add the documented uvx configuration using the GitHub repository source and the necl-hn-mcp entry point, or install from Git with pip and run python -m necl_hn_mcp.

No. The documented setup uses the public Hacker News API and Algolia Hacker News API without credentials.

Yes. The README provides an MCP configuration for Claude Desktop and advises fully restarting the client after editing its configuration.

No. The comment tool returns only top-level comments. Use each comment's replies_count field to identify deeper discussion.

Algolia indexing can lag by approximately five to fifteen minutes.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewNecl Hn MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/adjacentai-necl-hn-mcp?style=directory)](https://allmcps.com/mcp/adjacentai-necl-hn-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/adjacentai-necl-hn-mcp"><img src="https://allmcps.com/api/badge/adjacentai-necl-hn-mcp?style=directory" alt="Necl Hn MCP on AllMCPs" /></a>