hacker-news-mcp-server

koki-develop/hacker-news-mcp-server

3.2

If you are the rightful owner of hacker-news-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

The Hacker News MCP Server connects the Hacker News API with AI assistants, enabling natural language interactions with tech news content.

Tools
  1. hn_get_item

    Retrieve a Hacker News item by its ID.

  2. hn_get_top_stories

    Get the current top stories on Hacker News.

  3. hn_get_new_stories

    Get the newest stories on Hacker News.

  4. hn_get_best_stories

    Get the best stories on Hacker News.

  5. hn_get_ask_stories

    Get the latest Ask HN stories.

  6. hn_get_show_stories

    Get the latest Show HN stories.

  7. hn_get_job_stories

    Get the latest job postings.

Hacker News MCP Server

Version Docker

A Model Context Protocol (MCP) server that connects the Hacker News API with AI assistants like Claude. This server enables AI assistants to fetch stories, comments, and other data from Hacker News, allowing you to explore and analyze the latest tech news through natural language conversations.

The Hacker News MCP server provides a bridge between AI assistants and the Hacker News platform, enabling seamless access to top stories, new posts, Ask HN discussions, Show HN projects, and job listings through conversational interfaces.

Table of Contents

Usage

To use this server with an MCP client, add the following configuration:

{
  "mcpServers": {
    "hacker-news": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/koki-develop/hacker-news-mcp-server:latest"
      ]
    }
  }
}

MCP Tools

Items

hn_get_item

Retrieve a Hacker News item (story, comment, job, poll, or poll option) by its ID.

Parameters:

ParameterTypeRequiredDescription
idnumberYesThe ID of the item to retrieve

Stories

hn_get_top_stories

Get the current top stories on Hacker News.

Parameters:

ParameterTypeRequiredDescription
limitnumberNoNumber of stories to retrieve (default: 30, max: 500)
hn_get_new_stories

Get the newest stories on Hacker News.

Parameters:

ParameterTypeRequiredDescription
limitnumberNoNumber of stories to retrieve (default: 30, max: 500)
hn_get_best_stories

Get the best stories on Hacker News.

Parameters:

ParameterTypeRequiredDescription
limitnumberNoNumber of stories to retrieve (default: 30, max: 500)
hn_get_ask_stories

Get the latest Ask HN stories.

Parameters:

ParameterTypeRequiredDescription
limitnumberNoNumber of stories to retrieve (default: 30, max: 200)
hn_get_show_stories

Get the latest Show HN stories.

Parameters:

ParameterTypeRequiredDescription
limitnumberNoNumber of stories to retrieve (default: 30, max: 200)
hn_get_job_stories

Get the latest job postings.

Parameters:

ParameterTypeRequiredDescription
limitnumberNoNumber of stories to retrieve (default: 30, max: 200)

License