Hacker News Companion MCP

Hacker News Companion MCP

A Model Context Protocol (MCP) for summarizing Hacker News discussions using Claude.

Overview

This MCP fetches and processes Hacker News discussions, preparing them in a format that Claude can use to generate high-quality summaries. It handles both the hierarchical structure of comments and their metadata (scores, downvotes, etc.) to help Claude understand the relative importance and relationships of different comments.

Features

  • Process Hacker News URLs or post IDs
  • Download and analyze comment structure from HN
  • Score comments based on community engagement
  • Format data optimized for Claude's summarization

Installation

Installing via Smithery

To install Hacker News Companion for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @georgeck/hn-companion-mcp --client claude

Manual Installation

  1. Clone the repository:
    git clone https://github.com/yourusername/hn-companion-mcp.git cd hn-companion-mcp
  2. Install dependencies:
    npm install

Usage

CLI

node index.js <post-id-or-url>

Example:

node index.js 43448075 # or node index.js https://news.ycombinator.com/item?id=43448075

API Server

Start the server:

npm start

Make a request:

curl -X POST http://localhost:3000/api/summarize \ -H "Content-Type: application/json" \ -d '{"input": "https://news.ycombinator.com/item?id=43448075"}'

API Reference

POST /api/summarize

Request body:

{ "input": "https://news.ycombinator.com/item?id=43448075" }

Response:

{ "status": "success", "data": { "systemPrompt": "...", "userPrompt": "...", "commentPathIdMapping": { ... }, "postTitle": "...", "postId": "...", "commentCount": 123 } }

Integration with Claude

This MCP is designed to prepare data for Claude to summarize. When a user asks Claude to summarize a Hacker News discussion, Claude can call this MCP to get the formatted data and then generate a summary based on the provided system and user prompts.

"hn-companion": { "command": "node", "args": ["<full path to src>/hn-companion-mcp/server.js"] } }

License

MIT

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Fetches and processes Hacker News discussions to prepare them for Claude to generate high-quality summaries, handling comment structure and metadata to help Claude understand the relative importance of different comments.

  1. Overview
    1. Features
      1. Installation
        1. Installing via Smithery
        2. Manual Installation
      2. Usage
        1. CLI
        2. API Server
      3. API Reference
        1. POST /api/summarize
      4. Integration with Claude
        1. License

          Related MCP Servers

          • A
            security
            A
            license
            A
            quality
            Parses the HTML content from news.ycombinator.com (Hacker News) and provides structured data for different types of stories (top, new, ask, show, jobs).
            Last updated -
            1
            15
            JavaScript
            MIT License
            • Apple
          • -
            security
            A
            license
            -
            quality
            A Model Context Protocol server that enables AI assistants like Claude to browse and analyze Reddit content, including searching subreddits, retrieving post details with comments, and viewing trending posts.
            Last updated -
            1
            Python
            MIT License
            • Apple
          • A
            security
            A
            license
            A
            quality
            Adds powerful Hacker News integration to LLM clients, allowing users to access stories, comments, user profiles, and search functionality through the Model Context Protocol.
            Last updated -
            9
            25
            4
            JavaScript
            MIT License
          • -
            security
            F
            license
            -
            quality
            Allows developers to query security findings (SAST issues, secrets, patches) using natural language within AI-assisted tools like Claude Desktop, Cursor, and other MCP-compatible environments.
            Last updated -
            1
            Python
            • Linux
            • Apple

          View all related MCP servers

          ID: rngu6hfthm