comment-scraper-mcp
Allows Claude to list, read, and search Reddit threads exported as JSON from the Comment Scraper browser extension. Provides tools to browse exported threads newest-first, read threads as numbered Markdown with optional score filtering, search comments across exports by keyword, and retrieve a comment with its parent and child replies.
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
Install the Comment Scraper extension from the Chrome Web Store.
Export a thread and pick JSON, one row per comment or JSON, replies nested. CSV and Markdown files aren't read.
Have Node.js 20 or newer.
Related MCP server: mcp-server-chat-history
Install
Claude Code
claude mcp add comment-scraper -- npx -y comment-scraper-mcpClaude Desktop: open Settings → Developer → Edit Config and add:
{
"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:
claude plugin install comment-scraper --marketplace supertj/comment-scraper-mcpUse 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:
pi install npm:comment-scraper-mcpStart 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:
claude mcp add comment-scraper -- npx -y comment-scraper-mcp --dir ~/Research/redditor 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
Tool | What it does |
| Your exported threads, newest first, with how many comments were fetched and how many the site reports |
| A thread as numbered Markdown, 200 comments at a time, optionally only comments above a score |
| Comments containing all of your words, across every export or one thread, highest score first |
| One 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
Available Tools
4 toolsget_commentGet a comment in contextARead-only
Returns one comment by its [cN] number with the comments it replies to (up to the top) and its direct replies.
Inputs: thread (required), comment (required).
list_threadsList exported threadsARead-only
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.
Inputs: query.
read_threadRead a threadARead-only
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.
Inputs: thread (required), limit, offset, min_score.
search_commentsSearch commentsARead-only
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.
Inputs: query (required), limit, thread.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool targets a distinct operation: list_threads enumerates threads, read_thread returns a full paginated thread, search_comments does keyword search, and get_comment fetches one comment with its reply context. The boundaries between read_thread and get_comment are clear (whole-thread view vs. single-comment drill-down).
All four names follow the verb_noun snake_case pattern (list_threads, read_thread, search_comments, get_comment). The only nit is singular 'thread' in read_thread vs. plural elsewhere, but the convention is otherwise uniform and predictable.
Four tools is well-scoped for a read-only browser over exported threads. Each tool earns its place covering enumerate, view, search, and drill-down, with no redundant or filler tools.
The read-only lifecycle (list, read, search, get) is fully covered for browsing scraped content, so agents won't hit dead ends. Minor gaps exist, such as no filtering/sorting on thread lists or search by author/date, but these are workarounds rather than blockers.
Maintenance
Related MCP Connectors
Read public posts, comments, profiles and YouTube transcripts from Reddit, X, TikTok and more.
Read-only Reddit search API for AI agents: posts, comments, comment trees, subreddit rules.
Reddit posts, comments, keyword search and historical archives as tools. Runs on Apify.
Read, export and analyze public comments of TikTok, Instagram, X and Reddit posts.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables Claude to search locally indexed exported chat history and project docs, retrieving full messages and conversation IDs via full-text search.1MIT
- AlicenseNot gradedqualityCmaintenanceEnables Claude to full-text search, list, and read your exported ChatGPT and Claude conversations from a local conversations.json file, running locally with read-only file access and no network requests. Supports both official export formats with automatic detection.MIT
- AlicenseNot gradedqualityBmaintenanceEnables searching and retrieving ChatGPT and Claude conversation exports locally, allowing assistants to fetch handoff context and continue conversations through read-only MCP tools.MIT
- AlicenseAqualityBmaintenanceEnables AI agents to query a local DuckDB knowledge base of roughly 4.8 million Hacker News stories since 2006, with live comment threads and recent stories, supporting title search, trend analysis, domain reports, on-this-day queries, and sandboxed SQL.8MIT