Hacker News data API
9 endpoints for Hacker News: search, item, post comments, trending, profile, ask, show, jobs, new. One API key, one JSON schema, as MCP tools or REST.
Endpoints
Call any of them over MCP with call_endpoint and its path, or over REST.
| Endpoint | Returns | Credits | Cache |
|---|---|---|---|
| searchGET /v1/hackernews/search | Search Hacker News stories and comments, ranked by relevance. | 1 | 2 min |
| itemGET /v1/hackernews/item | One story or comment by id, with its score and comment count. | 1 | 10 min |
| post/commentsGET /v1/hackernews/post/comments | Comments on one Hacker News post, replies included. | 1 | 5 min |
| trendingGET /v1/hackernews/trending | Stories on the Hacker News front page. | 1 | 30 min |
| profileGET /v1/hackernews/profile | A Hacker News user by username: karma, about text, account creation date and how many items they submitted. | 1 | 15 min |
| askGET /v1/hackernews/ask | Ask Hacker News discussion posts, newest ranking first. | 1 | 2 min |
| showGET /v1/hackernews/show | Show Hacker News launch posts with their points and comment counts. | 1 | 2 min |
| jobsGET /v1/hackernews/jobs | Who is hiring posts on Hacker News, with the posting company in the title. | 1 | 2 min |
| newGET /v1/hackernews/new | Newest submissions on Hacker News, in submission order rather than by score. | 1 | 2 min |
Connect your agent over MCP
Remote MCP server: https://data.openkrill.app/mcp with your key in the x-api-key header.
claude mcp add --transport http krilldata \
https://data.openkrill.app/mcp \
--header "x-api-key: YOUR_API_KEY"{
"mcpServers": {
"krilldata": {
"url": "https://data.openkrill.app/mcp",
"headers": {
"x-api-key": "YOUR_API_KEY"
}
}
}
}{
"mcpServers": {
"krilldata": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://data.openkrill.app/mcp",
"--header",
"x-api-key:${API_KEY}"
],
"env": {
"API_KEY": "YOUR_API_KEY"
}
}
}
}