Hacker News MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Hacker News MCP ServerShow me the top stories on Hacker News"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Hacker News MCP Server
A Model Context Protocol (MCP) server for Hacker News, enabling LLMs to browse stories, inspect items, and look up user profiles via the official HN Firebase API.
Features
Story Feeds: Fetch Top, New, Best, Ask HN, Show HN, and Job stories.
Detailed Inspection: Get full details for any item (story, comment, job, poll) and user profiles.
Live Updates: Access recently changed items and the current max item ID.
Optimized for LLMs:
Responses formatted in clear Markdown (or JSON when needed).
Built-in character limit to prevent context overflow.
Pagination (
limit/offset) on all list-based tools.
Modern Stack: TypeScript + official MCP SDK + Zod schema validation.
Related MCP server: HackerNews MCP Server
Available Tools
Tool | Description |
| Top stories (paginated) |
| Newest stories (paginated) |
| Best stories (paginated) |
| Ask HN stories (paginated) |
| Show HN stories (paginated) |
| Job stories (paginated) |
| Full details for a specific item ID |
| User profile by username |
| Recently updated item & profile IDs |
| Current largest item ID on HN |
All list tools accept limit (1–500, default 20), offset (default 0), and response_format (markdown or json).
Getting Started
Prerequisites
Node.js 18+ or Bun
Quick Run (no install)
# npx
npx -y @fritzprix/hn-mcp
# bunx
bunx @fritzprix/hn-mcpGlobal Install
npm install -g @fritzprix/hn-mcp
hn-mcpFrom Source
git clone https://github.com/fritzprix/hn-mcp.git
cd hn-mcp
npm install
npm run build
npm startMCP Client Configuration
Claude Desktop
Add to claude_desktop_config.json:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"hackernews": {
"command": "npx",
"args": ["-y", "@fritzprix/hn-mcp"]
}
}
}Other MCP Clients (Cursor, Windsurf, etc.)
{
"mcpServers": {
"hackernews": {
"command": "npx",
"args": ["-y", "@fritzprix/hn-mcp"]
}
}
}Development
npm run dev # run with tsx (no build needed)
npm run build # compile TypeScript → dist/
npm run watch # watch modeLicense
MIT
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI assistants to search, retrieve, and interact with HackerNews content including stories, comments, polls, and user information. Provides comprehensive access to all HackerNews API endpoints with 15 specialized tools for content discovery and analysis.15195MIT
- AlicenseAqualityDmaintenanceProvides programmatic access to Hacker News content via the HN Algolia API. It enables AI assistants to search stories, retrieve comments, access user profiles, and explore the front page in real-time.919MIT
- FlicenseAqualityDmaintenanceEnables AI assistants to read and search Hacker News for top stories, comments, user profiles, and job listings using the Firebase and Algolia APIs. It facilitates natural language research into community discussions and technological trends across the HN platform.8
- AlicenseAqualityAmaintenanceProvides AI agents with access to Hacker News data including top stories, story details, comment threads, and full-text search for content research and trend monitoring.5MIT
Related MCP Connectors
Browse Hacker News feeds, threads, and user profiles with full-text search.
Hacker News MCP — search and retrieve stories from Hacker News
HN front-page, Algolia full-text search, and Show HN launch tracker.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/fritzprix/hn-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server