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 分