
paablolc/mcp-hacker-news
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
このMCPサーバーは、ClaudeやCursorなどのモデルコンテキストプロトコルをサポートする公式ハッカーニュースAPIとAI搭載ツール間のブリッジとして機能します.
概要
TypeScriptで構築されたハッカーニュース用のモデルコンテキストプロトコル(MCP)サーバー。 このMCPサーバーは、ClaudeやCursorなどのモデルコンテキストプロトコルをサポートする公式ハッカーニュースAPIとAI搭載ツール間のブリッジとして機能します。 これらのツールは、標準化されたMCPエンドポイントを使用して、ライブハッカーニュースデータ(投稿、コメント、ユーザー)と取得し、対話することができます。 Claudeデスクトップコンフィグ(claude desktop config.json)またはCursorコンフィグファイル(mcp.json)に追加します。 - 公式のハッカーニュースAPIと連携して投稿、コメント、ユーザー情報を取得します。 - Claude、Cursor、およびその他のLMベースのツールとのシームレスな統合のための標準モデルコンテキストプロトコルエンドポイントを公開します。 - 最新のハッカーニュースデータをAIと自動化ワークフローに備えています。 - Node.js が必要です。 - npm または pnpm をパッケージマネージャとして。 ⚠️Node.jsバージョンが不明な場合は、端末のnode --versionを実行してください。 v18.x.x 以上を必ず表示してください。 Nodeのアップグレード方法.
概要(AI 翻訳)
TypeScriptで構築されたハッカーニュース用のモデルコンテキストプロトコル(MCP)サーバー。
このMCPサーバーは、ClaudeやCursorなどのモデルコンテキストプロトコルをサポートする公式ハッカーニュースAPIとAI搭載ツール間のブリッジとして機能します。
これらのツールは、標準化されたMCPエンドポイントを使用して、ライブハッカーニュースデータ(投稿、コメント、ユーザー)と取得し、対話することができます。
Claude デスクトップまたはカーソルを使用して
Claudeデスクトップコンフィグ(claude_desktop_config.json])またはCursorコンフィグファイル([mcp.json])に追加します。
##特徴
- 公式のハッカーニュースAPIと連携して投稿、コメント、ユーザー情報を取得します。
- Claude、Cursor、およびその他のLMベースのツールとのシームレスな統合のための標準モデルコンテキストプロトコルエンドポイントを公開します。
- 最新のハッカーニュースデータをAIと自動化ワークフローに備えています。
要件
- Node.js バージョン18以上が必要です。
- npm または pnpm をパッケージマネージャとして。
⚠️Node.jsバージョンが不明な場合は、端末の[
node --versionを実行してください。 [v18.x.x以上の表示を確かめてください。 Node.jsのアップグレード方法
お問い合わせ
貢献したいですか? 以下の手順に従ってください
リポジトリをクローンし、依存関係をインストールします
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
mcp-hacker-news
A Model Context Protocol (MCP) server for Hacker News built with TypeScript.
This MCP server acts as a bridge between the official Hacker News API and AI-powered tools that support the Model Context Protocol, such as Claude and Cursor.
It enables these tools to fetch and interact with live Hacker News data (posts, comments, users) via standardized MCP endpoints.
Using with Claude Desktop or Cursor
Add to your Claude desktop config (claude_desktop_config.json) or your Cursor config file (mcp.json) :
{
"mcpServers": {
"mcp-hacker-news": {
"command": "npx",
"args": ["-y", "mcp-hacker-news"]
}
}
}

Features
- Integrates with the official Hacker News API to fetch posts, comments, and user information.
- Exposes standard Model Context Protocol endpoints for seamless integration with Claude, Cursor, and other LLM-based tools.
- Fetches the latest Hacker News data for AI and automation workflows.
Requirements
⚠️ If you are unsure about your Node.js version, run
node --versionin your terminal. Make sure it showsv18.x.xor higher.
How to upgrade Node.js
Want to contribute? Just follow the steps below
Clone the repository and install dependencies:
git clone https://github.com/paablolc/mcp-hacker-news.git
cd mcp-hacker-news
pnpm install
pnpm build
- To test the server with the MCP Inspector:
pnpm inspector
- or, if running from the source:
npx @modelcontextprotocol/inspector node dist/index.js

Resources
This MCP server exposes the following fixed resources, each corresponding to a core Hacker News endpoint:
| Resource URI | Description | Hacker News API Endpoint |
|---|---|---|
hackernews://top |
Top stories | /v0/topstories |
hackernews://new |
Newest stories | /v0/newstories |
hackernews://best |
Best (algorithmic) stories | /v0/beststories |
These three collections match the main list endpoints officially provided by the Hacker News API.
インストール
npx -y mcp-hacker-news設定
{
"mcpServers": {
"mcp-hacker-news": {
"command": "npx",
"args": ["-y", "mcp-hacker-news"]
}
}
}