mcp-claude-hackernews
An integration that allows Claude Desktop to interact with Hacker News using the Model Context Protocol (MCP).
claude mcp add --transport stdio imprvhub-mcp-claude-hackernews node ABSOLUTE_PATH_TO_DIRECTORY/mcp-claude-hackernews/build/index.js
How to use
This MCP server, mcp-claude-hackernews, exposes a set of specialized tools that let Claude Desktop interact with Hacker News through the Model Context Protocol. The server runs locally as a child process and provides five distinct tools: hn_latest, hn_top, hn_best, hn_story, and hn_comments. Each tool fetches and formats Hacker News content, including latest, top, and best stories, as well as detailed story information and comments. You can invoke these tools from Claude Desktop using natural language prompts like “Show me the top 20 Hacker News stories” or “Get details for story ID 12345678,” and Claude will route the request to the appropriate tool and return clean, readable results. The server focuses on clean formatting and easy integration, allowing Claude to present Hacker News content in a concise, readable form within its interface.
How to install
Prerequisites:
- Node.js 16 or higher
- A Claude Desktop installation capable of loading MCP servers
- Internet access to reach Hacker News API
Installation steps:
- Clone the repository:
git clone https://github.com/imprvhub/mcp-claude-hackernews
cd mcp-claude-hackernews
- Install dependencies:
npm install
- Build the project:
npm run build
- Run the MCP server manually (optional for testing):
node build/index.js
- If integrating with Claude Desktop, ensure your claude_desktop_config.json includes the path to the built server as shown in the README. Replace ABSOLUTE_PATH_TO_DIRECTORY with the full absolute path where the project is installed.
{
"mcpServers": {
"hackerNews": {
"command": "node",
"args": ["ABSOLUTE_PATH_TO_DIRECTORY/mcp-claude-hackernews/build/index.js"]
}
}
}
Additional notes
Tips and common issues:
- Ensure Node.js 16+ is installed and available in your PATH.
- If Claude Desktop cannot start the MCP server, verify the absolute path in the configuration and ensure build/index.js exists after the npm run build step.
- The tools support parameters such as limit for lists (1-50) and story_id or story_index for comments. Use the examples in the README to structure tool usage requests.
- If the server restarts or fails to respond, check the terminal running node build/index.js for errors; common issues include network access to Hacker News API or incorrect ABSOLUTE_PATH_TO_DIRECTORY.
- Keep Claude Desktop updated to ensure compatibility with MCP tool signatures and response formatting.
Related MCP Servers
aci
ACI.dev is the open source tool-calling platform that hooks up 600+ tools into any agentic IDE or custom AI agent through direct function calling or a unified MCP server. The birthplace of VibeOps.
Unity
AI-powered bridge connecting LLMs and advanced AI agents to the Unity Editor via the Model Context Protocol (MCP). Chat with AI to generate code, debug errors, and automate game development tasks directly within your project.
coplay-unity-plugin
Unity plugin for Coplay
prism -rs
Enterprise-grade Rust implementation of Anthropic's MCP protocol
docmole
Dig through any documentation with AI - MCP server for Claude, Cursor, and other AI assistants
mcp-client-gen
Turn any MCP server into a type-safe TypeScript SDK in seconds - with OAuth 2.1 and multi-provider support