reddit-mcp
Provides read-only access to Reddit data, including searching posts, browsing subreddits, reading comments, viewing user profiles, and checking trending content.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@reddit-mcpGet the top posts in r/worldnews"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
reddit-mcp
A read-only MCP server built for Claude that connects to the Reddit Data API (oauth.reddit.com). Search posts, browse subreddits, read comments, view user profiles, and check trending content — all through the Model Context Protocol.
Quick Install (Claude Code)
npx -y @hamzashahbaz/reddit-mcpOr add it to Claude Code with environment variables:
claude mcp add reddit -e REDDIT_CLIENT_ID=your_id -e REDDIT_CLIENT_SECRET=your_secret -e REDDIT_USERNAME=your_username -e REDDIT_PASSWORD=your_password -- npx -y @hamzashahbaz/reddit-mcpFeatures
Search Reddit -- query posts across all of Reddit or within a specific subreddit
Browse subreddits -- get posts sorted by hot, new, top, or rising
Read comments -- fetch a post's details and top-level comments
User profiles -- view profile info and recent activity (posts, comments, or both)
Trending posts -- see what's popular on r/popular
Prerequisites
Node.js 18+
A Reddit account
A Reddit "script" application (free) -- see Setup
Setup
1. Request Reddit API access
Reddit requires API access approval before you can create apps.
Select API Access Request
Fill in the form:
Benefit/purpose: Read-only content browsing tool that helps users discover and read Reddit content through AI assistants — no posting, commenting, or voting.
Detailed description: reddit-mcp is an open-source MCP (Model Context Protocol) server that provides read-only access to Reddit's public content. It allows AI assistants to search posts, browse subreddits, read comments, and view user profiles. All operations are read-only GET requests. Source code: https://github.com/hamzashahbaz/reddit-mcp
Devvit question: This tool is an external read-only client that integrates Reddit content into AI workflows — a use case outside Devvit's scope.
Source code link:
https://github.com/hamzashahbaz/reddit-mcpSubreddits: General-purpose — works with any public subreddit
Submit and wait for approval (typically a few days)
2. Create a Reddit script app
Once approved:
Go to reddit.com/prefs/apps
Click "create another app..."
Fill in:
name: anything (e.g.,
mcp-reader)type: select script
redirect uri:
http://localhost:8080(not used, but required)
Note your client ID (under the app name) and client secret
3. Clone and build
git clone https://github.com/hamzashahbaz/reddit-mcp.git
cd reddit-mcp
npm install
npm run buildConfiguration
Add to your .mcp.json (Claude Code) or claude_desktop_config.json (Claude Desktop):
{
"mcpServers": {
"reddit": {
"command": "node",
"args": ["/path/to/reddit-mcp/dist/server.js"],
"env": {
"REDDIT_CLIENT_ID": "your_client_id",
"REDDIT_CLIENT_SECRET": "your_client_secret",
"REDDIT_USERNAME": "your_reddit_username",
"REDDIT_PASSWORD": "your_reddit_password"
}
}
}
}Replace /path/to/reddit-mcp with the actual path to your cloned directory.
Tools
Tool | Description | Key Parameters |
| Search posts by query |
|
| Browse a subreddit |
|
| Get post details + comments |
|
| User info + recent activity |
|
| Trending posts from r/popular | (none) |
Parameter details
sort (search):
relevance,hot,top,newsort (subreddit):
hot,new,top,risingsort (comments):
best,top,new,controversialtime_filter:
hour,day,week,month,year,allcontent_type:
overview,posts,commentslimit: 1-25 for most tools, 1-50 for comments
How it works
Uses the Reddit Data API (REST) at
https://oauth.reddit.comAuthenticates via OAuth 2.0 password grant (script app)
All operations are read-only GET requests
Tokens cached in memory, auto-refreshed before expiry
Respects Reddit rate limits (100 req/min authenticated)
Built for Claude Code and Claude Desktop via the Model Context Protocol (MCP)
License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/hamzashahbaz/reddit-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server