Hacker News MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Hacker News MCP Server show me top stories on Hacker News"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Hacker News MCP Server
A read-only MCP (Model Context Protocol) server for Hacker News. Enables Claude Desktop, Claude Code, and other MCP clients to browse stories, read comments, search posts, and view user profiles. No authentication required.
Features
Story Listings: Browse top, new, best, ask, show, and job stories
Comments: View full comment threads with nesting
Search: Full-text search via Algolia
User Profiles: View user info and submission history
Related MCP server: Hacker News MCP Server
Installation
Prerequisites
Node.js >= 18.0.0
From Source
Clone this repository
Install dependencies:
npm installBuild the project:
npm run build
Configuration
Environment Variables
Variable | Required | Default | Description |
| No | — | Optional HN username for context |
| No |
| Firebase API endpoint |
| No |
| Algolia search endpoint |
No credentials needed. All data is publicly accessible.
Usage with Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"hackernews": {
"command": "node",
"args": ["/path/to/hackernews-mcp/build/index.js"]
}
}
}Usage with Claude Code
claude mcp add hackernews -- node /path/to/hackernews-mcp/build/index.jsAvailable Tools
Tool | Description |
| List stories by type (top, new, best, ask, show, job) |
| Get a specific item (story, comment, job) |
| Get full comment thread with nesting |
| Full-text search via Algolia |
| View a user's profile |
| List a user's posts |
Development
npm run dev— Watch mode with TypeScript compilationnpm run build— Build the projectnpm start— Start the built server
License
MIT
Available Tools
6 toolsget_commentsA
Get threaded comments for a Hacker News story. Returns comments with indentation showing reply depth. Skips dead and deleted comments.
Inputs: story_id (required), depth, limit.
get_itemA
Get any Hacker News item by ID (story, comment, job, poll). Returns full details including text content.
Inputs: id (required).
get_userA
Get a Hacker News user profile by username. Returns karma, account age, about text, and submission count.
Inputs: username (required).
get_user_submissionsB
Get recent submissions from a Hacker News user. Can filter by stories or comments.
Inputs: username (required), type, limit.
list_storiesA
Browse Hacker News feeds (top, new, best, ask, show, job) with pagination. Returns titles, URLs, scores, and metadata.
Inputs: feed, limit, offset.
searchB
Search Hacker News using Algolia. Search stories, comments, or all items by relevance or date.
Inputs: query (required), page, sort, type, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Each tool has a distinct purpose: feeds, item retrieval, comment threads, search, user profiles, and user submissions. No overlapping functionality that would cause confusion.
Most tools follow a clear verb_noun pattern (list_stories, get_item, get_comments, get_user, get_user_submissions). The lone 'search' is a valid verb but lacks a noun, making it a slight deviation from the pattern.
Six tools is well-scoped for a Hacker News reader, covering browsing, retrieval, search, and user-related queries without over-expanding the surface.
The read-only surface is solid, covering stories, items, comments, search, and user data. Minor gaps exist around fetching a comment thread directly from a comment ID and write operations, but these are reasonable omissions for a typical HN MCP.
Maintenance
Related MCP Connectors
Dive into the latest and greatest from the tech world with our Hacker News MCP server.
Hacker News MCP — search and retrieve stories from Hacker News
Browse Hacker News feeds, threads, and user profiles with full-text search.
An MCP server that provides read access to your cloud storage providers, bank accounts and more.
Related MCP Servers
- AlicenseAqualityDmaintenanceA Model Context Protocol (MCP) server that provides tools for searching and fetching information from Hacker News.476MIT
- AlicenseDqualityDmaintenanceAn MCP server that enables AI assistants to access real-time Hacker News data including top stories, story details, comments, and search functionality.142 npm3MIT
- AlicenseNot gradedqualityBmaintenanceMCP server for Hacker News providing tools to fetch stories, threads, users, and search content via Firebase and Algolia APIs.245 npm7Apache 2.0
- AlicenseAqualityDmaintenanceThe only MCP server that can write to Hacker News, enabling story submission, commenting, and submissions checking via natural language.529 npmMIT