imachiever/reddit-ai
If you are the rightful owner of reddit-ai and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
RedditAI - MCP Server is a powerful Model Context Protocol server that integrates Reddit with AI tools like Claude Desktop and Cursor AI, enabling seamless data retrieval and analysis from the Reddit community.
RedditAI - MCP Server
A powerful Model Context Protocol (MCP) server that provides seamless Reddit integration for Claude Desktop and Cursor AI. This server enables AI assistants to search Reddit, analyze posts, track trends, and gather insights from the Reddit community.
š Features
- Reddit Search: Search across all of Reddit or specific subreddits
- Subreddit Analysis: Get trending posts and analyze community sentiment
- Post Details: Retrieve comprehensive post information with comments
- User Profiles: Get detailed user statistics and karma information
- Trending Discovery: Find popular and rising subreddits
- Sentiment Analysis: Analyze community mood and post sentiment
- Real-time Data: Access current Reddit data without authentication
š ļø Installation
Prerequisites
- Node.js 18+
- npm or yarn
Setup
- Clone or download this repository
- Install dependencies:
npm install
- Start the server:
npm start
š§ Configuration
Claude Desktop
- Open Claude Desktop
- Go to Settings ā MCP Servers
- Add a new server with these settings:
- Name: Reddit Integration
- Command:
node
- Arguments:
[path-to-your-project]/reddit-ai-mcp.js
- Working Directory:
[path-to-your-project]
Cursor AI
- Open Cursor AI
- Go to Settings ā Tools & Integrations ā New MCP Server
- Add the server configuration similar to Claude Desktop
š Available Tools
1. search_reddit
Search Reddit posts and comments across all subreddits or within a specific one.
Parameters:
query
(required): Search termsubreddit
(optional): Limit search to specific subredditsort
: relevance, hot, top, new, commentstime_filter
: hour, day, week, month, year, alllimit
: Number of results (max 100)
Example:
Search for "AI tools" in r/artificial with top posts from this week
2. get_subreddit_posts
Get posts from a specific subreddit with various sorting options.
Parameters:
subreddit
(required): Subreddit namesort
: hot, new, rising, toptime_filter
: hour, day, week, month, year, alllimit
: Number of posts (max 100)
Example:
Get the top 25 posts from r/technology this month
3. get_post_details
Retrieve detailed information about a specific Reddit post.
Parameters:
post_id
(required): Reddit post IDinclude_comments
: Include top commentscomment_limit
: Max comments to fetch (max 50)
Example:
Get details for post "abc123" with top 10 comments
4. get_user_profile
Get comprehensive user profile information and statistics.
Parameters:
username
(required): Reddit username
Example:
Get profile for user "spez"
5. get_trending_subreddits
Discover popular and trending subreddits.
Parameters:
limit
: Number of subreddits (max 50)
Example:
Get 25 trending subreddits
6. analyze_sentiment
Analyze sentiment of posts in a subreddit.
Parameters:
subreddit
(required): Subreddit to analyzequery
(optional): Specific topic to analyzesample_size
: Number of posts to analyze (max 100)
Example:
Analyze sentiment in r/worldnews about "climate change"
š” Use Cases
For Content Creators
- Trend Research: Find trending topics and viral content
- Community Analysis: Understand what resonates with specific audiences
- Content Inspiration: Discover popular discussions and questions
- Competitor Research: Monitor relevant subreddits and posts
For Marketers & Researchers
- Brand Monitoring: Track mentions and sentiment about products/services
- Market Research: Understand customer pain points and preferences
- Trend Analysis: Identify emerging topics and conversations
- Community Insights: Analyze subreddit demographics and engagement
For Developers
- API Research: Find popular tools and libraries discussed
- Bug Reports: Discover common issues and solutions
- Feature Requests: Understand what users want from tools
- Community Building: Identify where to engage with target users
For Journalists & Analysts
- Breaking News: Track real-time discussions and reactions
- Public Opinion: Gauge community sentiment on current events
- Source Discovery: Find eyewitness accounts and primary sources
- Trend Tracking: Monitor how stories evolve over time
For Educators
- Current Events: Bring real-world examples into lessons
- Student Engagement: Use trending topics to spark discussions
- Research Projects: Help students analyze online communities
- Digital Literacy: Teach students about online discourse
For Personal Use
- Hobby Discovery: Find communities for new interests
- Product Research: Get honest reviews and recommendations
- Learning Resources: Discover educational content and discussions
- Entertainment: Find funny, interesting, or inspiring content
š Privacy & Ethics
- No Authentication Required: Uses public Reddit data only
- Rate Limiting: Respects Reddit's API limits
- Data Minimization: Only fetches necessary information
- User Privacy: Respects user privacy and Reddit's terms of service
šØ Limitations
- Public Data Only: Cannot access private subreddits or deleted content
- Rate Limits: Subject to Reddit's API restrictions
- Historical Data: Limited to currently available posts
- Sentiment Analysis: Basic keyword-based analysis (not ML-powered)
š ļø Development
Running in Development Mode
npm run dev
Project Structure
reddit-ai/
āāā reddit-ai-mcp.js # Main server implementation
āāā package.json # Dependencies and scripts
āāā README.md # This file
Adding New Tools
To add new Reddit functionality:
- Define the tool schema in
setupToolHandlers()
- Add the case handler in the
CallToolRequestSchema
handler - Implement the method in the class
- Update this README with the new tool
š¤ Contributing
Contributions are welcome! Please feel free to submit issues, feature requests, or pull requests.
š License
MIT License - see LICENSE file for details.
š Acknowledgments
- Built with the Model Context Protocol
- Uses Reddit's public JSON API
- Inspired by the need for better AI-Reddit integration
š Support
If you encounter issues or have questions:
- Check the MCP documentation
- Review Reddit's API terms
- Open an issue in this repository
Happy Reddit exploring with AI! š