Hacker News
live NewsSearch stories, get top stories, and retrieve items from Hacker News via Algolia and Firebase APIs
3 tools
0ms auth
free tier 50 calls/day
Tools
search_hn
required: query Search Hacker News stories via Algolia
Parameters
Name Type Description
query req string Search query tags opt string Content type: story, comment, ask_hn, show_hn per_page opt number Results to return (default 10) Try it
Response
get_top_stories Get the current top stories from Hacker News
Parameters
Name Type Description
count opt number Number of stories (default 10) Try it
Response
get_item
required: id Get a single HN item (story or comment) by ID
Parameters
Name Type Description
id req number Hacker News item ID Try it
Response
Test with curl
The gateway speaks JSON-RPC 2.0 over HTTP POST. You can test any pack directly from the terminal.
List available tools
bash
curl -X POST https://gateway.pipeworx.io/hackernews/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}' Call a tool
bash
curl -X POST https://gateway.pipeworx.io/hackernews/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"search_hn","arguments":{"query": "hello"}}}' Use with the SDK
Install @pipeworx/sdk to call tools from any TypeScript/Node project.
TypeScript
import { Pipeworx } from '@pipeworx/sdk';
const px = new Pipeworx();
const result = await px.call("search_hn", {"query":"example"}); ask_pipeworx
// Or ask in plain English:
const answer = await px.ask("search stories, get top stories, and retrieve items from hacker news via algolia and firebase apis"); Related packs
Other Pipeworx packs in the same categories (News):