Skip to main content
Prerequisites Before you begin, create an account and get your API Key.

Getting started

Connect to Hacker News to fetch stories, user profiles, and analyze technology news through AI agents.
  • API
  • UI
  • Open Source
1

Install the SDKs (optional)

pip install klavis
2

Create a Strata MCP Server with Hacker News

from klavis import Klavis
from klavis.types import McpServerName

klavis_client = Klavis(api_key="YOUR_API_KEY")

# Create a Strata MCP server with Hacker News
response = klavis_client.mcp_server.create_strata_server(
    servers=[McpServerName.HACKER_NEWS],
    user_id="user123"
)

API Reference

Full Strata API endpoints
🎉 Your Hacker News MCP Server is ready! You can now use your MCP server URL with any MCP-compatible client.

Available Tools

Tool NameDescription
hackerNews_itemFetches a single Hacker News item by its unique ID
hackerNews_userRetrieves a Hacker News user’s profile by their username
hackerNews_topstoriesFetches a list of the current top stories
hackerNews_beststoriesFetches a list of the all-time best stories
hackerNews_newstoriesFetches a list of the most recent stories
hackerNews_showstoriesFetches a list of the latest “Show HN” stories
hackerNews_askstoriesFetches a list of the latest “Ask HN” stories
hackerNews_jobstoriesFetches a list of the latest job postings
hackerNews_updatesFetches recent updates, including new items and changed profiles
For more details about tool input schema, use the get_tools API.

Next Steps

I