Skip to main content
Glama

HackerNews MCP Server

by wei

get-latest-posts

Retrieve recent HackerNews posts sorted by date, with filtering by content type and pagination support for monitoring real-time activity.

Instructions

Retrieve the most recent HackerNews posts sorted by date.

Returns posts in chronological order (newest first), including all types of content unless filtered.

Supports:

  • Filter by content type using tags (story, comment, poll, show_hn, ask_hn, etc.)

  • Pagination to view older posts

  • Customizable results per page (default: 20)

  • Empty query to get all recent posts

Examples:

  • Get latest stories: { "tags": ["story"] }

  • Get latest comments: { "tags": ["comment"] }

  • Get all recent activity: { }

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

Use this to monitor real-time HackerNews activity or find the newest content.

Input Schema

NameRequiredDescriptionDefault
hitsPerPageNoResults per page (1-1000, default: 20)
pageNoPage number (0-indexed, default: 0)
tagsNoOptional filter tags (e.g., ['story'], ['comment'])

Input Schema (JSON Schema)

{ "properties": { "hitsPerPage": { "default": 20, "description": "Results per page (1-1000, default: 20)", "maximum": 1000, "minimum": 1, "type": "number" }, "page": { "default": 0, "description": "Page number (0-indexed, default: 0)", "type": "number" }, "tags": { "description": "Optional filter tags (e.g., ['story'], ['comment'])", "items": { "type": "string" }, "type": "array" } }, "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