Hn MCP Server

MCP Server for using the Hacker News API

Local serverstdio

What is the Hn MCP Server?

MCP Server for using the Hacker News API

What the server does

Official Hacker News MCP Server - Adds powerful Hacker News integration to Cursor, Claude, and any other LLM clients. Access stories, comments, user profiles, and search functionality through the Model Context Protocol.

This MCP server is built and maintained by devabdultech. It uses the official Hacker News API and Algolia Search API to provide comprehensive access to Hacker News data through the Model Context Protocol.

  • Search stories and comments using Algolia's HN Search API
  • Get stories by type (top, new, best, ask, show, job)
  • Get individual stories with comments
  • Get comment trees and user discussions
  • Get user profiles and submissions
  • Real-time access to Hacker News data

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

How to install the Hn MCP Server

{
  "mcpServers": {
    "hackernews": {
      "command": "npx",
      "args": ["-y", "@devabdultech/hn-mcp-server"]
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Example prompts to try

  • “Use Hn MCP to Inputs.”
  • “Use Hn MCP to Returns.”
  • “Use Hn MCP to Contributing.”

Frequently asked questions

MCP Server for using the Hacker News API Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.