Command Palette

Search for a command to run...

UnylyUnyly
Весь каталог

Hacker News Companion

БесплатноНе проверен

Analyzes and processes Hacker News discussions, extracting key insights from comment hierarchies based on engagement metrics for efficient thread summarization.

GitHubEmbed

Описание

Analyzes and processes Hacker News discussions, extracting key insights from comment hierarchies based on engagement metrics for efficient thread summarization.

README

smithery badge

Hacker News Companion MCP server

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

from github.com/georgeck/hn-companion-mcp

Установка Hacker News Companion

У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.

▸ github.com/georgeck/hn-companion-mcp

FAQ

Hacker News Companion MCP бесплатный?

Да, Hacker News Companion MCP бесплатный — установка в пару кликов через Unyly без оплаты.

Нужен ли API-ключ для Hacker News Companion?

Нет, Hacker News Companion работает без API-ключей и переменных окружения.

Hacker News Companion — hosted или self-hosted?

Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.

Как установить Hacker News Companion в Claude Desktop, Claude Code или Cursor?

Открой Hacker News Companion на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.

Похожие MCP

Compare Hacker News Companion with

Не уверен что выбрать?

Найди свой стек за 60 секунд

Автор?

Embed-бейдж для README

Похожее

Все в категории development