MCP Claude Hacker News

MCP Claude Hacker News

mcp-claude-hackernews•byimprvhub

An MCP server that lets Claude Desktop interact with Hacker News through dedicated tools.

License: Mozilla Public License 2.0•Runtime: Awaiting documentation review•Category: search web

WHAT IT DOES

  • •Provides tools to fetch the latest, top, and best-rated Hacker News stories with a configurable limit.
  • •Supports keyword search of stories with relevance or date sorting via the Algolia HN Search API.
  • •Returns detailed information about a specific story and its top-level comments, with a cap to avoid flooding context.
  • •Formats Hacker News content for readability, including HTML entity decoding.

BEST FOR

  • •Browsing and searching Hacker News stories from within Claude Desktop.
  • •Following discussion threads by retrieving top-level comments for a story.

ABOUT MCP-CLAUDE-HACKERNEWS

MCP Claude Hacker News is cataloged as an MCP server attributed to imprvhub. An MCP server that lets Claude Desktop interact with Hacker News through dedicated tools. It is categorized under search web. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Mozilla Public License 2.0. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for MCP Claude Hacker News are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

How many comments are fetched for a story?

Only top-level comments are fetched, up to a default limit of 20 and a maximum of 50.

Upstream README

View this exact version on GitHub

README.md · 577475116c0e · Fetched 2026-11-13 10:11:07 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

MCP Claude Hacker News

Trust Score Smithery

MseeP.ai Security Assessment Badge An integration that allows Claude Desktop to interact with Hacker News using the Model Context Protocol (MCP). mcp-claude-hackernews MCP server

Features

  • Browse latest stories from Hacker News
  • View top and best-rated stories
  • Search stories by keyword, by relevance or most recent (Algolia HN Search API)
  • Get story details
  • Read comments for stories, capped so a busy thread cannot flood the context
  • Clean formatting of Hacker News content for better readability, including HTML entity decoding

Demo

Claude Hacker News Integration Demo

Requirements

  • Node.js 20 or higher
  • Claude Desktop
  • Internet connection to access Hacker News API

Installation

Installing via Smithery

Install the packaged bundle from the Smithery server page, or from the CLI:

npx -y @smithery/cli@latest mcp add imprvhub/mcp-claude-hackernews --client claude

Installing Manually

  1. Clone or download this repository:
git clone https://github.com/imprvhub/mcp-claude-hackernews
cd mcp-claude-hackernews
  1. Install dependencies:
npm install
  1. Build the project:
npm run build

Running the MCP Server

There are two ways to run the MCP server:

Option 1: Running manually

  1. Open a terminal or command prompt
  2. Navigate to the project directory
  3. Run the server directly:
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:

Configuration

The Claude Desktop configuration file is located at:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

Edit 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

  • macOS/Linux example: /Users/username/mcp-claude-hackernews
  • Windows example: C:\\Users\\username\\mcp-claude-hackernews

If 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.

Usage

  1. Restart Claude Desktop after modifying the configuration
  2. In Claude, use the Hacker News tools to interact with Hacker News
  3. The MCP server runs as a child process managed by Claude Desktop

Available Tools

The Hacker News MCP provides 6 specialized tools for different functions:

ToolDescriptionParametersExample Usage
hn_latestGet the most recent stories from Hacker Newslimit: Optional number of stories (1-50, default: 10)Get 20 latest stories
hn_topGet the top-ranked stories from Hacker Newslimit: Optional number of stories (1-50, default: 10)Get 15 top stories
hn_bestGet the best stories from Hacker Newslimit: Optional number of stories (1-50, default: 10)Get 25 best stories
hn_searchSearch stories by keywordquery: Required search terms; limit: 1-50 (default: 10); sort: relevance (default) or dateSearch "rust async" sorted by date
hn_storyGet detailed information about a specific storystory_id: Required story ID (number)Get story details by ID
hn_commentsGet top-level comments for a storystory_id: Story ID (number) OR story_index: Index from last list (1-based); limit: 1-50 (default: 20)Get comments by story ID or index

Tool Parameters Details

