Reddit MCP
README.md
<p align="center">
<img src="assets/logo.png" alt="Reddit MCP Logo" width="120" height="120" style="border-radius:30px;">
</p>
<h1 align="center">Reddit MCP</h1>
<p align="center">
A Model Context Protocol (MCP) server that lets Claude Desktop browse, search, and analyze Reddit in real time.
</p>
<p align="center">
<a href="LICENSE">
<img src="https://img.shields.io/badge/License-MIT-blue.svg" alt="MIT License">
</a>
<img src="https://img.shields.io/badge/python-3.12+-green.svg" alt="Python 3.12+">
<img src="https://img.shields.io/badge/MCP-Claude%20Desktop-purple.svg" alt="Claude MCP">
</p>
---
## ⨠What is Reddit MCP?
**Reddit MCP** is a plug-and-play MCP server that allows Claude Desktop to interact directly with Reddit.
Your AI can:
- Explore subreddits
- Search discussions and opinions
- Fetch full comment threads
- Analyze Reddit users
- Detect trends and sentiment in real time
No scraping. No setup friction. Works instantly.
---
## š¬ Quick Demo
https://github.com/user-attachments/assets/7cccd617-12f1-4ffc-966f-34415adb5dd6
> š” *Ask Claude: "What's trending on r/programming today?"*
---
## š Quick Start (30 seconds)
1. **Install `uv`** if you don't have it:
**macOS / Linux**
```bash
curl -LsSf https://astral.sh/uv/install.sh | sh
sudo ln -sf ~/.local/bin/uv /usr/local/bin/uv
```
**Windows**
```powershell
powershell -c "irm https://astral.sh/uv/install.ps1 | iex"
```
2. **Download the MCP bundle**
š [reddit-mcp.mcpb](https://github.com/hereisSwapnil/reddit-mcp/releases/download/v1.0.0/reddit-mcp.mcpb)
3. **Double-click** the `.mcpb` file ā Claude Desktop installs it automatically.
4. **Open Claude Desktop** and start asking Reddit questions.
That's it!
---
## š„ Key Features
| Feature | Description |
|---------|-------------|
| š **Browse Subreddits** | View posts from any subreddit with hot, new, top, or rising sorting |
| š **Search Reddit** | Search globally or within specific communities |
| š **Post Details** | Fetch full post content with deeply threaded comments |
| š¤ **User Analysis** | Analyze a Reddit user's karma, activity patterns, and top subreddits |
| š **Anonymous Mode** | No API keys required. Works out of the box |
| ā” **Optional OAuth** | Add Reddit credentials for higher rate limits and stability |
---
## š¦ One-Click Installation (Recommended)
Download and install directly in Claude Desktop:
<p align="center">
<a href="https://github.com/hereisSwapnil/reddit-mcp/releases/download/v1.0.0/reddit-mcp.mcpb">
<img src="https://img.shields.io/badge/Download-reddit--mcp.mcpb-orange?style=for-the-badge" alt="Download">
</a>
</p>
**Supports:** macOS ⢠Windows ⢠Linux
---
## š ļø Manual Installation
Add the server to `claude_desktop_config.json`:
```json
{
"mcpServers": {
"reddit-mcp": {
"command": "/usr/local/bin/uv",
"args": ["run", "main.py"],
"cwd": "/path/to/reddit-mcp"
}
}
}
```
Restart Claude Desktop after saving.
---
## š¤ ChatGPT Integration
Connect Reddit MCP to ChatGPT using the public SSE endpoint.
### Use Hosted Server (Recommended)
Use the pre-hosted server URL:
```
https://reddit-mcp-production-79ca.up.railway.app/sse
```
### Or Self-Host with ngrok
1. Run the server with SSE enabled:
```bash
SERVE_HTTPS=true uv run main.py
```
2. Expose it publicly:
```bash
ngrok http 8000
```
3. Use your ngrok URL: `https://your-subdomain.ngrok.io/sse`
### Setup in ChatGPT
1. Go to **Settings** ā **Apps & Connectors**
2. Scroll down to **Advanced settings** and click **Create app**
3. Enable **Developer mode** (toggle ON)
4. Click **Create App** and fill in:
- **Icon**: Upload the Reddit MCP logo (optional)
- **Name**: `Reddit MCP`
- **Description**: `Browse, search, and analyze Reddit`
- **MCP Server URL**: `https://reddit-mcp-production-79ca.up.railway.app/sse`
- **Authentication**: Select `No Auth`
5. Check **"I understand and want to continue"**
6. Click **Create**
Your Reddit MCP connector will appear in the enabled apps list. Start using it!
---
## š Authentication (Optional)
Anonymous access works, but OAuth unlocks higher limits.
| Mode | Rate Limit | Setup Required |
|------|------------|----------------|
| Anonymous | ~10 req/min | None |
| OAuth | ~60 req/min | Client ID + Secret |
### How to enable OAuth
1. Go to [reddit.com/prefs/apps](https://www.reddit.com/prefs/apps)
2. Click **Create another app**
3. Select **script**
4. Copy your **Client ID** and **Client Secret**
5. Enter them when prompted during MCP setup
No tokens are stored remotely.
---
## š§° Available MCP Tools
| Tool | Description |
|------|-------------|
| `browse_subreddit` | Browse posts from any subreddit |
| `search_reddit` | Search Reddit posts by keyword |
| `get_post_details` | Fetch full post content and comments |
| `user_analysis` | Analyze Reddit user activity and karma |
---
## š¬ Example Queries
**Trending & Discovery**
- *"What's trending across all of Reddit today?"*
- *"Show me the hottest discussions in r/technology"*
**Search & Opinions**
- *"What are people saying about GPT-4?"*
- *"Find discussions about remote work in r/cscareerquestions"*
**Post & Comment Analysis**
- *"Get the full discussion from this Reddit post"*
- *"Summarize the top comments on post abc123"*
**User Analysis**
- *"Analyze the Reddit user spez"*
- *"What subreddits does u/DeepFuckingValue post in?"*
---
## š Project Structure
```
reddit-mcp/
āāā main.py # MCP server entry point
āāā reddit/
ā āāā api.py # Reddit API client (OAuth + anonymous)
āāā manifest.json # MCP bundle metadata
āāā pyproject.toml # Python dependencies
āāā README.md
```
---
## š¤ Contributing
Contributions are welcome!
1. Fork the repository
2. Create a feature branch
3. Commit your changes
4. Open a Pull Request
Ideas: caching, sentiment analysis, topic clustering, summaries.
---
## š License
Licensed under the [MIT License](LICENSE).
---
<p align="center">
<b>Reddit MCP turns Claude into a real-time Reddit analyst.</b>
</p>
This server cannot be deployed
Maintenance
ActivityInactive
ResponsivenessNo recent community issues