The Hacker News MCP Server provides comprehensive access to Hacker News data, enabling you to:
Search Hacker News: Search stories and comments using Algolia's search API with customizable parameters
Fetch Stories by Type: Retrieve stories filtered by type (top, new, best, ask, show, job)
Access Story Data: Get details of individual stories, either alone or with their associated comments
Explore Comment Trees: Retrieve hierarchical comment structures for stories
View User Profiles: Access user profile details, including karma, creation date, and about text
Get User Submissions: Fetch a user's submitted stories and comments
Real-Time Data: Access up-to-date Hacker News data seamlessly
Uses Algolia's HN Search API to search for stories and comments on Hacker News
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
:
Installing via Smithery
To install Hacker News MCP Server for Claude Desktop automatically via Smithery:
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 IDReturns: Story details with nested comments
getCommentTree
Get the full comment tree for a story
Inputs: *
storyId
(number): ID of the storyReturns: Hierarchical comment tree structure
getUser
Get a user's profile information
Inputs: *
id
(string): UsernameReturns: User profile details including karma, created date, and about text
getUserSubmissions
Get a user's submissions (stories and comments)
Inputs: *
id
(string): UsernameReturns: 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.
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Tools
Adds powerful Hacker News integration to LLM clients, allowing users to access stories, comments, user profiles, and search functionality through the Model Context Protocol.
Related Resources
Related MCP Servers
- AsecurityAlicenseAqualityA Model Context Protocol (MCP) server that provides tools for searching and fetching information from Hacker News.Last updated -453MIT License
- -securityAlicense-qualityA comprehensive toolkit that enhances LLM capabilities through the Model Context Protocol, allowing LLMs to interact with external services including command-line operations, file management, Figma integration, and audio processing.Last updated -23Apache 2.0
- AsecurityFlicenseAqualityEnables interaction with lightning addresses and common lightning tools via your LLM, providing Lightning Network functionality through natural language.Last updated -3111
- AsecurityFlicenseAqualityA Model Context Protocol server that enables AI tools like Claude and Cursor to fetch and interact with live Hacker News data (posts, comments, users) via standardized MCP endpoints.Last updated -114028