Skip to main content
Glama

HackerNews MCP Server

by wei

get-front-page

Retrieve current HackerNews front page posts sorted by popularity ranking. Supports pagination and customizable results per page to access trending stories.

Instructions

Retrieve posts currently on the HackerNews front page.

Returns stories sorted by HackerNews ranking algorithm. The front page typically contains the most popular and trending stories.

Supports:

  • Pagination to view beyond the first page

  • Customizable results per page (default: 30)

  • All posts are tagged with 'front_page'

Examples:

  • Get first page: { }

  • Get with custom page size: { "hitsPerPage": 50 }

  • Get second page: { "page": 1 }

Returns the same structure as search results with hits, pagination info, and metadata.

Input Schema

NameRequiredDescriptionDefault
hitsPerPageNoResults per page (1-1000, default: 30)
pageNoPage number (0-indexed, default: 0)

Input Schema (JSON Schema)

{ "properties": { "hitsPerPage": { "default": 30, "description": "Results per page (1-1000, default: 30)", "maximum": 1000, "minimum": 1, "type": "number" }, "page": { "default": 0, "description": "Page number (0-indexed, default: 0)", "type": "number" } }, "type": "object" }

Other Tools from HackerNews MCP Server

Related Tools

    MCP directory API

    We provide all the information about MCP servers via our MCP API.

    curl -X GET 'https://glama.ai/api/mcp/v1/servers/wei/hn-mcp-server'

    If you have feedback or need assistance with the MCP directory API, please join our Discord server