hn-server

hn-server

3.5

If you are the rightful owner of hn-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

A Model Context Protocol (MCP) server that provides tools for fetching stories from Hacker News, parsing HTML content to deliver structured data for various story types.

The Hacker News MCP Server is designed to fetch and provide structured data from Hacker News, a popular platform for tech news and discussions. It parses HTML content from news.ycombinator.com and offers structured data for different types of stories such as top, new, ask, show, and jobs. The server is built using TypeScript and leverages the Model Context Protocol SDK, Axios for HTTP requests, and Cheerio for HTML parsing. It features configurable limits on the number of stories returned and includes robust error handling and validation to ensure smooth operation. The server can be integrated with platforms like Claude, allowing users to interact with Hacker News through natural language commands.

Features

  • Fetch different types of stories (top, new, ask, show, jobs)
  • Get structured data including titles, URLs, points, authors, timestamps, and comment counts
  • Configurable limit on number of stories returned
  • Clean error handling and validation

Tools

  1. get_stories

    Tools for getting stories from Hacker News