Hacker News MCP Server
Official Hacker News MCP Server - Adds powerful Hacker News integration to Cursor, Claude, and any other LLM clients. Access stories, comments, user profiles, and search functionality through the Model Context Protocol.
Features
- Search stories and comments using Algolia's HN Search API
- Get stories by type (top, new, best, ask, show, job)
- Get individual stories with comments
- Get comment trees and user discussions
- Get user profiles and submissions
- Real-time access to Hacker News data
Set Up
Running on Claude Desktop
Add this to your claude_desktop_config.json:
{
"mcpServers": {
"hackernews": {
"command": "npx",
"args": ["-y", "@devabdultech/hn-mcp-server"]
}
}
}
Installing via Smithery
To install Hacker News MCP Server for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @devabdultech/hn-mcp --client claude
Tools
search
- Search for stories and comments on Hacker News using Algolia's search API
- Inputs:
*
query(string): Search query *type(optional string): Filter by type ('story' or 'comment') *page(optional number): Page number for pagination *hitsPerPage(optional number): Results per page (max 100) - Returns: Search results with stories and comments
getStories
- Get multiple stories by type (top, new, best, ask, show, job)
- Inputs:
*
type(string): Type of stories to fetch ('top', 'new', 'best', 'ask', 'show', 'job') *limit(optional number): Number of stories to fetch (max 100) - Returns: Array of story objects
getStoryWithComments
- Get a story along with its comment thread
- Inputs:
*
id(number): Story ID - Returns: Story details with nested comments
getCommentTree
- Get the full comment tree for a story
- Inputs:
*
storyId(number): ID of the story - Returns: Hierarchical comment tree structure
getUser
- Get a user's profile information
- Inputs:
*
id(string): Username - Returns: User profile details including karma, created date, and about text
getUserSubmissions
- Get a user's submissions (stories and comments)
- Inputs:
*
id(string): Username - Returns: Array of user's submitted stories and comments
Contributing
- Fork the repository
- Create your feature branch
- Commit your changes
- Push to the branch
- Create a new Pull Request
License
This MCP server is licensed under the MIT License. See the LICENSE file for details.
About
This MCP server is built and maintained by devabdultech. It uses the official Hacker News API and Algolia Search API to provide comprehensive access to Hacker News data through the Model Context Protocol.
Hacker News Integration
Project Details
- devabdultech/hn-mcp
- @devabdultech/hn-mcp-server
- MIT License
- Last Updated: 4/13/2025
Categories
Recomended MCP Servers
The definitive Vibe Coder's sanity check MCP server: Prevent cascading errors in AI workflows by implementing strategic pattern...
MCP server to interact with LogSeq via its Local HTTP API - enabling AI assistants like Claude to...
A powerful Word document processing service based on FastMCP, enabling AI assistants to create, edit, and manage docx...
A free MCP server to analyze and extract insights from public filings, earnings transcripts, financial metrics, stock market...
Agentic abstraction layer for building high precision vertical AI agents written in python for Model Context Protocol.
A Ticketmaster MCP server that provides query capabilites from the Discovery API
MCP server for querying the Shodan API
AI-powered local MCP server for terminal commands, surgical file editing, process management, and intelligent codebase exploration. FastMCP-powered, file...
A Model Context Protocol (MCP) server that provides Nostr capabilities to LLMs like Claude.
MCP for https://votars.ai
MCP server that interacts with TickTick via the TickTick Open API





