The mcp-hn server is a Hacker News API wrapper that allows you to:
- Fetch stories: Get top, new, Ask HN, or Show HN stories
- Search stories: Find stories by text query
- Retrieve story details: Access detailed information about specific stories, including comments
- Access user information: Get user profiles and their submitted stories
Allows web scraping and browser automation, enabling the AI to browse articles mentioned on Hacker News and gather additional context beyond the HN comments.
Hacker News MCP Server
A Model Context Protocol (MCP) server that provides tools for fetching information from Hacker News.
Tools
get_stories
Fetching (top, new, ask_hn, show_hn) storiesget_story_info
Fetching comments associated with a storysearch_stories
Searching for stories by queryget_user_info
Fetching user info
Example Usage
Use prompts like the following:
A more detailed example with the puppeteer MCP server:
Quickstart
Claude Desktop:
Update the following:
On MacOS: ~/Library/Application\ Support/Claude/claude_desktop_config.json
On Windows: %APPDATA%/Claude/claude_desktop_config.json
With the following for production:
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.
A Model Context Protocol (MCP) server that provides tools for searching and fetching information from Hacker News.
Related Resources
Related MCP Servers
- -securityAlicense-qualityA Model Context Protocol (MCP) server that scrapes, indexes, and searches documentation for third-party software libraries and packages, supporting versioning and hybrid search.Last updated -44380TypeScriptMIT License
- AsecurityAlicenseAqualityAn MCP server that allows searching for and retrieving information about Model Context Protocol servers registered on the MCP Hub.Last updated -11MIT License
- -securityFlicense-qualityA comprehensive Model Context Protocol (MCP) server implementing the latest MCP specification with tools, resources, prompts, and enhanced sampling capabilities that features HackerNews and GitHub API integrations for AI-powered analysis.Last updated -333Python
- 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 -1142328TypeScript