# pskill9/hn-server [Health: Active]

**Category:** 🔎 Search & Data Extraction  
**Repository:** https://github.com/pskill9/hn-server  
**GitHub Stars:** 40  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/pskill9-hn-server

## Description
Parses the HTML content from news.ycombinator.com (Hacker News) and provides structured data for different types of stories (top, new, ask, show, jobs).

## Tools
Capabilities this server exposes over MCP:

- **type**
- **limit**

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/pskill9/hn-server), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Install:

```sh
git clone https://github.com/pskill9/hn-server
```

2. Install:

```sh
cd hn-server
```

3. Install:

```sh
npm install
```

4. Run:

```sh
npm run build
```

## Documentation

## What pskill9/hn-server MCP server does

pskill9/hn-server MCP server retrieves story listings from Hacker News at `news.ycombinator.com` and converts the page HTML into structured records. It covers five Hacker News sections: top stories, newest stories, Ask HN, Show HN, and jobs.

Each returned record can include the story title, destination URL, point total, submitting username, posting timestamp, comment count, and list rank. For text-based Hacker News posts, the URL may point to the corresponding internal Hacker News page rather than an external site.

This is useful for assistants that need to summarize current Hacker News activity, compare story categories, find recent discussions, or inspect job listings through an MCP-compatible client.

## How it works

The server exposes one MCP tool named `get_stories`. The tool requests the selected Hacker News page, parses its HTML, and returns an array of story objects.

The `type` argument selects the listing and accepts `top`, `new`, `ask`, `show`, or `jobs`. It defaults to `top`. The `limit` argument controls how many records are returned, accepts values from 1 through 30, and defaults to 10.

pskill9/hn-server MCP server performs validation for unsupported story types and invalid parameter values. It also reports network and HTML parsing failures with error codes and descriptive messages.

## Setup and configuration

Clone the repository, install its npm dependencies, and build the TypeScript project:

```bash
git clone https://github.com/pskill9/hn-server
cd hn-server
npm install
npm run build
```

Run the generated server with Node using the built entry point at `build/index.js`. Add an MCP server entry whose `command` is `node` and whose argument is the absolute path to that file. The README provides configuration examples for both the Claude desktop application and the VSCode Claude extension.

The project does not document required environment variables. Its development stack includes TypeScript, the Model Context Protocol SDK, Axios for HTTP requests, and Cheerio for HTML parsing.

## Tools and capabilities

- Call `get_stories` to retrieve one Hacker News listing.
- Select `top`, `new`, `ask`, `show`, or `jobs` stories.
- Set the number of results between 1 and 30.
- Receive structured fields for titles, URLs, points, authors, times, comments, and ranks.
- Use the server through Claude desktop or the VSCode Claude extension with the documented stdio configuration.

## Limitations and notes

The server reads and parses the public Hacker News HTML pages, so results depend on network access and the page structure being available. The material does not describe authentication, pagination beyond the requested limit, filtering by keyword, or access to comments and story details beyond the fields returned in each listing.

Only one tool is documented. The supported categories are fixed to the five accepted `type` values, and the result count cannot exceed 30 per request. The repository is licensed under MIT.

_Full upstream README: https://allmcps.com/mcp/pskill9-hn-server/readme_

