Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
HN_MCP_HTTPNoRun as HTTP server instead of stdiofalse
HN_MCP_PORTNoHTTP server port3000
HN_MCP_NO_CACHENoDisable caching for real-time datafalse
HN_MCP_RATE_LIMITNoOverride rate limit (requests/minute)300

Tools

Functions exposed to the LLM to take actions

NameDescription
browse_stories

Browse Hacker News stories by type. Returns story list with scores, comments, and metadata.

search_hn

Search Hacker News stories and comments. Returns matching content with relevance scores.

get_story_details

Get a Hacker News story with its comments. Fetches full story content and comment threads.

user_analysis

Analyze a Hacker News user's profile, karma, and recent submissions.

hn_explain

Get explanations of Hacker News terms, culture, and conventions.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/karanb192/hn-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server