MCP Claude Hacker News

MCP Claude Hacker News

Seamless Hacker News integration for Claude Desktop via Model Context Protocol.

9
Stars
7
Forks
9
Watchers
2
Issues
MCP Claude Hacker News is an MCP server that enables Claude Desktop to access, browse, and interact with Hacker News content. It allows users to view the latest, top, and best-rated stories, retrieve detailed information, and read story comments in a clean, structured format. Designed for easy integration, it supports both manual launch and automated startup with Claude Desktop.

Key Features

Browse latest Hacker News stories
View top and best-rated stories
Retrieve detailed story information
Read and display story comments
Clean and readable content formatting
Node.js-based MCP server
Manual or auto-start with Claude Desktop
Easy installation and setup process
Supports configuration for multiple MCP servers
Runs on Windows, macOS, and Linux

Use Cases

Aggregating Hacker News stories for Claude Desktop users
Quickly accessing trending tech news within an AI application
Reading and analyzing comments on Hacker News stories
Seamless news content integration for productivity workflows
Providing up-to-date tech story feeds to AI-powered tools
Enhancing AI assistants with contextual news data
Automating the retrieval of Hacker News discussions
Integrating external news APIs into desktop applications
Improving reading experiences for Hacker News via formatting
Supporting developer workflows with real-time news integration

README

MCP Claude Hacker News

Verified on MseeP Trust Score smithery badge

Features

  • Browse latest stories from Hacker News
  • View top and best-rated stories
  • Get story details
  • Read comments for stories
  • Clean formatting of Hacker News content for better readability

Demo

Requirements

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

Installation

Installing Manually

  1. Clone or download this repository:
bash
git clone https://github.com/imprvhub/mcp-claude-hackernews
cd mcp-claude-hackernews
  1. Install dependencies:
bash
npm install
  1. Build the project:
bash
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:
bash
node build/index.js

Keep this terminal window open while using Claude Desktop. The server will run until you close the terminal.

Option 2: Auto-starting with Claude Desktop (recommended for regular use)

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:

json
{
  "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:

json
{
  "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 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

Tool Parameters Details

hn_latest, hn_top, hn_best

  • limit (optional): Number of stories to fetch
    • Type: Number
    • Range: 1-50
    • Default: 10

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)

Note: For hn_comments, you must provide either story_id OR story_index

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_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"
  • "Show me 20 Hacker News 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.

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.

Related Links

Star History

Star History Chart

Repository Owner

imprvhub
imprvhub

User

Repository Details

Language TypeScript
Default Branch main
Size 1,153 KB
Contributors 5
License Mozilla Public License 2.0
MCP Verified Nov 12, 2025

Programming Languages

TypeScript
94.27%
Dockerfile
5.73%

Tags

Topics

ai anthropic api claude claude-desktop hacker-news hackernews hackernews-api hn integration llm mcp mcp-server model-context-protocol node server

Join Our Newsletter

Stay updated with the latest AI tools, news, and offers by subscribing to our weekly newsletter.

We respect your privacy. Unsubscribe at any time.

Related MCPs

Discover similar Model Context Protocol servers

  • Hacker News MCP Server

    Hacker News MCP Server

    Fetch and structure Hacker News stories via the Model Context Protocol.

    Provides an MCP server that enables fetching and parsing stories from Hacker News with structured output. Supports retrieval of different types of stories, configurable limits, and clean error handling. Designed for integration with Claude and other MCP-compatible interfaces, offering a standardized tool for AI-driven access to Hacker News data.

    • 35
    • MCP
    • pskill9/hn-server
  • MCP Manager for Claude Desktop

    MCP Manager for Claude Desktop

    A desktop app to manage Model Context Protocol (MCP) servers for Claude Desktop on MacOS.

    MCP Manager for Claude Desktop provides a user-friendly interface to manage Model Context Protocol (MCP) servers, enabling Claude to access private data, APIs, and local or remote services securely from a MacOS desktop. It facilitates rapid configuration and integration with a wide variety of MCP servers, including productivity tools, databases, and web APIs. The app runs locally to ensure data privacy and streamlines connecting Claude to new sources through simple environment and server settings management.

    • 270
    • MCP
    • zueai/mcp-manager
  • MCP RSS Aggregator

    MCP RSS Aggregator

    Fetch and read RSS feeds in Claude Desktop via Model Context Protocol.

    MCP RSS Aggregator enables Claude Desktop to access and display content from user-selected RSS feeds using the Model Context Protocol (MCP). It supports OPML and JSON formats for managing feed configurations, allowing users to import or customize their subscriptions easily. The tool organizes feeds by categories, filters content from different sources, and presents articles with well-formatted titles, snippets, and links. Integration with Claude Desktop allows seamless aggregation and delivery of real-time news content for users.

    • 16
    • MCP
    • imprvhub/mcp-rss-aggregator
  • Confluence Communication Server MCP Server

    Confluence Communication Server MCP Server

    Seamlessly interact with Confluence using standardized MCP tools.

    Confluence Communication Server MCP Server is a TypeScript-based implementation that enables seamless interaction with Confluence through the Model Context Protocol. It provides tools for running CQL queries, retrieving, and updating Confluence page content, thus showcasing and adhering to core MCP concepts. The server is compatible with Claude Desktop and supports installation via Smithery, emphasizing ease of integration and automation for Confluence management tasks.

    • 13
    • MCP
    • KS-GEN-AI/confluence-mcp-server
  • mcp-server-home-assistant

    mcp-server-home-assistant

    A Model Context Protocol Server integration for Home Assistant.

    Provides an MCP server interface for Home Assistant, enabling context sharing between Home Assistant and AI models through the Model Context Protocol. Allows users to connect Claude Desktop and similar tools to Home Assistant via a WebSocket API and secure API token. Facilitates seamless integration by leveraging a custom Home Assistant component that is migrating into Home Assistant Core. Enables access and manipulation of smart home context data in standardized ways.

    • 64
    • MCP
    • allenporter/mcp-server-home-assistant
  • HackMD MCP Server

    HackMD MCP Server

    MCP server connecting LLM clients to the HackMD collaborative note platform.

    HackMD MCP Server implements the Model Context Protocol (MCP) to provide a standardized interface between large language model (LLM) clients and the HackMD collaborative note service. Through HTTP and STDIO transports, it enables creation, retrieval, update, and deletion of notes, along with management of teams, user profiles, and history data. It supports deployment in both local and cloud environments, with secure API token-based authentication and configuration via environment variables or HTTP headers.

    • 43
    • MCP
    • yuna0x0/hackmd-mcp
  • Didn't find tool you were looking for?

    Be as detailed as possible for better results