by imprvhub
Enables Claude Desktop to browse Hacker News, retrieve story details, and read comments through a set of MCP tools, presenting clean‑formatted content for better readability.
Provides Claude Desktop with five specialized tools that fetch the latest, top, and best stories from Hacker News, retrieve individual story details, and obtain comments. The integration formats the retrieved content for easy consumption within Claude.
npm install and npm run build.node build/index.js or by adding an auto‑start entry to claude_desktop_config.json (the mcpServers section) so Claude launches the server on demand.hn_latest, hn_top, hn_best, hn_story, and hn_comments.Q: I see “Server disconnected” in Claude.
A: Verify the server is running (node build/index.js). Check the absolute path in claude_desktop_config.json and use double backslashes on Windows. Consider using the auto‑start configuration.
Q: The Hacker News tools are missing in Claude. A: Restart Claude after editing the config file, ensure the MCP server process is active, and review Claude’s logs for communication errors.
Q: How do I know if the server is running?
A: On Windows, look for node.exe in Task Manager. On macOS/Linux, run ps aux | grep node.
Q: Can I limit the number of stories returned?
A: Yes, each list tool accepts an optional limit parameter (1‑50, default 10).
Q: Do I need an API key? A: No external API key is required; the integration uses the public Hacker News API.
git clone https://github.com/imprvhub/mcp-claude-hackernews
cd mcp-claude-hackernews
npm install
npm run build
There are two ways to run the MCP server:
node build/index.js
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:
{
"mcpServers": {
"hackerNews": {
"command": "node",
"args": ["ABSOLUTE_PATH_TO_DIRECTORY/mcp-claude-hackernews/build/index.js"]
}
}
}
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:
{
"mcpServers": {
"otherMcp1": {
"command": "...",
"args": ["..."]
},
"otherMcp2": {
"command": "...",
"args": ["..."]
},
"hackerNews": {
"command": "node",
"args": [
"ABSOLUTE_PATH_TO_DIRECTORY/mcp-claude-hackernews/build/index.js"
]
}
}
}
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:
"Use hn_latest to get 20 recent stories"
"Use hn_top with limit 15 to get top stories"
"Use hn_best to get 25 best stories"
"Use hn_story with story_id 29384756 to get story details"
"Use hn_comments with story_index 3 to get comments for the 3rd story"
"Use hn_comments with story_id 12345678 to get comments for that story"
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.
Please log in to share your review and rating for this MCP.
Explore related MCPs that share similar capabilities and solve comparable challenges
by lharries
Enables searching, reading, and sending personal WhatsApp messages and media through a Model Context Protocol (MCP) server, storing all data locally in SQLite and exposing controlled tools for LLMs like Claude.
by caol64
Automatically format Markdown articles and publish them to WeChat public accounts, supporting theme selection, image upload, and AI integration.
by korotovsky
Provides a powerful Model Context Protocol interface for Slack workspaces, enabling message retrieval, search, and optional posting via Stdio or SSE transports without requiring bot permissions.
by iFurySt
Provides authenticated access to XiaoHongShu (RedNote) notes, supporting keyword search, note retrieval by URL, and cookie persistence via a Model Context Protocol server.
by chigwell
Provides a full‑featured Telegram integration for MCP‑compatible clients, enabling programmatic access to chats, messages, contacts, profile management, and group administration.
by line
Integrates the LINE Messaging API with a Model Context Protocol server, enabling AI agents to send text, flex, broadcast messages, retrieve user profiles, and manage rich menus on a LINE Official Account.
by ZubeidHendricks
Provides a standardized interface for interacting with YouTube content, enabling video retrieval, transcript access, channel and playlist management, and advanced analytics through the Model Context Protocol.
by InditexTech
Provides Microsoft Teams integration via the Model Context Protocol, enabling reading, creating, replying to messages and mentioning members.
by EnesCinr
Interact with Twitter to post tweets and search tweets programmatically via an MCP server.