search-webother

Reddit Buddy

by karanb192

Reddit Buddy offers powerful Reddit API tools for browsing, searching, and data annotation with secure access, rate limi

Provides clean access to Reddit's public API through specialized tools for browsing subreddits, searching content, retrieving posts with comments, analyzing user profiles, and explaining terminology with intelligent caching, rate limiting, and optional OAuth authentication for enhanced rate limits.

github stars

410

No API key requiredIntelligent caching and rate limitingOptional OAuth for enhanced limits

best for

  • / Market research and sentiment analysis
  • / Social media monitoring and content discovery
  • / Understanding Reddit culture and terminology
  • / Analyzing user behavior patterns

capabilities

  • / Browse subreddit posts with different sorting options
  • / Search posts across Reddit or specific subreddits
  • / Fetch post details with full comment threads
  • / Analyze user posting history and activity patterns
  • / Explain Reddit terms and culture
  • / Cache responses to reduce API calls

what it does

Enables AI assistants to browse Reddit posts, search content, analyze users, and understand Reddit terminology through clean API access. Works without API keys and includes intelligent caching and rate limiting.

about

Reddit Buddy is a community-built MCP server published by karanb192 that provides AI assistants with tools and capabilities via the Model Context Protocol. Reddit Buddy offers powerful Reddit API tools for browsing, searching, and data annotation with secure access, rate limi It is categorized under search web, other. This server exposes 5 tools that AI clients can invoke during conversations and coding sessions.

how to install

You can install Reddit Buddy in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server runs locally on your machine via the stdio transport.

license

MIT

Reddit Buddy is released under the MIT license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.

readme

<img src="assets/reddit-mcp-buddy-icon-white-background.png" width="48" align="center"/> Reddit MCP Buddy

Reddit Browser for Claude Desktop and AI Assistants

A Model Context Protocol (MCP) server that enables Claude Desktop and other AI assistants to browse Reddit, search posts, and analyze user activity. Clean, fast, and actually works - no API keys required.

MCP Registry npm version npm downloads GitHub stars License: MIT

🎬 See It In Action

Reddit MCP Buddy Demo - Analyzing H1B sentiment across subreddits

Claude analyzing real-time sentiment about H-1B visa changes across r/cscareerquestions and r/india

Table of Contents

What makes Reddit MCP Buddy different?

  • 🚀 Zero setup - Works instantly, no Reddit API registration needed
  • ⚡ Up to 10x more requests - Three-tier authentication system (10/60/100 requests per minute)
  • 🎯 Clean data - No fake "sentiment analysis" or made-up metrics
  • 🧠 LLM-optimized - Built specifically for AI assistants like Claude
  • 📦 TypeScript - Fully typed, reliable, and maintainable
  • ✅ Proven rate limits - Thoroughly tested authentication tiers with verification tools

Quick Start (30 seconds)

For Claude Desktop - Desktop Extension (Easiest!)

  1. Download: reddit-mcp-buddy.mcpb
  2. Install: Open the downloaded file
  3. Done! Reddit tools are now available in Claude

For Claude Desktop - NPM Method (Alternative)

Add this to your claude_desktop_config.json:

{
  "mcpServers": {
    "reddit": {
      "command": "npx",
      "args": ["-y", "reddit-mcp-buddy"]
    }
  }
}

For Claude Code

Run this command to add the MCP server (user scope):

claude mcp add --transport stdio reddit-mcp-buddy -s user -- npx -y reddit-mcp-buddy

For Other MCP Clients

Use the NPM method: npx -y reddit-mcp-buddy

What can it do?

Ask your AI assistant to:

  • 📊 "What's trending on Reddit?" - Browse hot posts from r/all
  • 🔍 "Search for discussions about AI" - Search across all subreddits
  • 💬 "Get comments from this Reddit post" - Fetch post with full comment threads
  • 👤 "Analyze user spez" - Get user history, karma, and activity
  • 📚 "Explain Reddit karma" - Understand Reddit terminology

Available Tools

browse_subreddit

Browse posts from any subreddit with sorting options.

- Subreddit:
  - "all" - entire Reddit frontpage
  - "popular" - trending across Reddit
  - Any specific subreddit (e.g., "technology", "programming", "science")
- Sort by: hot, new, top, rising, controversial
- Time range: hour, day, week, month, year, all (for top/controversial sort)
- Include subreddit info: Optional flag for subreddit metadata

search_reddit

Search across Reddit or specific subreddits.

- Query: Your search terms
- Filter by: subreddit, author, time, flair
- Sort by: relevance, hot, top, new, comments

get_post_details

Get a post with all its comments.

- Input:
  - Reddit URL (supports multiple formats), OR
  - Post ID alone (will auto-detect subreddit, 2 API calls), OR
  - Post ID + subreddit (most efficient, 1 API call)