hn_latest, hn_top, hn_best

  • limit (optional): Number of stories to fetch
    • Type: Number
    • Range: 1-50
    • Default: 10
  • query (required): Search terms
    • Type: String
    • Example: "model context protocol"
  • limit (optional): Number of results, 1-50, default 10
  • sort (optional): relevance (default) or date for newest first

hn_story

  • story_id (required): The ID of the story to fetch
    • Type: Number
    • Example: 12345678

hn_comments

  • story_id (optional): The ID of the story to get comments for
    • Type: Number
    • Example: 12345678
  • story_index (optional): The index of the story from the last fetched list
    • Type: Number (1-based)
    • Example: 3 (for the 3rd story in the last list)
  • limit (optional): Maximum number of top-level comments to return
    • Type: Number
    • Range: 1-50
    • Default: 20

Note: For hn_comments, you must provide either story_id OR story_index. Only top-level comments are fetched; the reply count is reported per comment. The response states how many of the thread's top-level comments were returned.

Example Usage

Here are various examples of how to use the Hacker News MCP with Claude:

Direct Tool Usage:

"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_search with query 'model context protocol' to find related stories"
"Use hn_search with query 'rust' and sort date to see the newest posts"
"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"

Natural Language Queries:

You can also interact with the MCP using natural language. Claude will interpret these requests and use the appropriate tools:

  • "Show me the top 30 stories on Hacker News today"
  • "What are the 40 latest posts on Hacker News?"
  • "I'd like to see the 20 best articles from Hacker News"
  • "Can you fetch me 30 recent tech news stories from Hacker News?"
  • "Tell me what's the top 50 trending topics on Hacker News"
  • "Search Hacker News for stories about machine learning"
  • "Get me the 40 most recent Hacker News headlines"
  • "What are the 30 most active discussions on Hacker News right now?"
  • "I'm interested in reading the 40 most popular Hacker News articles this week"
  • "Show me a list of 20 best programming articles from Hacker News"
  • "Get the comments for story number 5 from the last list"
  • "Show me the details of story ID 12345678"

Language Translation Requests:

You can request Hacker News content to be translated into different languages:

  • "Show me the top 30 stories on Hacker News today in Spanish"
  • "Get the 20 latest Hacker News posts and translate them to French"
  • "I'd like to see the 40 best articles from Hacker News in German"
  • "Show me 30 recent Hacker News stories translated to Japanese"
  • "Get the top 20 Hacker News articles and present them in Portuguese"

Troubleshooting

"Server disconnected" error

If you see the error "MCP Hacker News: Server disconnected" in Claude Desktop:

  1. Verify the server is running:

    • Open a terminal and manually run node build/index.js from the project directory
    • If the server starts successfully, use Claude while keeping this terminal open
  2. Check your configuration:

    • Ensure the absolute path in claude_desktop_config.json is correct for your system
    • Double-check that you've used double backslashes (\\) for Windows paths
    • Verify you're using the complete path from the root of your filesystem
  3. Try the auto-start option:

    • Set up the auto-start script for your operating system as described in the "Setting up auto-start scripts" section
    • This ensures the server is always running when you need it

Tools not appearing in Claude

If the Hacker News tools don't appear in Claude:

  • Make sure you've restarted Claude Desktop after configuration
  • Check the Claude Desktop logs for any MCP communication errors
  • Ensure the MCP server process is running (run it manually to confirm)
  • Verify that the MCP server is correctly registered in the Claude Desktop MCP registry

Checking if the server is running

To check if the server is running:

  • Windows: Open Task Manager, go to the "Details" tab, and look for "node.exe"
  • macOS/Linux: Open Terminal and run ps aux | grep node

If you don't see the server running, start it manually or use the auto-start method.

Development

Run the test suite (no network required):

npm install
npm run build
npm test

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the Mozilla Public License 2.0 - see the LICENSE file for details.

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for MCP Claude Hacker News from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/mcp-claude-hackernews)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related search web MCP Servers

Alternative and complementary servers in the same category

View all in search web →

An MCP server that merges Google Search Console history with a live first-party crawl of your site to produce a prioritised, evidence-backed technical SEO audit inside Claude, complete with paste-ready fixes.

Repository stats unavailable
Search & Web Research

An MCP server that offers intelligent web search using OpenAI reasoning models, with support for fast iterations and deep research.

94
Search & Web Research