reddit-search
# reddit-search
MCP server for searching Reddit. No API key required.
## Tools
### search
Search Reddit posts globally or within a subreddit.
- **query** — Search query. Use `subreddit:NAME` prefix to limit to a subreddit.
- **sort** — Sort order: `relevance`, `hot`, `top`, `new`, `comments` (default: relevance).
- **time** — Time filter: `hour`, `day`, `week`, `month`, `year`, `all` (default: week).
- **limit** — Number of results (1–100, default 10).
### subreddit_posts
Get recent posts from a specific subreddit.
- **subreddit** — Subreddit name (without r/ prefix).
- **sort** — Sort order: `hot`, `new`, `top`, `rising` (default: hot).
- **time** — Time filter for `top` sort (default: week).
- **limit** — Number of results (1–100, default 10).
### post_comments
Get comments from a specific Reddit post.
- **url** — Reddit post URL or permalink.
- **sort** — Comment sort: `confidence`, `top`, `new`, `controversial`, `old`, `qa` (default: top).
- **limit** — Number of top-level comments (1–100, default 20).
## Setup
```bash
npm install
```
No API key needed. Uses Reddit's public JSON endpoints (~10 requests/minute).
## Usage
```bash
npm start
```
The server runs on stdio using the [Model Context Protocol](https://modelcontextprotocol.io).
### MCP configuration
Add to your `.mcp.json`:
```json
"reddit-search": {
"command": "npx",
"args": ["tsx", "src/index.ts"],
"cwd": "/path/to/reddit-search"
}
```
TDQS
Scored across 3 tools
The three tools map to fairly distinct intents: keyword search across Reddit, listing a subreddit's recent feed, and fetching comments for a specific post. The only mild overlap is between 'search' and 'subreddit_posts', since a subreddit listing could arguably be a filtered search, but the descriptions make the boundary (query-driven vs. feed-driven) reasonably clear.
Two tools use a noun-compound style (subreddit_posts, post_comments) while the primary tool is a bare verb (search), so there is no single predictable pattern. The names are still readable and unambiguous, but an agent cannot infer a naming rule to predict future tools.
Three tools is lean but each covers a distinct read path (search, browse, drill into comments), which fits a read-only Reddit search server. It sits near the thin end of the scale but does not feel under-scoped for the stated purpose.
The core lifecycle for a search/browse server is covered: find posts, list a subreddit's posts, and read a post's comments, with URLs enabling follow-up. Minor gaps exist (no user/profile lookup, no sorting or time-range parameters surfaced, no subreddit search/discovery), but agents can work around them.