Skip to main content
Glama
Hacker News Companion MCP

Hacker News Companion MCP

by georgeck

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

鍛冶屋のバッジ

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

概要

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

Related MCP server: Hacker News MCP Server

特徴

  • 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"]
    }
  }

ライセンス

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

Available Tools

1 tool
get_hn_post_formatted_commentsB

Retrieves and formats comments from a Hacker News discussion post for summarization by an LLM. Use the hacker_news_summarization_user_prompt prompts to generate a summary.

Inputs: post_url (required). Returns: content, metadata

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 1 tool

    Disambiguation5/5

    With only one tool, there is no possibility of ambiguity or overlap between tools. The tool's purpose is clearly distinct as it is the sole tool available.

    Naming Consistency5/5

    Since there is only one tool, naming consistency is inherently perfect. The tool name follows a clear verb_noun pattern (get_hn_post_formatted_comments), which would be consistent if more tools existed.

    Tool Count2/5

    A single tool is too few for a server named 'Hacker News Companion MCP', which suggests broader functionality. The tool only handles comment retrieval and formatting, leaving obvious gaps like fetching posts, searching, or user interactions, making the scope feel incomplete.

    Completeness2/5

    The tool set is severely incomplete for a Hacker News companion. It only covers retrieving and formatting comments for summarization, missing core operations such as getting posts, listing top stories, or user management, which are essential for the domain.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Enables AI assistants to search, retrieve, and interact with HackerNews content including stories, comments, polls, and user information. Provides comprehensive access to all HackerNews API endpoints with 15 specialized tools for content discovery and analysis.
      15
      5
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to access Hacker News content through 9 comprehensive tools for fetching stories, comments, user profiles, and job postings. Supports flexible output formats, pagination, and various story categories (top, new, best, Ask HN, Show HN).
      -