hacker-mcp-server-POC
by sumitsk-simform·★ 1·Score 33
A lightweight MCP server exposing Hacker News data as tools for retrieving stories, details, and user profiles.
Overview
This is a well-structured MCP server written in TypeScript that provides access to Hacker News data through four main tools: get-news, get-news-detail, get-user-details, and search-news. The server utilizes the official @modelcontextprotocol/sdk and implements proper input validation using zod. It includes both development and production build processes, making it accessible for different use cases. The documentation covers installation, tool usage, and implementation details thoroughly.
Try asking AI
After installing, here are 5 things you can ask your AI assistant:
When to choose this
Choose this server when you need to integrate Hacker News data into AI workflows without complex setup, especially for prototyping or personal projects.
When NOT to choose this
Don't choose this for production systems as it lacks proper error handling, authentication, and has no rate limiting to protect against API throttling.
Tools this server exposes
4 tools extracted from the READMEget-newsFetch top/new/best stories from Hacker News (returns first 10)
get-news-detailFetch story metadata and first 10 comments
get-user-detailsFetch user profile and recent activity
search-newsSearch Hacker News via Algolia and format results
Comparable tools
Installation
# Clone the repository
git clone <repository-url>
cd hacker-mcp-server-POC
# Install dependencies
npm install
# Build TypeScript to JavaScript
npm run build
# Run the server
node build/index.jsFor Claude Desktop, add to claude_desktop_config.json:
{
"mcpServers": {
"hacker-news": {
"command": "node",
"args": ["/path/to/hacker-mcp-server-POC/build/index.js"]
}
}
}FAQ
- What is the rate limiting for the Hacker News API?
- The server doesn't implement explicit rate limiting, but the underlying Hacker News Firebase and Algolia APIs have their own limits. Consider adding your own rate limiting if you plan to make frequent requests.
- Can I customize the number of stories/comments returned?
- Currently, the server is configured to return the first 10 stories and comments. This could be modified by updating the helper functions in `src/helper.ts` to accept a limit parameter.
Compare hacker-mcp-server-POC with
Last updated · Auto-generated from public README + GitHub signals.