Hacker News Companion MCP
This server processes Hacker News discussions for LLM summarization.
Retrieves and formats comments: Fetches comments from a Hacker News post and formats them specifically for LLM processing.
Handles flexible input: Accepts either full URLs or just numeric post IDs.
Generates user prompts: Provides instructions to guide the LLM in interpreting and summarizing the formatted comments.
Provides metadata: Includes post ID, comment count, and original post URL in the response.
Click on "Deploy 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 Companion MCP summarize the discussion on the recent AI safety post"
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 Companion MCP
A Model Context Protocol (MCP) for summarizing Hacker News discussions using Claude.
Overview
This MCP fetches and processes Hacker News discussions, preparing them in a format that Claude can use to generate high-quality summaries. It handles both the hierarchical structure of comments and their metadata (scores, downvotes, etc.) to help Claude understand the relative importance and relationships of different comments.
Related MCP server: Hacker News MCP Server
Features
Process Hacker News URLs or post IDs
Download and analyze comment structure from HN
Score comments based on community engagement
Format data optimized for Claude's summarization
Installation
Installing via Smithery
To install Hacker News Companion for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @georgeck/hn-companion-mcp --client claudeManual Installation
Clone the repository:
git clone https://github.com/yourusername/hn-companion-mcp.git cd hn-companion-mcpInstall dependencies:
npm install
Usage
CLI
node index.js <post-id-or-url>Example:
node index.js 43448075
# or
node index.js https://news.ycombinator.com/item?id=43448075API Server
Start the server:
npm startMake a request:
curl -X POST http://localhost:3000/api/summarize \
-H "Content-Type: application/json" \
-d '{"input": "https://news.ycombinator.com/item?id=43448075"}'API Reference
POST /api/summarize
Request body:
{
"input": "https://news.ycombinator.com/item?id=43448075"
}Response:
{
"status": "success",
"data": {
"systemPrompt": "...",
"userPrompt": "...",
"commentPathIdMapping": { ... },
"postTitle": "...",
"postId": "...",
"commentCount": 123
}
}Integration with Claude
This MCP is designed to prepare data for Claude to summarize. When a user asks Claude to summarize a Hacker News discussion, Claude can call this MCP to get the formatted data and then generate a summary based on the provided system and user prompts.
"hn-companion": {
"command": "node",
"args": ["<full path to src>/hn-companion-mcp/server.js"]
}
}License
MIT
Available Tools
1 toolget_hn_post_formatted_commentsB
Retrieves and formats comments from a Hacker News discussion post for summarization by an LLM. Use the hacker_news_summarization_user_prompt prompts to generate a summary.
Inputs: post_url (required). Returns: content, metadata
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 1 tool
With only one tool, there is no possibility of ambiguity or overlap between tools. The tool's purpose is clearly distinct as it is the sole tool available.
Since there is only one tool, naming consistency is inherently perfect. The tool name follows a clear verb_noun pattern (get_hn_post_formatted_comments), which would be consistent if more tools existed.
A single tool is too few for a server named 'Hacker News Companion MCP', which suggests broader functionality. The tool only handles comment retrieval and formatting, leaving obvious gaps like fetching posts, searching, or user interactions, making the scope feel incomplete.
The tool set is severely incomplete for a Hacker News companion. It only covers retrieving and formatting comments for summarization, missing core operations such as getting posts, listing top stories, or user management, which are essential for the domain.
Related MCP Connectors
Browse Hacker News from chat: top stories, search, read comment threads, and post or upvote when yo…
Scrape Hacker News stories, comments and user profiles as clean JSON with points, author…
Find Ask HN, Show HN and job threads, filter by score, and get votes and body text for every row.
Deterministic Hacker News developer sentiment, themes & feature requests via MCP. No API key.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI assistants to search, retrieve, and interact with HackerNews content including stories, comments, polls, and user information. Provides comprehensive access to all HackerNews API endpoints with 15 specialized tools for content discovery and analysis.1560 npm5MIT
- FlicenseNot gradedqualityDmaintenanceEnables AI assistants to access Hacker News content through 9 comprehensive tools for fetching stories, comments, user profiles, and job postings. Supports flexible output formats, pagination, and various story categories (top, new, best, Ask HN, Show HN).-
- AlicenseNot gradedqualityDmaintenanceFetches Hacker News discussion threads and linked article content in LLM-optimized markdown format, enabling natural language analysis of HN posts and their conversations.1MIT
- 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.960 npmMIT