reddit-mcp
Provides read-only access to public Reddit content through the official Reddit Data API, with tools for searching posts, retrieving individual posts and comments, fetching subreddit metadata, and viewing user 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-mcpsearch Reddit for posts about quantum computing"
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.
Local Reddit MCP
A local, single-user, read-only Reddit MCP (Model Context Protocol) server. It exposes five tools that retrieve public Reddit content through the official Reddit Data API with OAuth 2.0. Retrieved content is cached locally in SQLite with full-text search and TTL expiry.
Key properties
Read-only: No write actions to Reddit. No scraping. Uses the official Reddit Data API.
Local & single-user: Runs on your machine via stdio. No remote HTTP transport.
Privacy-conscious: Secrets stored in OS-backed encrypted storage (Windows DPAPI). No secrets in logs, commits, or tool results. Cache is local and purgeable.
Bounded: Every tool enforces input/output caps. No arbitrary URL fetching.
Honest: Deleted, restricted, and NSFW content represented honestly. Every result carries provenance, timestamps, expiry, stale flag, and truncation markers.
Secure: SSRF prevention via host allowlist. Rate-limit handling with backoff. Circuit breaker. Untrusted content marked.
Related MCP server: reddit-mcp
Tools
search_reddit— search public posts/subreddits by query with bounded paginationget_post— retrieve a single post by ID or permalinkget_post_comments— retrieve comments for a post with bounded depth/countget_subreddit_info— retrieve subreddit metadataget_user_content— retrieve a user's public posts/comments with bounds
Prerequisites
Node.js ≥ 22.9.0 (requires the built-in
node:sqlitemodule and the--env-file-if-existsflag)A Reddit developer application (https://www.reddit.com/prefs/apps) with OAuth credentials
Quick start
npm install
cp .env.example .env # then add your Reddit credentials
npm run build
npm run auth -- login # complete OAuth in browser
npm run start # start MCP stdio serverMCP client configuration
Add the server to your MCP client configuration, e.g.:
{
"mcpServers": {
"reddit": {
"command": "node",
"args": ["/path/to/RedditMCP/dist/index.js"],
"env": {
"REDDIT_CLIENT_ID": "your_client_id",
"REDDIT_REDIRECT_URI": "http://127.0.0.1:8888/callback",
"REDDIT_USER_AGENT": "RedditMCP/1.0 (by your_username)",
"CACHE_DB_PATH": "./data/reddit-cache.db"
}
}
}
}Store REDDIT_CLIENT_SECRET in your MCP client's secure/secret mechanism rather than committing it or placing it in a shared config file.
Environment variables
Variable | Required | Default | Description |
| yes | — | Reddit app client ID |
| no | — | Reddit app secret; empty = PKCE flow |
| yes |
| Loopback redirect URI |
| yes | — | Descriptive User-Agent (Reddit requires) |
| no |
| SQLite cache location |
| no |
| Cache TTL in seconds |
| no |
| Max cached items (oldest evicted) |
| no |
| Log level |
| no |
| Outbound HTTP timeout |
| no |
| Retries on transient failures |
| no |
| Failures before circuit opens |
| no |
| Outbound rate limit |
Commands
Command | Description |
| Start the MCP stdio server |
| Authenticate with Reddit OAuth |
| Check authentication status |
| Revoke and delete stored tokens |
| Run health checks (config/db/auth) |
| Show cache statistics |
| Purge all cached data |
The npm scripts load a local .env file automatically when run from the project directory.
Development
npm run quality # format check, lint, typecheck, tests, audit
npm test # unit + integration tests
npm run test:e2e # end-to-end MCP tests (vitest.e2e.config.ts)
npm run format # format sources
npm run lint # eslint
npm run typecheck # tsc --noEmitCI (.github/workflows/ci.yml) runs format check, lint, typecheck, tests, build, e2e tests, and npm audit on push/PR to main/master.
Documentation
docs/install.md— installation and MCP client setupdocs/oauth-setup.md— OAuth app registration, scopes, and token storagedocs/operations.md— operations, privacy, retention, and troubleshootingdocs/decisions.md— design decisions
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.
Related MCP Servers
- AlicenseBqualityCmaintenanceAn MCP server that provides both read-only and authenticated access to Reddit content and interactions without requiring a developer API key. It enables users to browse posts, search subreddits, and perform write actions like commenting and voting by leveraging browser session cookies.Last updated81The Unlicense
- Flicense-qualityDmaintenanceA read-only Model Context Protocol server that enables browsing subreddits, searching within subreddits, retrieving comment trees, and looking up user activity on Reddit via natural language.Last updated
- AlicenseAqualityCmaintenanceA dependency-free MCP server that reads Reddit through its RSS feeds, enabling search, browsing subreddits, and reading post comments without any API keys or authentication.Last updated31610MIT
- Alicense-qualityDmaintenanceA read-only MCP server that connects to the Reddit Data API to search posts, browse subreddits, read comments, view user profiles, and check trending content through the Model Context Protocol.Last updated271MIT
Related MCP Connectors
Reddit MCP — public Reddit data via JSON endpoints (no auth required)
Reddit & X data for AI agents over MCP. Semantic search, hosted, no Reddit API.
Browse and manage Reddit posts, comments, and threads. Fetch user activity, explore hot/new/rising…
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/sunil-gumatimath/reddit-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server