Hacker News MCP Server
ハッカーニュース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ツール
searchAlgolia の検索 API を使用して Hacker News の記事やコメントを検索する
入力: *
query(文字列): 検索クエリ *type(オプションの文字列): タイプによるフィルタリング ('story' または 'comment') *page(オプションの数値): ページ区切りのページ番号 *hitsPerPage(オプションの数値): ページあたりの結果数 (最大 100)返されるもの: ストーリーとコメントを含む検索結果
getStories複数のストーリーをタイプ別に取得します(トップ、新着、ベスト、質問、ショー、求人)
入力: *
type(文字列): 取得するストーリーの種類 ('top', 'new', 'best', 'ask', 'show', 'job') *limit(オプションの数値): 取得するストーリーの数 (最大 100)戻り値: ストーリーオブジェクトの配列
getStoryWithCommentsストーリーとコメントスレッドを取得する
入力: *
id(数値): ストーリーID戻り値: ネストされたコメントを含むストーリーの詳細
getCommentTreeストーリーの完全なコメントツリーを取得する
入力: *
storyId(数値): ストーリーのID戻り値: 階層的なコメントツリー構造
getUserユーザーのプロフィール情報を取得する
入力: *
id(文字列): ユーザー名返されるもの: カルマ、作成日、自己紹介テキストを含むユーザープロフィールの詳細
getUserSubmissionsユーザーの投稿(ストーリーやコメント)を取得する
入力: *
id(文字列): ユーザー名戻り値: ユーザーが投稿したストーリーとコメントの配列
貢献
リポジトリをフォークする
機能ブランチを作成する
変更をコミットする
ブランチにプッシュする
新しいプルリクエストを作成する
ライセンス
このMCPサーバーはMITライセンスに基づいてライセンスされています。詳細はLICENSEファイルをご覧ください。
について
このMCPサーバーはdevabdultechによって構築および保守されています。公式Hacker News APIとAlgolia Search APIを使用し、モデルコンテキストプロトコル(MCP)を通じてHacker Newsデータへの包括的なアクセスを提供します。
Available Tools
9 toolsgetCommentA
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).
searchB
Search for stories and comments on Hacker News
Inputs: query (required), type, page, hitsPerPage.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 9 tools
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.
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.
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.
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
Related MCP Connectors
Browse Hacker News feeds, threads, and user profiles with full-text search.
Hacker News front page, search, threads and users. Demo by Sidetrip Connect. No API key.
Hacker News MCP — search and retrieve stories from Hacker News
Hacker News stories, search and Who is Hiring jobs via the official API. Runs on Apify.
Related MCP Servers
- AlicenseAqualityDmaintenanceA 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.58MIT
- AlicenseAqualityDmaintenanceA service that provides HackerNews content search, retrieval and analysis through the Model Context Protocol, suitable for AI agents and developers.51Apache 2.0
- AlicenseAqualityDmaintenanceEnables 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.4MIT
- AlicenseAqualityDmaintenanceProvides programmatic access to Hacker News content via the HN Algolia API. It enables AI assistants to search stories, retrieve comments, access user profiles, and explore the front page in real-time.9MIT