MCP server exposing Hacker News data tools for Claude Desktop to fetch stories and comments.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
One-click editor setup isnβt available for this listing yet β we donβt have a confirmed install command, and weβd rather show nothing than point your editor at the wrong package or host. Follow the projectβs own setup instructions, linked above.
Inspect callable tools, capabilities, and parameters exposed to AI agents by MCP Claude Hackernews.
hn_latestGet the most recent stories from Hacker News
hn_topGet the top-ranked stories from Hacker News
hn_bestGet the best stories from Hacker News
hn_storyGet detailed information about a specific story
hn_commentsGet comments for a story
| An integration that allows Claude Desktop to interact with Hacker News using the Model Context Protocol (MCP). |
|
There are two ways to run the MCP server:
Keep this terminal window open while using Claude Desktop. The server will run until you close the terminal.
The Claude Desktop can automatically start the MCP server when needed. To set this up:
The Claude Desktop configuration file is located at:
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.json~/.config/Claude/claude_desktop_config.jsonEdit this file to add the Hacker News MCP configuration. If the file doesn't exist, create it:
Important: Replace ABSOLUTE_PATH_TO_DIRECTORY with the complete absolute path where you installed the MCP
/Users/username/mcp-claude-hackernewsC:\\Users\\username\\mcp-claude-hackernewsIf you already have other MCPs configured, simply add the "hackerNews" section inside the "mcpServers" object. Here's an example of a configuration with multiple MCPs:
The MCP server will automatically start when Claude Desktop needs it, based on the configuration in your claude_desktop_config.json file.
The Hacker News MCP provides 5 specialized tools for different functions:
| Tool | Description | Parameters | Example Usage |
|---|---|---|---|
hn_latest | Get the most recent stories from Hacker News | limit: Optional number of stories (1-50, default: 10) | Get 20 latest stories |
hn_top | Get the top-ranked stories from Hacker News | limit: Optional number of stories (1-50, default: 10) | Get 15 top stories |
hn_best | Get the best stories from Hacker News | limit: Optional number of stories (1-50, default: 10) | Get 25 best stories |
hn_story | Get detailed information about a specific story | story_id: Required story ID (number) | Get story details by ID |
hn_comments | Get comments for a story | story_id: Story ID (number) OR story_index: Index from last list (1-based) | Get comments by story ID or index |
hn_latest, hn_top, hn_bestlimit (optional): Number of stories to fetch
hn_storystory_id (required): The ID of the story to fetch
hn_commentsstory_id (optional): The ID of the story to get comments for
story_index (optional): The index of the story from the last fetched list
Note: For hn_comments, you must provide either story_id OR story_index
Here are various examples of how to use the Hacker News MCP with Claude:
You can also interact with the MCP using natural language. Claude will interpret these requests and use the appropriate tools:
You can request Hacker News content to be translated into different languages:
If you see the error "MCP Hacker News: Server disconnected" in Claude Desktop:
Verify the server is running:
node build/index.js from the project directoryCheck your configuration:
claude_desktop_config.json is correct for your system\\) for Windows pathsTry the auto-start option:
If the Hacker News tools don't appear in Claude:
To check if the server is running:
ps aux | grep nodeIf you don't see the server running, start it manually or use the auto-start method.
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the Mozilla Public License 2.0 - see the LICENSE file for details.
Factual signals from GitHub, npm, and our automated checks β not a rating.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/imprvhub-mcp-claude-hackernews)<a href="https://allmcps.com/mcp/imprvhub-mcp-claude-hackernews"><img src="https://allmcps.com/api/badge/imprvhub-mcp-claude-hackernews?style=directory" alt="MCP Claude Hackernews on AllMCPs" /></a>