Skip to main content
Glama

HackerNews MCP Server

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
LOG_LEVELNoLogging levelinfo
SERVER_NAMENoName of the serverhackernews-mcp-server
CACHE_MAX_SIZENoMaximum size of the cache1000
SERVER_VERSIONNoVersion of the server1.0.0
CACHE_TTL_SECONDSNoCache time-to-live in seconds300
HACKERNEWS_API_TIMEOUTNoTimeout for HackerNews API requests in milliseconds10000
HACKERNEWS_API_BASE_URLNoBase URL for the HackerNews APIhttps://hacker-news.firebaseio.com/v0

Schema

Prompts

Interactive templates invoked by user choice

NameDescription
analyze-storyGenerate a comprehensive analysis of a HackerNews story including content, engagement, and discussion patterns
analyze-user-profileGenerate insights about a HackerNews user's activity patterns, expertise, and community engagement
summarize-trending-topicsGenerate a comprehensive summary of current trending topics and discussions on HackerNews

Resources

Contextual data attached and managed by the client

NameDescription
top-storiesCurrent top stories from HackerNews front page
new-storiesLatest new stories from HackerNews
best-storiesBest stories from HackerNews
ask-storiesLatest Ask HN stories and discussions
show-storiesLatest Show HN stories and projects
job-storiesLatest job postings from HackerNews
updatesRecently changed items and user profiles on HackerNews
max-itemThe current maximum item ID on HackerNews
cache-statsCurrent cache statistics and performance metrics

Tools

Functions exposed to the LLM to take actions

NameDescription
search_posts

Search and filter HackerNews posts by keywords, author, score, and date range

get_post

Get comprehensive details about a HackerNews post including metadata and comments

search_user

Get a HackerNews user's profile, activity, statistics, and contribution patterns

search_trending

Find current trending topics and keywords from top HackerNews posts

search_comments

Analyze the comment tree of a post for engagement patterns and statistics

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/Traves-Theberge/Hackernews-MCP-Typescript'

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