Hackernews mcp

Hackernews mcp

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

6.7K

4 Tools

Packaged by
Add to Docker Desktop

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

About

Hackernews mcp 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?

Characteristics

AttributeDetails
Docker Imagemcp/hackernews-mcp
AuthorAayushBahukhandi
Repositoryhttps://github.com/AayushBahukhandi/hackernews-mcp
Dockerfilehttps://github.com/AayushBahukhandi/hackernews-mcp/blob/main/Dockerfile
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?

Manual installation

You can install the MCP server using:

Installation for

Related servers