Basic information
About Hacker News MCP — by NeCL – Neural Engineering & Cognitive Logic Server
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 is a MCP server in the Developer Tools category listed in the AddMCP.net directory, published by adjacentai. It exposes 5 tools, including hn_top_stories, hn_category, hn_get_story, hn_get_comments and more. Supported transport: stdio. Runtime: python. License: MIT. Source code is hosted on github.com. Related topics: ai-agents, built-by-necl, claude, claude-desktop, content.
Setup
{
"mcpServers": {
"necl-hn": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/adjacentai/necl-hn-mcp.git",
"necl-hn-mcp"
]
}
}
}
{
"mcpServers": {
"necl-hn": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/adjacentai/necl-hn-mcp.git",
"necl-hn-mcp"
]
}
}
}
{
"servers": {
"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 config
Add this server to your MCP-compatible client using the configuration below.
{
"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 tools
-
hn_top_stories
— 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).
hours:integer, limit:integer -
hn_category
— 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.
category:string, limit:integer -
hn_get_story
— 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.
story_id:integer* -
hn_get_comments
— 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.
limit:integer, story_id:integer* -
hn_search
— 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).
limit:integer, query:string*, sort:string
Overview
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
newandbestcategories 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.
Frequently asked questions
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.
Comments
No comments yet
Be the first to share feedback about this listing. Sign in to leave a comment.
Sign In