Hacker News MCP Server
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
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 Serversearch for recent posts about AI safety"
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
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
Related MCP server: HackerNews-Search
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 claudeTools
searchSearch 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
getStoriesGet 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
getStoryWithCommentsGet a story along with its comment thread
Inputs: *
id(number): Story IDReturns: Story details with nested comments
getCommentTreeGet the full comment tree for a story
Inputs: *
storyId(number): ID of the storyReturns: Hierarchical comment tree structure
getUserGet a user's profile information
Inputs: *
id(string): UsernameReturns: User profile details including karma, created date, and about text
getUserSubmissionsGet 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.
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
- AlicenseAqualityDmaintenanceA server that enables AI assistants to access, analyze, and understand HackerNews content through standardized Model Context Protocol interfaces, providing tools for searching posts, analyzing users, and tracking trending topics.Last updated58MIT
- AlicenseAqualityDmaintenanceA service that provides HackerNews content search, retrieval and analysis through the Model Context Protocol, suitable for AI agents and developers.Last updated51Apache 2.0
- AlicenseAqualityDmaintenanceEnables AI agents and developers to search, retrieve, and analyze HackerNews content including advanced post search, front page access, full comment trees, and user profile lookups through the Model Context Protocol.Last updated446MIT
- 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.Last updated946MIT
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/devabdultech/hn-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server