Provides comprehensive access to Reddit's API for retrieving posts, comments, user information, and search functionality across subreddits with various sorting and filtering options.
Reddit MCP Server
A Model Context Protocol (MCP) server that provides access to Reddit's API for retrieving posts, comments, user information, and search functionality.
Features
- Subreddit Operations: Get posts from any subreddit with various sorting options
- Post Operations: Retrieve specific posts and their comments
- User Operations: Get user information, posts, and comments
- Search: Search for posts and subreddits
- Authentication: Supports multiple Reddit API authentication methods
Available Tools
get_subreddit_posts
Get posts from a specific subreddit.
Parameters:
subreddit
(required): Name of the subreddit (without r/ prefix)sort
(optional): Sort order -hot
,new
,top
,rising
(default:hot
)limit
(optional): Number of posts to retrieve, 1-100 (default: 25)
get_post
Get details of a specific Reddit post.
Parameters:
postId
(required): Reddit post ID
get_post_comments
Get comments from a Reddit post.
Parameters:
postId
(required): Reddit post IDsort
(optional): Sort order -best
,top
,new
,controversial
,old
(default:best
)
get_subreddit_info
Get information about a subreddit.
Parameters:
subreddit
(required): Name of the subreddit (without r/ prefix)
get_user_info
Get information about a Reddit user.
Parameters:
username
(required): Reddit username (without u/ prefix)
get_user_posts
Get posts submitted by a user.
Parameters:
username
(required): Reddit username (without u/ prefix)sort
(optional): Sort order -hot
,new
,top
(default:new
)limit
(optional): Number of posts to retrieve, 1-100 (default: 25)
get_user_comments
Get comments made by a user.
Parameters:
username
(required): Reddit username (without u/ prefix)sort
(optional): Sort order -hot
,new
,top
(default:new
)limit
(optional): Number of comments to retrieve, 1-100 (default: 25)
search_posts
Search for Reddit posts.
Parameters:
query
(required): Search querysubreddit
(optional): Restrict search to specific subredditsort
(optional): Sort order -relevance
,hot
,top
,new
,comments
(default:relevance
)limit
(optional): Number of results to retrieve, 1-100 (default: 25)
search_subreddits
Search for subreddits.
Parameters:
query
(required): Search query for subreddit names/descriptionslimit
(optional): Number of results to retrieve, 1-100 (default: 25)
Setup
1. Reddit API Application
- Go to https://www.reddit.com/prefs/apps
- Click "Create App" or "Create Another App"
- Choose application type:
- script for personal use
- web app for server applications
- Note your client ID (under the app name) and client secret
2. Environment Configuration
Copy .env.example
to .env
and configure:
Edit .env
with your Reddit API credentials:
3. Installation
4. Build
5. Usage with Claude Code
Add to your Claude Code MCP configuration:
Authentication Methods
1. Username/Password (Recommended for personal use)
2. Refresh Token (Recommended for production)
3. Access Token (For testing only - expires in 1 hour)
4. Client Credentials (Read-only access)
Leave username/password empty to use client credentials flow.
Rate Limits
Reddit API has rate limits:
- Free tier: 100 requests per minute per OAuth client
- Requests are averaged over a 10-minute window
- Commercial use requires Reddit's permission
Important Notes
- User-Agent: Must be unique and descriptive
- Commercial Use: Requires Reddit's permission
- Data Retention: Must delete user content that's been deleted from Reddit
- Rate Limiting: Built-in authentication token management
Development
Run in development mode:
Build:
Clean build artifacts:
Data Types
RedditPost
RedditComment
RedditSubreddit
RedditUser
License
MIT
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Provides access to Reddit's API for retrieving posts, comments, user information, and search functionality. Supports multiple authentication methods and comprehensive Reddit data operations including subreddit browsing, post retrieval, and user profile access.
Related MCP Servers
- -securityAlicense-qualityEnables programmatic interaction with Wikimedia APIs, offering features like searching content, retrieving page information, and accessing historical events across multiple languages.Last updated -62PythonMIT License
- AsecurityFlicenseAqualityEnables interaction with the Twitch API, allowing users to retrieve comprehensive information about channels, streams, games, and more, with additional support for searching and accessing chat elements like emotes and badges.Last updated -1401TypeScript
- AsecurityAlicenseAqualityA server allowing interaction with Reddit via the public API, enabling browsing frontpage posts, retrieving subreddit details, and reading post comments through a Model Context Protocol.Last updated -888PythonMIT License
- -securityAlicense-qualityEnables interaction with GitHub repositories through the GitHub API, allowing file operations, repository management, issue tracking, and code search through natural language commands.Last updated -52TypeScriptMIT License