Skip to main content
MCP server CX Codex

Hacker News — Claude Code MCP server: features and setup

Lets an AI agent fetch Hacker News stories, comments, and user profiles. Handy when you want to inspect site data from an agent session.

no license updated 2026-10-29

Open on GitHub

What Hacker News does

The server exposes four tools. getTopStories returns popular stories, getStory fetches one by ID, getStoryComments retrieves a story’s comments and replies, and getUser looks up a profile. You can set limit for the story list and maxDepth for comment replies.

Start it with Node.js using npm install followed by npm start, or build and run the supplied Docker image. Communication uses MCP over stdio, passing data through stdin/stdout rather than HTTP. That matters when configuring a client: this server does not provide an HTTP endpoint.

What it helps with

  • fetch popular Hacker News stories
  • retrieve a story by its ID
  • read replies to a story’s comments
  • look up a Hacker News user profile

Example prompts for the agent

  • Fetch popular Hacker News stories with getTopStories.
  • Get the Hacker News story with ID 123 using getStory.
  • Show comments for story 123 and look up user pg.

How to install Hacker News

Install

The MCP registry has no launch command for it: see the repository README

Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more

Questions about Hacker News

How do I install Hacker News in Claude Code?

From the project directory, run npm install, then start the server with npm start. It connects over MCP stdio.

What does Hacker News do?

It gives an agent tools to fetch popular stories, retrieve a story by ID, read its comments and replies, and look up user profiles.

Does the server use HTTP?

No. It communicates over MCP stdio, using stdin/stdout instead of an HTTP endpoint.

Similar MCP servers

All MCP servers for Agent setup: memory, context, orchestration →

Project sponsors

Companies that keep this analytics open