Hacker News MCP Server
Adds powerful Hacker News integration to LLM clients, allowing users to access stories, comments, user profiles, and search functionality through the Model Context Protocol.
devabdultech
Tools
search
Search for stories and comments on Hacker News
getComments
Get comments for a story
getStory
Get a single story by ID
getStoryWithComments
Get a story with its comments
getStories
Get multiple stories by type (top, new, best, ask, show, job)
getComment
Get a single comment by ID
getCommentTree
Get a comment tree for a story
getUser
Get a user profile by ID
getUserSubmissions
Get a user's submissions
README
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.
<a href="https://glama.ai/mcp/servers/73uji99mwg"> <img width="380" height="200" src="https://glama.ai/mcp/servers/73uji99mwg/badge" alt="Hacker News Server MCP server" /> </a>
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.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Claude Code MCP
An implementation of Claude Code as a Model Context Protocol server that enables using Claude's software engineering capabilities (code generation, editing, reviewing, and file operations) through the standardized MCP interface.
Playwright MCP Server
Provides a server utilizing Model Context Protocol to enable human-like browser automation with Playwright, allowing control over browser actions such as navigation, element interaction, and scrolling.
@kazuph/mcp-fetch
Model Context Protocol server for fetching web content and processing images. This allows Claude Desktop (or any MCP client) to fetch web content and handle images appropriately.
Crypto Price & Market Analysis MCP Server
A Model Context Protocol (MCP) server that provides comprehensive cryptocurrency analysis using the CoinCap API. This server offers real-time price data, market analysis, and historical trends through an easy-to-use interface.
@kazuph/mcp-gmail-gas
Model Context Protocol server for Gmail integration. This allows Claude Desktop (or any MCP client) to interact with your Gmail account through Google Apps Script.
MCP PubMed Search
Server to search PubMed (PubMed is a free, online database that allows users to search for biomedical and life sciences literature). I have created on a day MCP came out but was on vacation, I saw someone post similar server in your DB, but figured to post mine.
dbt Semantic Layer MCP Server
A server that enables querying the dbt Semantic Layer through natural language conversations with Claude Desktop and other AI assistants, allowing users to discover metrics, create queries, analyze data, and visualize results.