Skip to main content
Glama
Hacker News MCP Server

Hacker News MCP Server

by devabdultech

ハッカーニュースMCPサーバー

鍛冶屋のバッジ公式Hacker News MCPサーバー - Cursor、Claude、その他LLMクライアントに強力なHacker News統合機能を追加します。モデルコンテキストプロトコル(MCP)を介して、記事、コメント、ユーザープロフィール、検索機能にアクセスできます。

特徴

  • Algolia の HN 検索 API を使用してストーリーとコメントを検索します

  • ストーリーをタイプ別に取得する(トップ、新着、ベスト、質問、ショー、求人)

  • コメント付きの個別のストーリーを入手する

  • コメントツリーとユーザーディスカッションを取得する

  • ユーザーのプロフィールと投稿を取得する

  • Hacker Newsデータへのリアルタイムアクセス

Related MCP server: HackerNews-Search

設定

Claude Desktopで実行中

これをclaude_desktop_config.jsonに追加します:

{
  "mcpServers": {
    "hackernews": {
      "command": "npx",
      "args": ["-y", "@devabdultech/hn-mcp-server"]
    }
  }
}

Smithery経由でインストール

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

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

ツール

  1. search

    • Algolia の検索 API を使用して Hacker News の記事やコメントを検索する

    • 入力: * query (文字列): 検索クエリ * type (オプションの文字列): タイプによるフィルタリング ('story' または 'comment') * page (オプションの数値): ページ区切りのページ番号 * hitsPerPage (オプションの数値): ページあたりの結果数 (最大 100)

    • 返されるもの: ストーリーとコメントを含む検索結果

  2. getStories

    • 複数のストーリーをタイプ別に取得します(トップ、新着、ベスト、質問、ショー、求人)

    • 入力: * type (文字列): 取得するストーリーの種類 ('top', 'new', 'best', 'ask', 'show', 'job') * limit (オプションの数値): 取得するストーリーの数 (最大 100)

    • 戻り値: ストーリーオブジェクトの配列

  3. getStoryWithComments

    • ストーリーとコメントスレッドを取得する

    • 入力: * id (数値): ストーリーID

    • 戻り値: ネストされたコメントを含むストーリーの詳細

  4. getCommentTree

    • ストーリーの完全なコメントツリーを取得する

    • 入力: * storyId (数値): ストーリーのID

    • 戻り値: 階層的なコメントツリー構造

  5. getUser

    • ユーザーのプロフィール情報を取得する

    • 入力: * id (文字列): ユーザー名

    • 返されるもの: カルマ、作成日、自己紹介テキストを含むユーザープロフィールの詳細

  6. getUserSubmissions

    • ユーザーの投稿(ストーリーやコメント)を取得する

    • 入力: * id (文字列): ユーザー名

    • 戻り値: ユーザーが投稿したストーリーとコメントの配列

貢献

  1. リポジトリをフォークする

  2. 機能ブランチを作成する

  3. 変更をコミットする

  4. ブランチにプッシュする

  5. 新しいプルリクエストを作成する

ライセンス

このMCPサーバーはMITライセンスに基づいてライセンスされています。詳細はLICENSEファイルをご覧ください。

について

このMCPサーバーはdevabdultechによって構築および保守されています。公式Hacker News APIとAlgolia Search APIを使用し、モデルコンテキストプロトコル(MCP)を通じてHacker Newsデータへの包括的なアクセスを提供します。

Available Tools

9 tools
getCommentA

Get a single comment by ID

Inputs: id (required).

getCommentsC

Get comments for a story

Inputs: storyId (required), limit.

getCommentTreeC

Get a comment tree for a story

Inputs: storyId (required).

getStoriesA

Get multiple stories by type (top, new, best, ask, show, job)

Inputs: type (required), limit.

getStoryA

Get a single story by ID

Inputs: id (required).

getStoryWithCommentsB

Get a story with its comments

Inputs: id (required).

getUserA

Get a user profile by ID

Inputs: id (required).

getUserSubmissionsC

Get a user's submissions

Inputs: id (required).

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    B3.2/5.0

    Scored across 9 tools

    Disambiguation4/5

    Most tools have distinct purposes, but there is some overlap between getComments, getCommentTree, and getStoryWithComments, which all retrieve comments for stories in slightly different formats. This could cause confusion for an agent about which to use for a given scenario, though the descriptions clarify the differences.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern with camelCase (e.g., getComment, getStories, search). The naming is predictable and readable throughout the set, with no deviations in style or convention.

    Tool Count5/5

    With 9 tools, this server is well-scoped for interacting with Hacker News, covering core resources like stories, comments, and users. Each tool has a clear role, and the count is neither too sparse nor bloated for the domain.

    Completeness4/5

    The toolset provides comprehensive read-only coverage for Hacker News, including stories, comments, users, and search. However, it lacks write operations (e.g., posting stories or comments), which might be expected for a full API but are not essential for basic interaction, leaving a minor gap.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      A server that enables AI assistants to access, analyze, and understand HackerNews content through standardized Model Context Protocol interfaces, providing tools for searching posts, analyzing users, and tracking trending topics.
      5
      8
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      A service that provides HackerNews content search, retrieval and analysis through the Model Context Protocol, suitable for AI agents and developers.
      5
      1
      Apache 2.0
    • A
      license
      A
      quality
      D
      maintenance
      Enables AI agents and developers to search, retrieve, and analyze HackerNews content including advanced post search, front page access, full comment trees, and user profile lookups through the Model Context Protocol.
      4
      MIT