Hacker News MCP Server
@devabdultech
About Hacker News MCP Server
Hacker News MCP Server
Basic information
Config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"hn-mcp": {
"command": "npx",
"args": [
"-y",
"@smithery/cli",
"install",
"@devabdultech/hn-mcp",
"--client",
"claude"
]
}
}
}Tools
12`query` (string): Search query
Search results with stories and comments
`type` (string): Type of stories to fetch ('top', 'new', 'best', 'ask', 'show', 'job')
Array of story objects
`id` (number): Story ID
Story details with nested comments
`storyId` (number): ID of the story
Hierarchical comment tree structure
`id` (string): Username
User profile details including karma, created date, and about text
`id` (string): Username
Array of user's submitted stories and comments
Overview
What is Hacker News MCP Server?
Hacker News MCP Server adds Hacker News integration to Cursor, Claude, and other LLM clients, enabling access to stories, comments, user profiles, and search functionality through the Model Context Protocol.
How to use Hacker News MCP Server?
Add the server to your claude_desktop_config.json using npx -y @devabdultech/hn-mcp-server as the command, or install automatically via Smithery with npx -y @smithery/cli install @devabdultech/hn-mcp --client claude. Once configured, call the provided tools (e.g., search, getStories) from your LLM client.
Key features of Hacker News MCP Server
- Search stories and comments using Algolia's HN Search API
- Get stories by type (top, new, best, ask, show, job)
- Get individual stories with nested comment threads
- Retrieve full comment trees for any story
- Look up user profiles and their submissions
- Real-time access to Hacker News data
Use cases of Hacker News MCP Server
- Search for stories or comments by keyword and filter by type
- Fetch the latest top, new, or best stories with a configurable limit
- Read a story together with its complete discussion thread
- Explore a user’s profile, karma, and submission history
- Build an AI assistant that can answer questions based on Hacker News content
FAQ from Hacker News MCP Server
What dependencies are required?
The server runs via npx, which requires Node.js and npm. No separate installation or authentication is needed.
Where does the data come from?
Data is fetched from the official Hacker News API and Algolia’s HN Search API. No local storage is used.
What are the known limits?
Search results can be paginated with a maximum of 100 hits per page. The getStories tool accepts a limit of up to 100 stories.
Is an API key or authentication required?
No. The server works with publicly available Hacker News data and requires no keys or tokens.
What transport does the server use?
The server communicates via standard input/output (stdio) as defined by the Model Context Protocol. No network transport is configured.
More Other MCP servers
AutoBrowser MCP
autobrowser-aiBrowser MCP is a Model Context Provider (MCP) server that allows AI applications to control your browser
Reactive Resume
amruthpillaiA one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!
MCP Toolbox for Databases
googleapisMCP Toolbox for Databases is an open source MCP server for databases.
Maestro
mobile-dev-incPainless E2E Automation for Mobile and Web
🚀 Model Context Protocol (MCP) Curriculum for Beginners
microsoftThis open-source curriculum introduces the fundamentals of Model Context Protocol (MCP) through real-world, cross-language examples in .NET, Java, TypeScript, JavaScript, Rust and Python. Designed for developers, it focuses on practical techniques for building modular, scalable,
Comments