- Supported URL formats:
  - reddit.com, www.reddit.com
  - old.reddit.com, new.reddit.com
  - np.reddit.com (No Participation links)
  - m.reddit.com (mobile links)
  - redd.it short URLs
  - URLs with query params (?utm_source=...) or fragments (#comment)
- Options: comment sorting, depth, link extraction

user_analysis

Analyze a Reddit user's profile.

- Username: Any Reddit user
- Returns: karma, posts, comments, active subreddits

reddit_explain

Get explanations of Reddit terms.

- Terms: karma, cake day, AMA, ELI5, etc.

Authentication (Optional)

Want more requests? Add Reddit credentials to your Claude Desktop config:

Setup Steps

  1. Go to https://www.reddit.com/prefs/apps
  2. Click "Create App" or "Create Another App"
  3. Fill out the form:
    • Name: Any name (e.g., "reddit-mcp-buddy")
    • App type: Select "script" (CRITICAL for 100 rpm!)
    • Description: Optional
    • About URL: Leave blank
    • Redirect URI: http://localhost:8080 (required but unused)
  4. Click "Create app"
  5. Find your credentials:
    • Client ID: The string under "personal use script"
    • Client Secret: The secret string
  6. Update your Claude Desktop config:
{
  "mcpServers": {
    "reddit": {
      "command": "npx",
      "args": ["-y", "reddit-mcp-buddy"],
      "env": {
        "REDDIT_CLIENT_ID": "your_client_id",
        "REDDIT_CLIENT_SECRET": "your_client_secret",
        "REDDIT_USERNAME": "your_username",
        "REDDIT_PASSWORD": "your_password"
      }
    }
  }
}

Three-Tier Authentication System

Reddit MCP Buddy supports three authentication levels, each with different rate limits:

ModeRate LimitRequired CredentialsBest For
Anonymous10 req/minNoneTesting, light usage
App-Only60 req/minClient ID + SecretRegular browsing
Authenticated100 req/minAll 4 credentialsHeavy usage, automation

How It Works:

  • Anonymous Mode: Default mode, no setup required, uses public Reddit API
  • App-Only Mode: Uses OAuth2 client credentials grant (works with both script and web apps)
  • Authenticated Mode: Uses OAuth2 password grant (requires script app type)

Important Notes:

  • Script apps support BOTH app-only (60 rpm) and authenticated (100 rpm) modes
  • Web apps only support app-only mode (60 rpm maximum)
  • For 100 requests/minute, you MUST use a script app with username + password

Privacy & Data Handling

Reddit MCP Buddy is designed with privacy and transparency in mind. Here's how your data is handled:

Data Collection

  • Reddit API Data: The server fetches public Reddit content (posts, comments, user profiles) through Reddit's official API
  • No Tracking: We don't collect, store, or transmit any analytics, telemetry, or usage data
  • No Third Parties: All data flows directly between your machine, Reddit's API, and your AI assistant

Local Storage

  • Authentication Credentials (optional):
    • Stored locally in ~/.reddit-mcp-buddy/auth.json when using --auth CLI setup
    • Passwords are never written to disk - only used in-memory for OAuth token exchange
    • Environment variables (recommended for Claude Desktop) are never persisted by this server
  • Cache Data:
    • Reddit API responses are temporarily cached in memory to improve performance
    • Cache size limited to 50MB maximum
    • All cache data is cleared when the server stops
    • Can be disabled with REDDIT_BUDDY_NO_CACHE=true

Data Transmission

  • Reddit API Only: Your credentials are only sent to Reddit's official OAuth endpoints (https://oauth.reddit.com and https://www.reddit.com)
  • No External Services: No data is sent to any other external services, analytics platforms, or third parties
  • Local Processing: All data processing happens locally on your machine

Security Notes

  • Read-Only Operations: All tools are read-only - the server never posts, comments, or modifies any Reddit content
  • Credential Safety:
    • OAuth tokens are stored in memory and refreshed automatically
    • Client secrets are treated as sensitive and never logged
    • Use environment variables in Claude Desktop config for maximum security
  • Open Source: Full source code is available at https://github.com/karanb192/reddit-mcp-buddy for security auditing

GDPR & Privacy Compliance

  • No Personal Data Collection: We don't collect or process any personal data beyond what's necessary to authenticate with Reddit's API
  • User Control: You control all credentials and can delete ~/.reddit-mcp-buddy/auth.json at any time
  • Right to Erasure: Simply delete the auth file or uninstall the server to remove all local data

Questions or Concerns?

If you have any privacy questions or concerns, please open an issue on GitHub.

Testing & Development

Testing Your Rate Limits

Reddit MCP Buddy includes comprehensive testing tools to verify your authentication is working correctly:

# Clone the repository first
git clone https://github.com/karanb192/reddit-mcp-buddy.git
cd reddit-mcp-buddy
npm install

# Test with your current environment settings
npm run test:rate-limit

# Test specific authentication modes
npm run test:rate-limit:anon    # Tes

---