Hacker News Companion MCP
黑客新闻伴侣 MCP
使用 Claude 总结 Hacker News 讨论的模型上下文协议 (MCP)。
概述
该 MCP 负责抓取并处理 Hacker News 的讨论,并将其转换为 Claude 可用来生成高质量摘要的格式。它处理评论的层级结构及其元数据(评分、踩点等),以帮助 Claude 理解不同评论之间的相对重要性和相互关系。
Related MCP server: Hacker News MCP Server
特征
处理 Hacker News URL 或帖子 ID
从 HN 下载并分析评论结构
根据社区参与度对评论进行评分
针对 Claude 摘要优化的格式数据
安装
通过 Smithery 安装
要通过Smithery自动为 Claude Desktop 安装 Hacker News Companion:
npx -y @smithery/cli install @georgeck/hn-companion-mcp --client claude手动安装
克隆存储库:
git clone https://github.com/yourusername/hn-companion-mcp.git cd hn-companion-mcp安装依赖项:
npm install
用法
命令行界面
node index.js <post-id-or-url>例子:
node index.js 43448075
# or
node index.js https://news.ycombinator.com/item?id=43448075API 服务器
启动服务器:
npm start提出请求:
curl -X POST http://localhost:3000/api/summarize \
-H "Content-Type: application/json" \
-d '{"input": "https://news.ycombinator.com/item?id=43448075"}'API 参考
POST /api/summarize
请求正文:
{
"input": "https://news.ycombinator.com/item?id=43448075"
}回复:
{
"status": "success",
"data": {
"systemPrompt": "...",
"userPrompt": "...",
"commentPathIdMapping": { ... },
"postTitle": "...",
"postId": "...",
"commentCount": 123
}
}与克劳德的整合
此 MCP 旨在为 Claude 准备数据以供其进行汇总。当用户要求 Claude 对 Hacker News 讨论进行汇总时,Claude 可以调用此 MCP 获取格式化的数据,然后根据系统提供的提示和用户提示生成摘要。
"hn-companion": {
"command": "node",
"args": ["<full path to src>/hn-companion-mcp/server.js"]
}
}执照
麻省理工学院
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
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.15195MIT
- Flicense-qualityDmaintenanceEnables 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).
- Alicense-qualityDmaintenanceFetches 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.919MIT
Related MCP Connectors
Deterministic Hacker News developer sentiment, themes & feature requests via MCP. No API key.
Browse Hacker News feeds, threads, and user profiles with full-text search.
Hacker News MCP — search and retrieve stories from Hacker News
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/georgeck/hn-companion-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server