KosmoKrator

data

Hacker News MCP, CLI, and Lua Integration for AI Agents

Hacker News integration docs for AI agents: MCP gateway setup, Hacker News CLI commands, Lua API reference, credentials, and function schemas.

Hacker News for agents

No credentials required; available in web and CLI hosts when runtime dependencies are installed.

Use this integration from Lua code mode, the headless integrations CLI, or the KosmoKrator MCP gateway. The same package metadata powers all three surfaces.

Agent Surfaces

Machine-Readable Metadata

Function Catalog

FunctionTypeParametersDescription
hackernews.hackernews_get_item Read read 1 Fetch a Hacker News item (story, comment, job, poll, or poll option) by its numeric ID. Returns all available fields: title, URL, text, author (by), score, time, descendants, and kids (child comment IDs). Use this to look up any HN item when you know its ID.
hackernews.hackernews_get_user Read read 1 Fetch a Hacker News user profile by username. Returns karma score, about text, account creation date, and lists of submitted item IDs (submissions) and comment IDs.
hackernews.hackernews_get_max_item Read read 0 Fetch the current largest Hacker News item ID. Useful for walking backward through all public HN items.
hackernews.hackernews_get_updates Read read 0 Fetch recently changed Hacker News item IDs and user profile IDs from the official updates endpoint.
hackernews.hackernews_list_top_stories Read read 1 Fetch the current top stories from Hacker News. Returns up to N stories with full item data (title, URL, score, author, comment count). The "top" list is ranked by the HN algorithm (a combination of score, recency, and flags).
hackernews.hackernews_list_new_stories Read read 1 Fetch the newest stories from Hacker News. Returns up to N stories with full item data (title, URL, score, author, comment count). These are the most recently submitted stories, not yet ranked by the HN algorithm.
hackernews.hackernews_list_best_stories Read read 1 Fetch the highest-scoring (best) stories from Hacker News. Returns up to N stories with full item data (title, URL, score, author, comment count). These are the stories with the highest scores, regardless of age.
hackernews.hackernews_list_ask_stories Read read 1 Fetch the latest Ask HN stories. Returns up to N Ask HN items with title, text, author, score, time, and comment count.
hackernews.hackernews_list_show_stories Read read 1 Fetch the latest Show HN stories. Returns up to N Show HN items with title, URL, author, score, time, and comment count.
hackernews.hackernews_list_job_stories Read read 1 Fetch the latest Hacker News job stories. Returns up to N job items with title, URL/text, author, score, and time.