Skip to main content
Glama

Hacker News Companion MCP

by georgeck

黑客新闻伴侣 MCP

使用 Claude 总结 Hacker News 讨论的模型上下文协议 (MCP)。

概述

该 MCP 负责抓取并处理 Hacker News 的讨论,并将其转换为 Claude 可用来生成高质量摘要的格式。它处理评论的层级结构及其元数据(评分、踩点等),以帮助 Claude 理解不同评论之间的相对重要性和相互关系。

特征

  • 处理 Hacker News URL 或帖子 ID
  • 从 HN 下载并分析评论结构
  • 根据社区参与度对评论进行评分
  • 针对 Claude 摘要优化的格式数据

安装

通过 Smithery 安装

要通过Smithery自动为 Claude Desktop 安装 Hacker News Companion:

npx -y @smithery/cli install @georgeck/hn-companion-mcp --client claude

手动安装

  1. 克隆存储库:
    git clone https://github.com/yourusername/hn-companion-mcp.git cd hn-companion-mcp
  2. 安装依赖项:
    npm install

用法

命令行界面

node index.js <post-id-or-url>

例子:

node index.js 43448075 # or node index.js https://news.ycombinator.com/item?id=43448075

API 服务器

启动服务器:

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"] } }

执照

麻省理工学院

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

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.

获取并处理 Hacker News 讨论,以便 Claude 生成高质量的摘要,处理评论结构和元数据,帮助 Claude 了解不同评论的相对重要性。

  1. 概述
    1. 特征
      1. 安装
        1. 通过 Smithery 安装
        2. 手动安装
      2. 用法
        1. 命令行界面
        2. API 服务器
      3. API 参考
        1. POST /api/summarize
      4. 与克劳德的整合
        1. 执照

          Related MCP Servers

          • A
            security
            A
            license
            A
            quality
            Parses the HTML content from news.ycombinator.com (Hacker News) and provides structured data for different types of stories (top, new, ask, show, jobs).
            Last updated -
            1
            15
            JavaScript
            MIT License
            • Apple
          • -
            security
            A
            license
            -
            quality
            A Model Context Protocol server that enables AI assistants like Claude to browse and analyze Reddit content, including searching subreddits, retrieving post details with comments, and viewing trending posts.
            Last updated -
            1
            Python
            MIT License
            • Apple
          • A
            security
            A
            license
            A
            quality
            Adds powerful Hacker News integration to LLM clients, allowing users to access stories, comments, user profiles, and search functionality through the Model Context Protocol.
            Last updated -
            9
            25
            4
            JavaScript
            MIT License
          • -
            security
            F
            license
            -
            quality
            Allows developers to query security findings (SAST issues, secrets, patches) using natural language within AI-assisted tools like Claude Desktop, Cursor, and other MCP-compatible environments.
            Last updated -
            1
            Python
            • Linux
            • Apple

          View all related MCP servers

          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