MCP

Hacker News MCP server

6 Hacker News tools for AI agents over one remote MCP server, pay per call.

Give Claude, Cursor, VS Code or any MCP client 6 Hacker News tools through one remote MCP server (streamable HTTP at https://getallapis.com/mcp). The agent discovers endpoints, gets a free quote, then runs them; each call is billed from your wallet at the endpoint's price.

Hacker News endpoints available as tools

endpointWhat it returnsPrice
hackernews.front_pageCurrent Hacker News front page, or the newest stories, Ask HN, Show HN and job posts, in one call.$0.0015/request
hackernews.profileA Hacker News user's karma, creation date, about text and recent submissions.$0.0015/request
hackernews.searchFull-text search of Hacker News stories and comments, by relevance or date.$0.0015/request
hackernews.storyOne Hacker News item (story, comment, job or poll) by id.$0.0015/request
hackernews.story_commentsThe full comment thread of a Hacker News story, flattened with depth.$0.0015/request
hackernews.user_submissionsStories and comments a Hacker News user posted, newest first.$0.0015/request

Connect

Claude Code

claude mcp add --transport http getallapis https://getallapis.com/mcp \
  --header "Authorization: Bearer $GETALLAPIS_API_KEY"

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "getallapis": {
      "url": "https://getallapis.com/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_API_KEY"
      }
    }
  }
}

VS Code (.vscode/mcp.json)

{
  "servers": {
    "getallapis": {
      "type": "http",
      "url": "https://getallapis.com/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_API_KEY"
      }
    }
  }
}

More clients: integrations.

Example tool call

JSON-RPC sent by the client

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "run_endpoint",
    "arguments": {
      "endpoint": "hackernews.front_page",
      "input": {
        "list": "front_page",
        "limit": 10
      }
    }
  }
}

Response: the same run envelope as the HTTP API (cost_usd, items, source, output). Full details: MCP docs.

Get an API key. New API keys come with $0.10 of free credit, no card required (limited to 2 keys per network every 30 days). That covers about 66 requests of hackernews.front_page. Then add credits (packs from $10). No subscription; failed calls are refunded.

Get a free API key Try it in the playground

FAQ

Is this an official Hacker News MCP server?

No. It is GetAllAPIs's MCP server; it calls Hacker News API + HN Search (Algolia) for you and bills your wallet per call.

Which tools does the agent see?

Discovery tools (list_endpoints, search_endpoints, get_endpoint, quote_endpoint), run_endpoint to call any endpoint, plus get_request and get_balance. The Hacker News endpoints are the ids in the table above.

Does it support OAuth?

Not yet. Send the API key in the Authorization: Bearer header. Discovery and quote tools work without a key.

How do I stop an agent from overspending?

Give the agent its own key with a spend limit, and pass max_cost_usd to run_endpoint; anything pricier is refused before it runs.