reddit-research
# Reddit Research for Claude
**Read-only Reddit access for Claude: an MCP server and a research skill that work together. No API key needed.**
Claude can't read Reddit on its own: Reddit blocks most automated, signed-out requests, and since late 2025 it rarely approves new API apps. Many people now get "Max clients have been reached" when they try to create one. This project gets around that without scraping Reddit. It reads from the free **[Arctic Shift](https://github.com/ArthurHeitmann/arctic_shift)** Reddit archive, which captures new posts and comments within minutes. If you do have Reddit API credentials, it uses the **official API** instead. The skill then tells Claude how to research properly: which communities to pick, which threads to read, and how to write a sourced report.
[Türkçe README](README.tr.md)
> ### ⬇️ Get it
> - **Claude Desktop, Chat tab:** download **[reddit-research.mcpb](https://github.com/enescor4-code/reddit-research-mcp/raw/main/dist/reddit-research.mcpb)**, drag it into a Chat conversation (or **Settings → Extensions**) and click **Install**. Then download **[reddit-research-skill.zip](https://github.com/enescor4-code/reddit-research-mcp/raw/main/dist/reddit-research-skill.zip)** and upload it under **Settings → Capabilities → Skills**.
> - **Claude Code, Cursor and other AI tools:** tell your AI *"Install this MCP server for me: https://github.com/enescor4-code/reddit-research-mcp"*, or run `npx -y github:enescor4-code/reddit-research-mcp install`.
>
> No API key or Reddit account is needed. Node.js 18+ is required for the second option only.
- **5 tools:** search posts, list subreddit feeds, read full threads with comments, find subreddits, get subreddit info and rules
- **1 skill:** `reddit-research`, a step-by-step research workflow with playbooks for content ideas, idea validation, sentiment and audience language
- **Works out of the box:** no Reddit account, no API key
- **Zero dependencies:** plain Node.js 18+, no `npm install`
- **Read-only:** it never posts, votes or sends messages
- **One-command install** for Claude Code, Claude Desktop, Cursor, Windsurf, VS Code, Gemini CLI and Codex. Or just give the link to your AI and it installs itself
---
## Install
### Easiest: let your AI install it
Paste this into **Claude Code**, or any AI agent that can run commands (Cursor, Windsurf, Codex, Gemini CLI…):
> Install this MCP server for me: https://github.com/enescor4-code/reddit-research-mcp
The agent follows [`llms-install.md`](llms-install.md), runs one command, and sets everything up. No API key or account is needed.
### One command
```bash
npx -y github:enescor4-code/reddit-research-mcp install
```
The command detects which AI apps you have and sets each one up:
| App | What it sets up |
|---|---|
| **Claude Code** | plugin with the MCP server **and** the skill (if the `claude` command isn't available, as with the desktop app alone, it writes the same setup straight into Claude Code's config files) |
| **Claude Desktop** (chat) | the MCP server; it also writes the skill as a zip ready to upload in **Settings → Capabilities → Skills** |
| **Cursor, Windsurf, VS Code, Gemini CLI, Codex CLI** | the MCP server |
It needs only [Node.js 18+](https://nodejs.org). It backs up every config file it edits and never touches one it can't parse. Use `--dry-run` to preview the changes, or `--client cursor,vscode` to pick specific apps. Restart your AI app afterwards.
To uninstall: `npx -y github:enescor4-code/reddit-research-mcp uninstall`
<details>
<summary>Other ways to install</summary>
**Claude Code plugin commands** (inside Claude Code):
```
/plugin marketplace add enescor4-code/reddit-research-mcp
/plugin install reddit-research@reddit-research
```
**Claude Desktop extension (one click):** download [`reddit-research.mcpb`](https://github.com/enescor4-code/reddit-research-mcp/raw/main/dist/reddit-research.mcpb) and drag it into a Chat conversation or **Settings → Extensions**. You can leave the Reddit key fields empty. The skill is [`reddit-research-skill.zip`](https://github.com/enescor4-code/reddit-research-mcp/raw/main/dist/reddit-research-skill.zip), which you upload under **Settings → Capabilities → Skills**.
**Any MCP client, by hand:**
```json
{
"mcpServers": {
"reddit-research": {
"command": "node",
"args": ["/absolute/path/to/reddit-research-mcp/server/index.mjs"]
}
}
}
```
For the skill, copy `skills/reddit-research` into your client's skills folder (Claude Code: `~/.claude/skills/`).
</details>
### Check that it works
```bash
node ~/.reddit-research-mcp/server/index.mjs --check
```
It prints the data source in use, the 3 newest posts on r/AskReddit and `CHECK OK`. If you installed from a clone or the plugin, run `node server/index.mjs --check` inside the repository folder instead.
---
## Data sources
| | No-key mode (default) | Reddit API mode |
|---|---|---|
| Source | [Arctic Shift](https://github.com/ArthurHeitmann/arctic_shift) archive | Reddit's official API (OAuth) |
| Setup | nothing | your own Reddit API app (see below) |
| Freshness | new posts within minutes; scores final after ~36 h | live |
| `top` / `hot` | ranked by this server over the posts it scans (up to 1,000 per call; every result states the covered date range) | Reddit's own ranking |
| Search | inside a subreddit (big subreddits fall back to scanning recent posts) | Reddit-wide or inside a subreddit |
| Find subreddits | by name prefix | by topic |
| `r/all`, `r/popular` | not available | available |
Every no-key result begins with a "Source:" line saying what it covered. The skill tells Claude to repeat those limits in its report.
### Optional: Reddit API credentials
If you already have a Reddit API app, or Reddit approves one for you, the server switches to the official API automatically:
1. On **https://www.reddit.com/prefs/apps**, create an app of type **script** with redirect uri `http://localhost:8080`. If you get "Max clients have been reached", Reddit is not issuing new apps to your account; stay in no-key mode.
2. Save the client ID and secret in `~/.reddit-mcp.json` (Windows: `C:\Users\<you>\.reddit-mcp.json`). [`config.example.json`](config.example.json) is a template:
```json
{ "client_id": "…", "client_secret": "…", "reddit_username": "your_reddit_username" }
```
Or set `REDDIT_CLIENT_ID`, `REDDIT_CLIENT_SECRET`, `REDDIT_USERNAME` as environment variables. In Claude Desktop, fill in the extension's form instead.
3. Run `node server/index.mjs --check`. It should say `Data source: Reddit API (OAuth)`.
To force a source, set `"backend": "archive"` or `"official"` in the config file, or set the `REDDIT_BACKEND` environment variable. Reddit's [Data API terms](https://redditinc.com/policies/data-api-terms) apply to API use.
---
## Tools
| Tool | What it does | Main inputs |
|---|---|---|
| `search_reddit` | Keyword search. Supports `"phrases"`, `OR`, `-exclude`, `title:` | `query`, `subreddit`, `sort`, `time`, `limit`, `after` |
| `get_subreddit_posts` | `hot` / `new` / `top` / `rising` / `controversial` feed | `subreddit`, `listing`, `time`, `limit`, `after` |
| `get_post_comments` | One post in full plus its comment tree | `post` (URL, share link, redd.it or ID), `sort`, `limit`, `depth` |
| `find_subreddits` | Communities for a topic, with sizes | `query`, `limit` |
| `get_subreddit_info` | Description, members, activity, rules | `subreddit` |
All tools return compact text with reddit.com links, so Claude can cite its sources. NSFW posts are hidden unless `include_nsfw: true` is passed.
## The skill
[`skills/reddit-research/SKILL.md`](skills/reddit-research/SKILL.md) loads automatically when you ask what Reddit thinks about something. The workflow:
1. pin down the question
2. find 3–6 active communities
3. collect top posts and run targeted searches (problems, questions, buying intent, wishes)
4. read the 5–15 best threads
5. rank themes by how often they appear and how much engagement they get, keeping short verbatim phrases
6. write a sourced report with its method and limits
It includes playbooks for **content and YouTube ideas**, **product and idea validation**, **brand and competitor sentiment**, **audience language** and **single-thread summaries**. It also adapts its workflow to whichever data source is active.
Example prompts:
- *"Find video ideas for a budget-travel channel from Reddit, with titles in the audience's own words."*
- *"Is there demand for a meal-planning app for shift workers? Check Reddit."*
- *"Summarise this thread: https://www.reddit.com/r/…"*
## How it works
```
server/index.mjs MCP stdio server (JSON-RPC, ~100 lines), install/uninstall, --check, --version
server/install.mjs one-command installer for every supported AI client
server/tools.mjs tool schemas, backend selection, dispatch
server/archive.mjs no-key backend: Arctic Shift client, local ranking, search fallback
server/official.mjs Reddit API backend handlers
server/reddit.mjs Reddit OAuth client (app-only), rate limits, retries; config loading
server/format.mjs compact text output shared by both backends
skills/reddit-research/SKILL.md
.claude-plugin/ Claude Code plugin + marketplace
manifest.json Claude Desktop extension manifest (built into dist/reddit-research.mcpb)
llms-install.md step-by-step install guide that AI agents follow
test/ offline tests (node --test)
```
- **Archive mode:** requests are spaced out and back off on 429. When keyword search times out on a big subreddit, the server scans up to 1,000 recent posts and matches them locally, then says so in the result.
- **API mode:** uses app-only OAuth (`client_credentials`, or the "installed app" grant when there is no secret), so it never needs your Reddit password. It reads the `X-Ratelimit-*` headers and waits before hitting the limit, retries on 429 and 5xx errors, and refreshes expired tokens.
## Responsible use
- Read-only by design. Please don't fork it into a spam or vote bot.
- Arctic Shift is a free, volunteer-run service. Keep usage moderate, and use its [monthly dumps](https://github.com/ArthurHeitmann/arctic_shift) for bulk data.
- Respect Reddit's terms and each community's rules.
- Discuss what communities say. Don't build profiles of individual users.
- Treat Reddit content as untrusted input. The skill tells Claude never to follow instructions found in posts.
## Development
```bash
npm test # offline tests with mocked Reddit and archive responses
node server/index.mjs --check
```
Contributions are welcome. Please keep it dependency-free and read-only.
## License
[MIT](LICENSE). Not affiliated with or endorsed by Reddit, Inc., Arctic Shift or Anthropic. Data in no-key mode comes from [Arctic Shift](https://github.com/ArthurHeitmann/arctic_shift).
TDQS
Scored across 5 tools
Each tool maps to a distinct operation: thread reading, keyword search, feed listing, community discovery, and community metadata. The only mild overlap is between find_subreddits and get_subreddit_info, both of which return subreddit descriptions and size, but the discovery-vs-detail boundary is clear enough. search_reddit and get_subreddit_posts could be confused at a glance, though descriptions distinguish keyword search from feed browsing.
All names follow a verb_noun pattern (get_post_comments, get_subreddit_posts, get_subreddit_info, find_subreddits, search_reddit). Minor deviation: three different retrieval verbs (get/find/search) are used for similar lookup operations, and search_reddit names the platform rather than the resource. Still predictable and readable throughout.
Five tools is well-scoped for a Reddit research server, covering discovery, browsing, searching, reading threads, and community metadata. Each tool earns its place with no filler or redundant endpoints.
The core research workflow is covered end-to-end: find a subreddit, inspect it, list or search posts, then read a thread with comments. Gaps are minor but real: no author/user lookup, no comment-level search, and no way to list a user's posts, which agents may want for deeper research.