An integration that allows Claude Desktop to interact with Hacker News using the Model Context Protocol (MCP). - Browse latest stories from Hacker News - View top and best-rated stories - Get story details - Read comments for stories - Clean formatting of Hacker News content for better readability - Node.js 16 or higher - Claude Desktop - Internet connection to access Hacker News API 1. Clone or d
Add this skill
npx mdskills install imprvhub/mcp-claude-hackernewsWell-documented Hacker News MCP with clear tool descriptions, setup guides, and extensive usage examples
1# MCP Claude Hacker News2[](https://mseep.ai/app/63f8ec05-a890-4a4d-9d8d-bea3c9a05c54) [](https://archestra.ai/mcp-catalog/imprvhub__mcp-claude-hackernews)3[](https://smithery.ai/server/@imprvhub/mcp-claude-hackernews)456<table style="border-collapse: collapse; width: 100%; table-layout: fixed;">7<tr>8<td style="padding: 15px; vertical-align: middle; border: none; text-align: center;">9 <a href="https://mseep.ai/app/imprvhub-mcp-claude-hackernews">10 <img src="https://mseep.net/pr/imprvhub-mcp-claude-hackernews-badge.png" alt="MseeP.ai Security Assessment Badge" />11 </a>12</td>13<td style="width: 40%; padding: 15px; vertical-align: middle; border: none;">An integration that allows Claude Desktop to interact with Hacker News using the Model Context Protocol (MCP).</td>14<td style="width: 60%; padding: 0; vertical-align: middle; border: none; min-width: 300px; text-align: center;"><a href="https://glama.ai/mcp/servers/@imprvhub/mcp-claude-hackernews">15 <img style="max-width: 100%; height: auto; min-width: 300px;" src="https://glama.ai/mcp/servers/@imprvhub/mcp-claude-hackernews/badge" alt="mcp-claude-hackernews MCP server" />16</a></td>17</tr>18</table>192021## Features2223- Browse latest stories from Hacker News24- View top and best-rated stories25- Get story details26- Read comments for stories27- Clean formatting of Hacker News content for better readability2829## Demo3031<p>32 <a href="https://www.youtube.com/watch?v=SmPD6MLifJo">33 <img src="public/assets/preview.png" width="600" alt="Claude Spotify Integration Demo">34 </a>35</p>3637## Requirements3839- Node.js 16 or higher40- Claude Desktop41- Internet connection to access Hacker News API4243## Installation4445### Installing Manually461. Clone or download this repository:47```bash48git clone https://github.com/imprvhub/mcp-claude-hackernews49cd mcp-claude-hackernews50```51522. Install dependencies:53```bash54npm install55```56573. Build the project:58```bash59npm run build60```6162## Running the MCP Server6364There are two ways to run the MCP server:6566### Option 1: Running manually67681. Open a terminal or command prompt692. Navigate to the project directory703. Run the server directly:7172```bash73node build/index.js74```7576Keep this terminal window open while using Claude Desktop. The server will run until you close the terminal.7778### Option 2: Auto-starting with Claude Desktop (recommended for regular use)7980The Claude Desktop can automatically start the MCP server when needed. To set this up:8182#### Configuration8384The Claude Desktop configuration file is located at:8586- **macOS**: `~/Library/Application Support/Claude/claude_desktop_config.json`87- **Windows**: `%APPDATA%\Claude\claude_desktop_config.json`88- **Linux**: `~/.config/Claude/claude_desktop_config.json`8990Edit this file to add the Hacker News MCP configuration. If the file doesn't exist, create it:9192```json93{94 "mcpServers": {95 "hackerNews": {96 "command": "node",97 "args": ["ABSOLUTE_PATH_TO_DIRECTORY/mcp-claude-hackernews/build/index.js"]98 }99 }100}101```102103**Important**: Replace `ABSOLUTE_PATH_TO_DIRECTORY` with the **complete absolute path** where you installed the MCP104 - macOS/Linux example: `/Users/username/mcp-claude-hackernews`105 - Windows example: `C:\\Users\\username\\mcp-claude-hackernews`106107If you already have other MCPs configured, simply add the "hackerNews" section inside the "mcpServers" object. Here's an example of a configuration with multiple MCPs:108109```json110{111 "mcpServers": {112 "otherMcp1": {113 "command": "...",114 "args": ["..."]115 },116 "otherMcp2": {117 "command": "...",118 "args": ["..."]119 },120 "hackerNews": {121 "command": "node",122 "args": [123 "ABSOLUTE_PATH_TO_DIRECTORY/mcp-claude-hackernews/build/index.js"124 ]125 }126 }127}128```129130The MCP server will automatically start when Claude Desktop needs it, based on the configuration in your `claude_desktop_config.json` file.131132## Usage1331341. Restart Claude Desktop after modifying the configuration1352. In Claude, use the Hacker News tools to interact with Hacker News1363. The MCP server runs as a child process managed by Claude Desktop137138## Available Tools139140The Hacker News MCP provides **5 specialized tools** for different functions:141142| Tool | Description | Parameters | Example Usage |143|------|-------------|------------|---------------|144| `hn_latest` | Get the most recent stories from Hacker News | `limit`: Optional number of stories (1-50, default: 10) | Get 20 latest stories |145| `hn_top` | Get the top-ranked stories from Hacker News | `limit`: Optional number of stories (1-50, default: 10) | Get 15 top stories |146| `hn_best` | Get the best stories from Hacker News | `limit`: Optional number of stories (1-50, default: 10) | Get 25 best stories |147| `hn_story` | Get detailed information about a specific story | `story_id`: Required story ID (number) | Get story details by ID |148| `hn_comments` | Get comments for a story | `story_id`: Story ID (number) OR `story_index`: Index from last list (1-based) | Get comments by story ID or index |149150### Tool Parameters Details151152#### `hn_latest`, `hn_top`, `hn_best`153- **`limit`** (optional): Number of stories to fetch154 - Type: Number155 - Range: 1-50156 - Default: 10157158#### `hn_story`159- **`story_id`** (required): The ID of the story to fetch160 - Type: Number161 - Example: 12345678162163#### `hn_comments`164- **`story_id`** (optional): The ID of the story to get comments for165 - Type: Number166 - Example: 12345678167- **`story_index`** (optional): The index of the story from the last fetched list168 - Type: Number (1-based)169 - Example: 3 (for the 3rd story in the last list)170171*Note: For `hn_comments`, you must provide either `story_id` OR `story_index`*172173## Example Usage174175Here are various examples of how to use the Hacker News MCP with Claude:176177### Direct Tool Usage:178179```180"Use hn_latest to get 20 recent stories"181"Use hn_top with limit 15 to get top stories"182"Use hn_best to get 25 best stories"183"Use hn_story with story_id 29384756 to get story details"184"Use hn_comments with story_index 3 to get comments for the 3rd story"185"Use hn_comments with story_id 12345678 to get comments for that story"186```187188### Natural Language Queries:189190You can also interact with the MCP using natural language. Claude will interpret these requests and use the appropriate tools:191192- "Show me the top 30 stories on Hacker News today"193- "What are the 40 latest posts on Hacker News?"194- "I'd like to see the 20 best articles from Hacker News"195- "Can you fetch me 30 recent tech news stories from Hacker News?"196- "Tell me what's the top 50 trending topics on Hacker News"197- "Show me 20 Hacker News stories about machine learning"198- "Get me the 40 most recent Hacker News headlines"199- "What are the 30 most active discussions on Hacker News right now?"200- "I'm interested in reading the 40 most popular Hacker News articles this week"201- "Show me a list of 20 best programming articles from Hacker News"202- "Get the comments for story number 5 from the last list"203- "Show me the details of story ID 12345678"204205### Language Translation Requests:206207You can request Hacker News content to be translated into different languages:208209- "Show me the top 30 stories on Hacker News today in Spanish"210- "Get the 20 latest Hacker News posts and translate them to French"211- "I'd like to see the 40 best articles from Hacker News in German"212- "Show me 30 recent Hacker News stories translated to Japanese"213- "Get the top 20 Hacker News articles and present them in Portuguese"214215## Troubleshooting216217### "Server disconnected" error218If you see the error "MCP Hacker News: Server disconnected" in Claude Desktop:2192201. **Verify the server is running**:221 - Open a terminal and manually run `node build/index.js` from the project directory222 - If the server starts successfully, use Claude while keeping this terminal open2232242. **Check your configuration**:225 - Ensure the absolute path in `claude_desktop_config.json` is correct for your system226 - Double-check that you've used double backslashes (`\\`) for Windows paths227 - Verify you're using the complete path from the root of your filesystem2282293. **Try the auto-start option**:230 - Set up the auto-start script for your operating system as described in the "Setting up auto-start scripts" section231 - This ensures the server is always running when you need it232233### Tools not appearing in Claude234If the Hacker News tools don't appear in Claude:235- Make sure you've restarted Claude Desktop after configuration236- Check the Claude Desktop logs for any MCP communication errors237- Ensure the MCP server process is running (run it manually to confirm)238- Verify that the MCP server is correctly registered in the Claude Desktop MCP registry239240### Checking if the server is running241To check if the server is running:242243- **Windows**: Open Task Manager, go to the "Details" tab, and look for "node.exe"244- **macOS/Linux**: Open Terminal and run `ps aux | grep node`245246If you don't see the server running, start it manually or use the auto-start method.247248## Contributing249250Contributions are welcome! Please feel free to submit a Pull Request.251252## License253254This project is licensed under the Mozilla Public License 2.0 - see the [LICENSE](https://github.com/imprvhub/mcp-claude-hackernews/blob/main/LICENSE) file for details.255256## Related Links257258- [Model Context Protocol](https://modelcontextprotocol.io/)259- [Hacker News API](https://github.com/HackerNews/API)260- [Claude Desktop](https://claude.ai/download)261- [MCP Series](https://github.com/mcp-series)262
Full transparency — inspect the skill content before installing.