Hacker News Companion MCP

by georgeck
Verified

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.

ハッカーニュースコンパニオンMCP

Claude を使用して Hacker News の議論を要約するためのモデル コンテキスト プロトコル (MCP)。

概要

このMCPは、Hacker Newsの議論を取得・処理し、クロードが高品質な要約を生成できる形式に整えます。コメントの階層構造とメタデータ(スコア、ダウン投票など)の両方を処理し、クロードが各コメントの相対的な重要性と関連性を理解するのに役立ちます。

特徴

  • Hacker NewsのURLまたは投稿IDを処理する
  • HNからコメント構造をダウンロードして分析する
  • コミュニティの関与に基づいてコメントにスコアを付ける
  • クロードの要約に最適化されたデータのフォーマット

インストール

Smithery経由でインストール

Smithery経由で Claude Desktop 用の Hacker News Companion を自動的にインストールするには:

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

手動インストール

  1. リポジトリをクローンします。
    git clone https://github.com/yourusername/hn-companion-mcp.git cd hn-companion-mcp
  2. 依存関係をインストールします:
    npm install

使用法

コマンドライン

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

例:

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

APIサーバー

サーバーを起動します。

npm start

リクエストする:

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

APIリファレンス

POST /api/summarize

リクエスト本文:

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

応答:

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

クロードとの統合

このMCPは、クロードが要約するためのデータを準備するために設計されています。ユーザーがクロードにHacker Newsの議論を要約するように依頼すると、クロードはこのMCPを呼び出してフォーマットされたデータを取得し、システムとユーザーの指示に基づいて要約を生成します。

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

ライセンス

マサチューセッツ工科大学

You must be authenticated.

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

Hacker News のディスカッションを取得して処理し、Claude が高品質の要約を生成できるように準備します。コメントの構造とメタデータを処理して、Claude がさまざまなコメントの相対的な重要性を理解できるようにします。

  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
          ID: rngu6hfthm