Hn MCP Server
概要
作者による説明(英語の原文)
Browse Hacker News feeds, threads, and user profiles with full-text search.
PopNx MCPの3つの柱
この3つを1つのスコアにまとめることはしません。意見、測定、人気はそれぞれ別のものだからです。
- 利用者の声iレビューはまだありませんレビューは今後のステップで、アカウント機能と一緒に始まります
- 私たちの基本チェックi3項目中3項目に合格公開情報からチェック。コードはまだスキャンしていません
- 利用状況iとても新しい↓ 260/週 · ★ –
できること
このサーバーのやさしい解説はまだ書いていません。以下はレジストリから読み取った事実です。
- 接続方法: パソコンでもクラウドでも
- トランスポート: stdio, Streamable HTTP
- カテゴリ: 検索・AIの記憶
インストール
使っているAIアプリを選んで、設定をコピーしてください。
インストールの前に
- 基本チェック:3項目中3項目に合格
- 作者のサーバーで動きます。あなたが頼んだ内容は、作者のサーバーを通ります。
- できること:4件(ツール) hn_get_stories, hn_get_thread, hn_get_user, hn_search_content
- 自分で入力するもの:
HN_CONCURRENCY_LIMIT,MCP_LOG_LEVEL
必要なもの
どのアプリを使っていますか?
上でアプリを選んでください。選んだアプリを覚えておくので、次からはボタンに「…にインストール」と表示されます。
ウェブ、デスクトップ、モバイルのClaudeで使えます:
- Settings → Connectors を開く
- Add custom connector を押す
- 下のアドレスを貼り付けて Add を押す
- サインインを求められたら、作者のサービスにサインインする
https://hn.caseyjhand.com/mcpまたは、パソコンで動かす
Claude Desktop → Settings → Developer → Edit Config を開き、claude_desktop_config.json にこれを貼り付けます
{
"mcpServers": {
"hn": {
"command": "npx",
"args": [
"-y",
"@cyanheads/hn-mcp-server"
],
"env": {
"HN_CONCURRENCY_LIMIT": "your-value",
"MCP_LOG_LEVEL": "your-value"
}
}
}
}ターミナルでこれを実行します
claude mcp add --transport http hn https://hn.caseyjhand.com/mcpまたは、パソコンで動かす
claude mcp add hn --env HN_CONCURRENCY_LIMIT=your-value --env MCP_LOG_LEVEL=your-value -- npx -y @cyanheads/hn-mcp-server動かす前に、空欄の値を入力してください。
または、設定を自分でコピーする
プロジェクトの .cursor/mcp.json、または ~/.cursor/mcp.json に貼り付けます
{
"mcpServers": {
"hn": {
"url": "https://hn.caseyjhand.com/mcp"
}
}
}または、パソコンで動かす
または、設定を自分でコピーする
プロジェクトの .cursor/mcp.json、または ~/.cursor/mcp.json に貼り付けます
{
"mcpServers": {
"hn": {
"command": "npx",
"args": [
"-y",
"@cyanheads/hn-mcp-server"
],
"env": {
"HN_CONCURRENCY_LIMIT": "your-value",
"MCP_LOG_LEVEL": "your-value"
}
}
}
}ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。
または、設定を自分でコピーする
プロジェクトの .vscode/mcp.json に貼り付けます
{
"servers": {
"hn": {
"type": "http",
"url": "https://hn.caseyjhand.com/mcp"
}
}
}または、パソコンで動かす
または、設定を自分でコピーする
プロジェクトの .vscode/mcp.json に貼り付けます
{
"servers": {
"hn": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@cyanheads/hn-mcp-server"
],
"env": {
"HN_CONCURRENCY_LIMIT": "your-value",
"MCP_LOG_LEVEL": "your-value"
}
}
}
}ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。
ChatGPTがつなげるのは、インターネット上のサーバーだけです:
- ウェブ版のChatGPTを開き → Settings → Connectors (Apps)
- Create または Add を押す(プランによっては、先に Advanced で Developer mode をオンにする必要があります)
- 下のアドレスを貼り付け、名前を付けて保存する
- サインインを求められたら、作者のサービスにサインインする
https://hn.caseyjhand.com/mcpメニューの名前は、プランや時期によって少し違うことがあります。
選んだアプリは、この端末のCookieに保存されます。アカウントは不要です。
自分で入力する値
HN_CONCURRENCY_LIMITenvMax concurrent HTTP requests for batch item fetches (integer, 1–50).MCP_LOG_LEVELenvSets the minimum log level for output (e.g., 'debug', 'info', 'warning').
この設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。
できること
ツールの名前と説明は、サーバーが2026年11月7日に返したそのままの内容です。書いたのは作者で、私たちではありません。プレーンテキストとして表示しています。
hn_get_storiesFetch stories from an HN feed (top, new, best, ask, show, jobs), with title, URL, score, author, and comment count for each story.
hn_get_threadGet an item and its comment tree as a threaded discussion, with child comments resolved recursively. Use depth 0 for an item-only lookup. A long thread comes back in pages: pass the returned nextCursor as cursor to continue.
hn_get_userGet an HN user profile with karma, about, and optionally their most recent submissions resolved into full items.
hn_search_contentSearch Hacker News stories, comments, polls, and jobs via Algolia — by keyword, by filters alone, or both. Filterable by content type, author, parent story, date range, and minimum points.
基本チェックi
誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月8日にチェック
- ✓ 合格
作者とリポジトリが一致
レジストリ名は、リポジトリを所有するGitHubアカウント cyanheads で確認済みです
- … 未チェック
今もメンテナンスされている
このリポジトリはまだGitHubから読み取っていません
- … 未チェック
ライセンスがある
このリポジトリはまだGitHubから読み取っていません
- ✓ 合格
エンドポイントが応答する
251ミリ秒で応答(HTTP 200)
- – 対象外
OAuthでサインイン
サインイン不要
- ✓ 合格
ツールの説明に隠れた指示がない
4件のツールの説明を読み、AIへの隠れた指示は見つかりませんでした
検索・AIの記憶のほかのサーバーとの比較i
- このカテゴリのほかの5692件のうち0%よりスターが多い
- このカテゴリのほかの5692件のうち79%より最近レジストリに公開
- 基本チェックの結果が、このカテゴリのほかの5692件のうち100%と同じかそれ以上
レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。
よくある質問
Hn MCP Serverは安全ですか?
当てはまる基本チェック3項目のうち3項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。
どんなキーやコードが必要ですか?
レジストリには必須のキーは載っていません。ただし、最初に使うときにサインインを求めるサーバーもあります。
パソコンで動きますか、それともクラウドですか?
どちらでも使えます。パソコンにインストールしても、クラウド版につないでもかまいません。
今もメンテナンスされていますか?
GitHubリポジトリの最終更新は–、最新バージョン(0.6.0)がレジストリに届いたのは11 日前です。
どのアプリで使えますか?
Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。URLでつながるので、リモートMCPサーバーに対応したアプリ(開発者モードのChatGPTなど)でも使えます。
代わりに使えるものは?
同じカテゴリには:Context7, Codebase Memory, Exa
代わりの候補
同じカテゴリで、ほかの作者が作ったサーバー。スターの多い順。
カードの見方:↓ 週あたりのダウンロードi★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i
Codebase Memory
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Exa
Connect AI agents to Exa for web search, content fetching, and multi-step research.
作者のREADME
READMEを開く
作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。
@cyanheads/hn-mcp-server Browse Hacker News feeds, threads, and user profiles with full-text search via MCP. STDIO or Streamable HTTP. 4 Tools
Public Hosted Server: https://hn.caseyjhand.com/mcp
Overview
Hacker News feeds, threads, and profiles. Browse ranked feeds, read full comment threads, look up users, and search stories, comments, polls, and jobs by keyword, author, date, or score.
Tools
| Tool | Description |
|---|---|
hn_get_stories | Fetch stories from an HN feed (top, new, best, ask, show, jobs), with title, URL, score, author, and comment count |
hn_get_thread | Get an item and its comment tree as a threaded discussion, with depth and comment-count controls and a cursor to page through long threads |
hn_get_user | Fetch a user profile with karma, about, and optionally a page of resolved submissions |
hn_search_content | Search stories, comments, polls, and jobs via Algolia by keyword, by filters alone, or both — type, author, parent story, date range, and minimum points |
Agent skill
| Skill | Description |
|---|---|
hn-guide | How to find a link's thread, search without Algolia's fuzzy matches, read large comment trees in full, and search what one user said. Served over MCP as skill://hn-guide/SKILL.md and shipped in the npm package |
Capability reference
hn_get_stories tool
- Six feed types:
top,new,best,ask,show,jobs;count(default 30) andoffsetfor pagination. One call serves at most 100 stories; acountup to 1,000 is served at 100, with anoticenaming the nextoffset - Returns id, type, title, url, domain, score, author, timestamp, comment count, and body text — each field omitted (not null) when HN doesn't provide it
- Enrichment reports
total,offset, andhasMore; while more stories remain,truncatedis set andnoticenames the nextoffset, and anoticeexplains empty pages (empty feed, offset past end, or every item on the page deleted/flagged). The last page carries no truncation - Items whose fetch failed after retries, or ran past the call's 50-second time budget, are listed in
failedIdswith anoticenaming the retry; a page where every item failed returns the classified upstream error instead of an empty list
hn_get_thread tool
itemIdplusdepth(default 3; 0 returns the item with no comments) andmaxComments(default 50) capping one response across all levels, alongside a fixed 64,000-byte budget on each response surface (allcontent[]text,nextCursorincluded, and thestructuredContentJSON) that cuts only between comments and always returns a page's first comment whole. One call resolves at most 10 levels and 200 comments; adepthup to 100 is served at 10 and amaxCommentsup to 1,000 at 200, with anoticenaming the comment to pass asitemIdor thenextCursorthat reaches the rest- Breadth-first traversal ranked like HN — top-ranked top-level comments resolve first, replies fill in only after the level above is exhausted
- Resumable: a response stopped by
maxComments, the byte budget, an upstream rate limit, or the call's 50-second time budget returnsnextCursor; passing it back ascursorwith the sameitemIdcontinues at the next unseen comment. The cursor carries the unvisited comments themselves, so re-ranked replies cannot shift it, and the server keeps no session state. A cursor the tool did not issue, an altered one, or one passed with a differentitemIdfails withinvalid_cursor - The root carries its relationships and state:
parentandstoryId(the story or poll the discussion belongs to) for a comment,pollfor a poll option,partsand resolvedoptions(text and votes, at every depth) for a poll, anddeleted/deadmarkers. Thecontent[]heading names the type — a title,Comment by,Poll option by on poll— and marks a deleted or dead root - Flat comment list carries
depth/parentIdfor tree reconstruction, pluschildCountand anisOpflag when the comment author submitted the thread's story — on a comment root, the story atstoryId, never the comment's own author. Dead and deleted comments are left out, but their live replies are still returned at their truedepth, withparentIdnaming the omitted comment truncatedandtruncationReason(count,size,rate_limited,time, ordepthwhen replies lie below the depth limit) are set only while comments remain unread — never on a terminal page, including a thread that loads in full at exactly the cap.noticereports deleted/dead comments omitted during traversal and the next step: the cursor, or a largerdepthor a comment id asitemId, naming by ID any omitted comment whose replies the depth limit cut- Comments and poll options whose fetch failed after retries or ran past the call's time budget are listed in
failedIds, andnoticenames them with the retry; failed comments ride innextCursor, so paging on retries them rather than skipping them. The root item is still returned, and a failure is never passed off as amaxComments/depthlimit
hn_get_user tool
usernameis case-sensitive and trimmed;includeSubmissions(default false) resolves recent submissions, withsubmissionCount(default 10) andsubmissionOffsetpaging through a long history. One call resolves at most 50 submissions; asubmissionCountup to 1,000 is served at 50, with anoticenaming the nextsubmissionOffset- Profile includes karma, creation date, and about text (HTML stripped); submissions filter out dead/deleted items
- A comment submission carries its
parentand a poll-option submission itspoll, so either links back to what it answered - Enrichment echoes
submissionOffsetand the offset to send next, or a notice when the requested offset is past the end of the history - Submissions whose fetch failed after retries, or that the call's 50-second time budget cut, are listed in
failedIdswith anoticenaming the retry (and the budget, when it cut them); a window where every submission failed returns the classified upstream error —Timeoutwhen the budget cut them all - Each response surface is held to a fixed 64,000-byte budget: an over-budget page keeps every submission and cuts the longest bodies to one shared length, flagging each with
textTruncatedand pointing tohn_get_threadfor the whole text
hn_search_content tool
- Free-text
query— typo-tolerant, with the last term also matching as a prefix; wrap a term in double quotes to match it exactly and put-before one to exclude it — plustags(story/comment/poll/job/ask_hn/show_hn/front_page),author(the exact, case-sensitive username),storyId,dateRange, andminPointsfilters;sortby relevance or date;count(default 30) andpagefor pagination. One call serves at most 50 hits; acountup to 1,000 is served as the page of 50 starting at the requested page's first hit, with anoticenaming thecount: 50page to pass next; a non-zeropagewhose first hit begins no page of 50 fails withcount_page_unaligned, naming acountandpagethat start there and, when that count is under 25, the page of 50 that holds that hit tags: "front_page"is the front page right now (about 30 stories), never past front pages; for an earlier window, usetags: "story"withdateRangeandminPointsqueryis optional when a filter is set — list Ask HN, Show HN, polls, or jobs on their own, or pass a story'sstoryIdwithtags: "comment"to search within one thread. No query and no filter fails withmissing_query_or_filter- To check whether a page was discussed, pass its URL alone as
query: the leadinghttp://,https://, orwww.is dropped before searching, so submissions under either scheme, with or withoutwww., all match. The outputqueryand the notice show what was searched dateRangebounds take ISO 8601 (YYYY,YYYY-MM,YYYY-MM-DD, or a date-time with optional offset), read as UTC and both exclusive; an empty or out-of-order range fails withinvalid_date_rangeminPointsapplies to stories and polls — comments and jobs carry no points, so pairing it withtags: "comment"or"job"fails withmin_points_unscored_typeview: "compact"drops the two body-text fields (text,highlights.text), which otherwise repeat a long comment twice per hit — pass a hit id tohn_get_threadto read the body. Infull, a page over 64,000 bytes per response surface dropshighlights.textfrom every hit (highlightsTextOmitted), then cuts the longest bodies to one shared length (textTruncated, with anhn_get_threadpointer) — every hit stays- Each hit carries its
type(story,comment,poll,pollopt,job) when Algolia records one. Untagged searches also return poll options, which carry only an id, author, vote count, and date —hn_get_threadreads an option's text and poll. A poll hit has nostoryId; its ownidis the discussion root - Job descriptions come back as
text, though keywords don't search them - Highlight metadata (
highlights.title,highlights.text,matchedWords) shows which terms matched and where;highlights.textis the matched body in full withmarkers - Enrichment echoes the applied
criteria— each filter set (authortrimmed,dateRangeas the exclusive UTC bounds applied, to the second), plussort,count, andviewwith defaults filled — so a saved result says what it answers - Enrichment reports
totalHits,page, and the actual reachabletotalPages— not derived fromtotalHits, since broad queries report far more hits than Algolia will serve.totalHitsExact: falsemarkstotalHitsas an estimate, andreachableHits: 1000marks a search that matches more than Alg
冒頭だけを表示しています。続きはリポジトリで読めます