mcpField
H
Hacker News MCP Server

Hacker News MCP Server

ローカル
github.com/erithwikソーシャルメディア7667 週間前に更新

Hacker News MCP Server について

Hacker News MCP Server は、Hacker News から情報を取得する MCP サーバーで、ストーリー一覧、コメント、検索結果、ユーザー情報を扱います。アシスタントから Hacker News の内容を直接確認したい用途に向いています。README には他の MCP サーバーと組み合わせる例も掲載されています。

主な機能

  1. 01top、new、ask_hn、show_hn のストーリー取得
  2. 02ストーリーに付いたコメントの取得
  3. 03クエリによるストーリー検索
  4. 04ユーザー情報と投稿活動の確認

活用シーン

  1. 01当日の注目ストーリーをアシスタントに要約させる
  2. 02特定ストーリーのコメントを読んで要点をまとめる
  3. 03特定のテーマに関する Hacker News の議論を検索する

MCP 対応

本プロジェクトは MCP サーバーであり、get_stories、get_story_info、search_stories、get_user_info などのツールを MCP クライアントに公開します。

設定

ローカルサーバーの設定はどのクライアントでも共通です。コピーしてクライアントの MCP 設定ファイルに貼り付けてください。

mcp.json · 共通設定
{
"mcpServers": {
"hn": {
"command": "npx",
"args": [
"-y",
"@smithery/cli"
]
}
}
}
起動コマンドnpx -y @smithery/cli

ローカルサーバーにはマシン上の実行環境(Node.js 18 以上など)が必要です。設定ファイルの場所はクライアントごとに異なります。

パッケージ
npm@smithery/cli

ツール

ツール一覧はまだ取得されていません

ローカルサーバーのツールはマシン上で起動して初めて取得できます。メンテナーはまだツール一覧を提供していません。

詳細

Hacker News MCP サーバー

smithery badge

Hacker News から情報を取得するツールを提供する Model Context Protocol(MCP)サーバーです。

mcp-hn MCP サーバー

ツール

  • get_stories (トップ、新着、ask_hn、show_hn)のストーリーを取得
  • get_story_info ストーリーに関連するコメントを取得
  • search_stories クエリでストーリーを検索
  • get_user_info ユーザー情報を取得

使用例

次のようなプロンプトを使用します。

User: Get the top stories of today
  Output: Uses `get_stories` tool and returns a story about AI
User: What does the details of the story today that talks about the future of AI
  Output: Uses `get_story_info` tool based on the results of the previous tool
User: What has the user `pg` been up to?
  Output: Uses `get_user_info` tool and returns a summary of the user's activity
User: What does hackernews say about careers in AI?
  Output: Uses `search_stories` tool and returns a summary of the comments

puppeteer MCP サーバーを使った、より詳しい例です。

User: What are the top stories of today?
  Output: Uses `get_stories` tool and returns a story about AI
User: Can you use the puppeteer tool to read the article about <AI> and also use the hackernews tool to view the comments and give me a summary of what the main comments are about the article?
  Output: Uses puppeteer tool to read the article about AI and then uses the `get_story_info` hn tool to get the comments and returns a summary of the comments

クイックスタート

Smithery 経由でインストール

Smithery 経由で Hacker News MCP Server を Claude Desktop に自動的にインストールするには、次の手順に従います。

npx -y @smithery/cli install mcp-hn --client claude
Claude Desktop:

次のファイルを更新します。

MacOS の場合:~/Library/Application\ Support/Claude/claude_desktop_config.json

Windows の場合:%APPDATA%/Claude/claude_desktop_config.json

本番環境では、次の内容を使用します。

{
  "mcpServers": {
    "mcp-hn": {
      "command": "uvx",
      "args": ["mcp-hn"]
    }
  }
}

コメント

MCP は初めてですか?

プロトコルの概要から最初のサーバーの導入まで、よくある疑問にまとめて答えます。

AI アプリケーションが外部のツールやデータソースに統一的な方法で接続するためのオープンなプロトコルです。クライアントはモデルとの対話を担い、MCP サーバーはツール・リソース・プロンプトテンプレートを提供します。標準メッセージでやり取りするため、1 つのサーバーを複数のクライアントで再利用できます。