Home / Servers / Public Knowledge / hacker_news_search

Hacker news search

An MCP tool from the Public Knowledge server, hosted on mcp.hjlabs.in.

Search Hacker News stories and comments (Algolia): title, URL, points, comment count, author, date and discussion link. Sort by relevance or date; filter to stories, comments, Ask HN or Show HN.

Name on the gateway: knowledge__hacker_news_search · read-only.

Parameters

NameTypeDescription
query requiredstringSearch words.
typestory | comment | ask_hn | show_hn | poll | allWhat to search. Default stories.
sortrelevance | dateRelevance (default) or newest first.
limitintegerResults (default 10, max 50).

How to call it

Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:

call_tool arguments
{
  "name": "knowledge__hacker_news_search",
  "arguments": {
    "query": "…"
  }
}

Or connect the Public Knowledge server directly, which lists 47 tools including this one:

Run in your terminal
claude mcp add --transport http hj-knowledge https://mcp.hjlabs.in/mcp/knowledge \
  --header "Authorization: Bearer YOUR_API_KEY"

Try asking

Use the hacker news search tool with query set to ….

More from Public Knowledge