get_top_stories

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

Get current top-ranked Hacker News stories. Returns titles, URLs, scores, comment counts, authors, and posting times.

Parameters

NameTypeRequiredDescription
countnumbernoNumber of top stories to return (default: 10)

Example call

Arguments

{
  "count": 10
}

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_top_stories","arguments":{"count":10}}}'

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('get_top_stories', {
  "count": 10
});

More examples

{
  "count": 30
}

Response shape

Always returns: count, stories

FieldTypeDescription
countnumberNumber of top stories returned
storiesarrayArray of top stories
Full JSON Schema
{
  "type": "object",
  "properties": {
    "count": {
      "type": "number",
      "description": "Number of top stories returned"
    },
    "stories": {
      "type": "array",
      "description": "Array of top stories",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "number",
            "description": "HN item ID"
          },
          "title": {
            "type": [
              "string",
              "null"
            ],
            "description": "Story title"
          },
          "url": {
            "type": [
              "string",
              "null"
            ],
            "description": "Story URL"
          },
          "by": {
            "type": [
              "string",
              "null"
            ],
            "description": "Author username"
          },
          "score": {
            "type": [
              "number",
              "null"
            ],
            "description": "Story score/points"
          },
          "descendants": {
            "type": [
              "number",
              "null"
            ],
            "description": "Number of comments"
          },
          "time": {
            "type": [
              "number",
              "null"
            ],
            "description": "Unix timestamp of story posting"
          }
        },
        "required": [
          "id"
        ]
      }
    }
  },
  "required": [
    "count",
    "stories"
  ]
}

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 May 9, 2026