Hacker News

Hacker News

A Model Context Protocol (MCP) server that provides access to Hacker News stories, comments, and user data, with support for search and content retrieval.

50K+

4 Tools

Packaged by
Add to Docker Desktop

Version 4.43 or later needs to be installed to add the server automatically

About

Hacker News MCP Server

A Model Context Protocol (MCP) server that provides access to Hacker News stories, comments, and user data, with support for search and content retrieval.

What is an MCP Server?⁠

MCP Info

Image Building Info

AttributeDetails
Dockerfilehttps://github.com/AayushBahukhandi/hackernews-mcp/blob/b3d01052c2bc1f01d890b4e5d0d22a55fe5dadcd/Dockerfile⁠
Commitb3d01052c2bc1f01d890b4e5d0d22a55fe5dadcd
Docker Image built byDocker Inc.
Docker Scout Health ScoreDocker Scout Health Score
Verify SignatureCOSIGN_REPOSITORY=mcp/signatures cosign verify mcp/hackernews-mcp --key https://raw.githubusercontent.com/docker/keyring/refs/heads/main/public/mcp/latest.pub
Licence

Available Tools (4)

Tools provided by this ServerShort Description
get_storiesGet stories from Hacker News.
get_story_infoGet detailed story info from Hacker News, including the comments
get_user_infoGet user info from Hacker News, including the stories they've submitted
search_storiesSearch stories from Hacker News.

Tools Details

Tool: get_stories

Get stories from Hacker News. The options are top, new, ask_hn, show_hn for types of stories. This doesn't include the comments. Use get_story_info to get the comments.

ParametersTypeDescription
num_storiesintegeroptionalNumber of stories to get
story_typestringoptionalType of stories to get, one of: top, new, ask_hn, show_hn

Tool: get_story_info

Get detailed story info from Hacker News, including the comments

ParametersTypeDescription
story_idintegerStory ID

Tool: get_user_info

Get user info from Hacker News, including the stories they've submitted

ParametersTypeDescription
user_namestringUsername of the user
num_storiesintegeroptionalNumber of stories to get, defaults to 10

Tool: search_stories

Search stories from Hacker News. It is generally recommended to use simpler queries to get a broader set of results (less than 5 words). Very targeted queries may not return any results.

ParametersTypeDescription
querystringSearch query
num_resultsintegeroptionalNumber of results to get
search_by_datebooleanoptionalSearch by date, defaults to false. If this is false, then we search by relevance, then points, then number of comments.

Use this MCP Server

{
  "mcpServers": {
    "mcp-hackernews": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "mcp/hackernews-mcp"
      ]
    }
  }
}

Why is it safer to run MCP Servers with Docker?⁠