Hacker News MCP Server について
Hacker News MCP Server は、Hacker News から情報を取得する MCP サーバーで、ストーリー一覧、コメント、検索結果、ユーザー情報を扱います。アシスタントから Hacker News の内容を直接確認したい用途に向いています。README には他の MCP サーバーと組み合わせる例も掲載されています。
主な機能
- 01top、new、ask_hn、show_hn のストーリー取得
- 02ストーリーに付いたコメントの取得
- 03クエリによるストーリー検索
- 04ユーザー情報と投稿活動の確認
活用シーン
- 01当日の注目ストーリーをアシスタントに要約させる
- 02特定ストーリーのコメントを読んで要点をまとめる
- 03特定のテーマに関する Hacker News の議論を検索する
MCP 対応
本プロジェクトは MCP サーバーであり、get_stories、get_story_info、search_stories、get_user_info などのツールを MCP クライアントに公開します。
設定
ローカルサーバーの設定はどのクライアントでも共通です。コピーしてクライアントの MCP 設定ファイルに貼り付けてください。
ツール
ローカルサーバーのツールはマシン上で起動して初めて取得できます。メンテナーはまだツール一覧を提供していません。
詳細
Hacker News MCP サーバー
Hacker News から情報を取得するツールを提供する Model Context Protocol(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"]
}
}
}
コメント
AI アプリケーションが外部のツールやデータソースに統一的な方法で接続するためのオープンなプロトコルです。クライアントはモデルとの対話を担い、MCP サーバーはツール・リソース・プロンプトテンプレートを提供します。標準メッセージでやり取りするため、1 つのサーバーを複数のクライアントで再利用できます。