# Hacker News

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

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI
- Author: aayushbahukhandi
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/aayushbahukhandi/hackernews-mcp
- Updated: 2026-10-29
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/mcp/hacker-news

## What it 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.

## Requirements
- Needs: Docker

## Install

### Claude Code (native platform)

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

## When to use it
- 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
- 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`.

## Similar
- [hacker-news-strategy](https://affpapa.org/en/nevibecode/skills/hacker-news-strategy.md) — skill · ★ 88 repo stars
- [News MCP — AP, BBC, NPR, HN, Google News Aggregator](https://affpapa.org/en/nevibecode/mcp/news-mcp-ap-bbc-npr-hn-google-news-aggregator.md) — MCP server · 9748 installs
- [news-aggregator-skill](https://affpapa.org/en/nevibecode/skills/news-aggregator-skill.md) — skill · 6000 installs
- [indie-hacker-strategy](https://affpapa.org/en/nevibecode/skills/indie-hacker-strategy.md) — skill · 1300 installs
- [hackernews](https://affpapa.org/en/nevibecode/skills/hackernews.md) — skill · 3200 installs
- [the-news](https://affpapa.org/en/nevibecode/skills/the-news.md) — skill · 17300 installs

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
