Comment Scraper

io.github.supertj由 GitHub 账号 supertj 发布v0.1.3更新于 Nov 3, 2026

Read your Comment Scraper exports of Reddit and Hacker News threads. Local and read-only.

概览

AI 生成的概览

读取本地 Comment Scraper 导出的 Reddit 与 Hacker News 帖子 JSON,让助手列出、阅读、搜索并引用评论。

可以做什么
  • 按最新优先列出已导出的 Reddit 和 Hacker News 帖子及评论数
  • 以带编号的 Markdown 读取帖子,每次 200 条评论分页,可按分数过滤
  • 在所有导出或单个帖子中搜索包含全部关键词的评论,按分数从高到低返回
  • 按编号获取单条评论,连同它所回复的评论及其直接回复
适用场景
当你用 Comment Scraper 浏览器扩展导出了 Reddit 或 Hacker News 帖子,希望助手在不粘贴原文的情况下总结、搜索或引用评论时使用。评论编号与扩展的 Markdown 导出一致,引用可回溯到文件。
运行要求
通过 npx 在本地以 stdio 运行,需要 Node.js 20 或更高版本。需要安装 Comment Scraper 浏览器扩展并导出 JSON(每条评论一行或回复嵌套);不读取 CSV 和 Markdown 文件。默认读取下载文件夹及其直接子文件夹,其他文件夹通过 COMMENT_SCRAPER_DIRS 环境变量或 --dir 参数指定。无需联网或身份验证。
安装前请注意
只读且离线:不会写入、移动或删除文件。助手读取的评论内容会发送给你的模型提供商,并受其条款约束。导出据称不含用户名,但帖子内容仍可能敏感。不要同时安装插件和手动添加,否则工具会重复出现。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Comment Scraper,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

comment-scraper-mcp

Ask Claude about the Reddit and Hacker News threads you exported with Comment Scraper, without pasting them in.

This is a small MCP server. It reads the JSON files the Comment Scraper browser extension saves to your Downloads folder and gives Claude (or any MCP client) four tools to list, read and search them. Comments keep the same numbers as the extension's Markdown export, like [c12], so when Claude quotes a comment you can find it in the file.

It runs on your computer, only reads files, and makes no network requests.

Before you start

  1. Install the Comment Scraper extension from the Chrome Web Store.
  2. Export a thread and pick JSON, one row per comment or JSON, replies nested. CSV and Markdown files aren't read.
  3. Have Node.js 20 or newer.

Install

Claude Code

sh
claude mcp add comment-scraper -- npx -y comment-scraper-mcp

Claude Desktop: open Settings → Developer → Edit Config and add:

json
{  "mcpServers": {    "comment-scraper": {      "command": "npx",      "args": ["-y", "comment-scraper-mcp"]    }  }}

Restart Claude Desktop afterwards. Other MCP clients (Cursor, Windsurf and so on) take the same command: npx -y comment-scraper-mcp.

As a Claude Code plugin: the plugin folder bundles the server, pinned to a release, with a skill that tells Claude how to cite comments. This repository doubles as a plugin marketplace:

sh
claude plugin install comment-scraper --marketplace supertj/comment-scraper-mcp

Use the plugin or claude mcp add, not both, or Claude sees every tool twice.

As a Hermes Agent plugin: the same folder works in Hermes Agent. The install steps are in the plugin README.

Pi: this package is also a Pi package. Installing it gives Pi the server and the same skill the Claude plugin uses:

sh
pi install npm:comment-scraper-mcp

Start a new Pi session and ask about your exports. Pi starts the server from the installed package, so nothing is downloaded at run time, and /mcp shows whether it connected. You need Pi 0.99 or newer, the first version with MCP support. To read another folder, set COMMENT_SCRAPER_DIRS in the shell you start Pi from. If you already added comment-scraper-mcp to Pi's mcp.json by hand, remove that entry, unless it's named comment-scraper, in which case Pi uses it in place of the package's.

Where it looks

By default it reads your Downloads folder and the folders directly inside it, so moving exports into a project folder there is fine. To read somewhere else, pass one or more folders:

sh
claude mcp add comment-scraper -- npx -y comment-scraper-mcp --dir ~/Research/reddit

or set COMMENT_SCRAPER_DIRS (folders separated by :, or ; on Windows). Files are recognised by their content, so renaming them is fine. If you export the same thread twice, the newest export is used.

Tools

ToolWhat it does
list_threadsYour exported threads, newest first, with how many comments were fetched and how many the site reports
read_threadA thread as numbered Markdown, 200 comments at a time, optionally only comments above a score
search_commentsComments containing all of your words, across every export or one thread, highest score first
get_commentOne comment with the replies it answers and the replies to it

Things to ask

  • "List my exported threads."
  • "Read the CRM thread and group the complaints about pricing. Cite comment numbers."
  • "Search my exports for 'switched from' and summarise what people moved to."
  • "Show c41 in context."

Privacy

The server reads JSON files in the folders above and nothing else. It doesn't write, move or delete files, and it doesn't connect to the internet. What you ask Claude, and the comments Claude reads through these tools, go to Anthropic or whichever model provider your client uses, under their terms. Exports from the extension don't contain usernames.

License

MIT

来源:README.md,提交 dd67c29

工具

4

list_threads

List exported threads

Lists the Reddit and Hacker News threads the user exported with Comment Scraper, newest first, with comment counts. Call this first to get a thread id.

输入参数query

read_thread

Read a thread

Returns a thread's post and comments as numbered Markdown ([c12] reply to [c3] (score 41, 3d ago)). Long threads come in pages: call again with the offset given at the end. Cite comments by their [cN] number.

输入参数limitoffsetthread必填min_score

search_comments

Search comments

Finds comments containing all of the given words across every exported thread (or one thread). Returns each match with its thread, [cN] number and score.

输入参数limitquery必填thread

get_comment

Get a comment in context

Returns one comment by its [cN] number with the comments it replies to (up to the top) and its direct replies.

输入参数thread必填comment必填

版本历史

2
  1. v0.1.3最新Oct 29, 2026
  2. v0.1.1Oct 16, 2026

评分

已满足适用检查项的 90%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分
  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分