get_hn_comments

Pack: hackernews · Endpoint: https://gateway.pipeworx.io/hackernews/mcp

Fetch the discussion (top-level comments, actual text) on a Hacker News story by its item ID. PREFER OVER WEB SEARCH for “what are people saying about ”, “HN discussion / developer sentiment on X”. get_item returns only comment IDs; this resolves them to text. Find a story ID via get_top_stories or search_hn. Returns each top comment author, text, time, and reply count.

Parameters

NameTypeRequiredDescription
idnumberyesHN story item ID (e.g. 42153809).
limitnumbernoTop-level comments to return (1-50, default 15).

Example call

Arguments

{
  "id": 42153809
}

curl

curl -X POST https://gateway.pipeworx.io/hackernews/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_hn_comments","arguments":{"id":42153809}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('get_hn_comments', {
  "id": 42153809
});

More examples

{
  "id": 42153809,
  "limit": 25
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "hackernews": {
      "url": "https://gateway.pipeworx.io/hackernews/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build August 8, 2026