Fetches stories from Hacker News based on type and limit parameters
A Model Context Protocol server that provides structured access to Hacker News content. This server parses HTML content from news.ycombinator.com and delivers organized data for different types of stories including top, new, ask, show, and jobs posts. It enables AI assistants to retrieve current tech news and discussions with metadata like points, authors, and comment counts.
git clone https://github.com/pskill9/hn-server
cd hn-server
npm install
npm run build
The server needs to be added to your AI assistant's MCP configuration. The exact location depends on your system:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
Once configured, you can interact with the Hacker News MCP server using natural language. Examples:
The server will fetch the requested stories and return them in a structured format with titles, URLs, points, authors, timestamps, and comment counts.
The server supports different types of Hacker News stories: