getComment
Get a single comment by ID
Search Hacker News, pull a story together with its comment tree, and read a user's profile and submissions.
LABSCO SUMMARY
getStoryWithComments and getCommentTree are the reason to install this rather than fetch pages: the discussion arrives structured instead of as HTML someone has to unpick. Search runs against Algolia's index, so it reaches back through the archive rather than only what is on the front page today.
A server over the Hacker News API and Algolia's HN search, exposing stories, comments, users and search as nine tools.
Nothing — no account, no key. Runs under Node.
One command — npx -y @devabdultech/hn-mcp-server
USE CASES
Search for it, then pull the discussion under the story that matters as a structured tree.
Search stories and comments together, paging through more than the first handful of hits.
Fetch the top or new stories in one call and work from the list.
Pull the commenter's profile and their recent submissions before weighing what they said.
Counted once with only startup setup. Other versions, modes or optional credentials may expose a different list.
getCommentGet a single comment by ID
getCommentsGet comments for a story
getCommentTreeGet a comment tree for a story
getStoriesGet multiple stories by type (top, new, best, ask, show, job)
getStoryGet a single story by ID
getStoryWithCommentsGet a story with its comments
getUserGet a user profile by ID
getUserSubmissionsGet a user's submissions
searchSearch for stories and comments on Hacker News
BEFORE YOU INSTALL
9 tools when we connected.
npx on PATH
CONTEXT COST
Rated by the size of the 9 tool definitions that ride along on every turn, not by how many there are
INSTALLATION
Add the block to your client, or run the command directly.
{
"mcpServers": {
"hn-mcp-server": {
"command": "npx",
"args": [
"-y",
"@devabdultech/hn-mcp-server"
]
}
}
}npx -y @devabdultech/hn-mcp-server