Fetch and parse structured Hacker News stories by type with configurable limits via MCP.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent — or use 1-click editor setup below.
One-click editor setup isn’t available for this listing yet — we don’t have a confirmed install command, and we’d rather show nothing than point your editor at the wrong package or host. Follow the project’s own setup instructions, linked above.
Inspect callable tools, capabilities, and parameters exposed to AI agents by Hn Server.
typeCallable MCP tool function
limitCallable MCP tool function
A Model Context Protocol (MCP) server that provides tools for fetching stories from Hacker News. This server parses the HTML content from news.ycombinator.com and provides structured data for different types of stories (top, new, ask, show, jobs).
For VSCode Claude extension:
The server provides a tool called get_stories that can be used to fetch stories from Hacker News.
Parameters:
type (string): Type of stories to fetch
limit (number): Number of stories to return
Example usage:
Sample output:
To use this MCP server with Claude, you'll need to:
For the Claude desktop app, add the server configuration to:
For the VSCode Claude extension, add to:
Once configured, you can interact with Claude using natural language to fetch Hacker News stories. Examples:
Claude will automatically use the appropriate parameters to fetch the stories you want.

Each story object contains:
title (string): The story titleurl (string, optional): URL of the story (may be internal HN URL for text posts)points (number): Number of upvotesauthor (string): Username of the postertime (string): Timestamp of when the story was postedcommentCount (number): Number of commentsrank (number): Position in the listThe server is built using:
To modify the server:
src/index.tsThe server includes robust error handling for:
Errors are returned with appropriate error codes and descriptive messages.
Contributions are welcome! Please feel free to submit a Pull Request.
MIT License - feel free to use this in your own projects.
Factual signals from GitHub, npm, and our automated checks — not a rating.
No reviews yet — be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/pskill9-hn-server)<a href="https://allmcps.com/mcp/pskill9-hn-server"><img src="https://allmcps.com/api/badge/pskill9-hn-server?style=directory" alt="Hn Server on AllMCPs" /></a>