reddit-mcp
An 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.
README
reddit-mcp
MCP server for Reddit. Read-only mode works out of the box with no setup. Write mode requires a session cookie and comes with risks.
Read-Only Mode (No Setup Required)
Reading from Reddit requires no credentials. Just install and use:
pip install reddit-mcp-noapi
The read tools (reddit_read, reddit_listing, reddit_search) fetch public JSON from old.reddit.com. This is identical to viewing Reddit in a browser — no login required.
Note: Feeding Reddit content to AI probably violates Reddit's ToS. However, read-only access is indistinguishable from normal browsing, so there's no practical risk — Reddit can't tell the difference between you reading a post and Claude reading it.
MCP Config (Read-Only)
{
"mcpServers": {
"reddit": {
"command": "reddit-mcp"
}
}
}
CLI Examples (Read-Only)
# Read a post with comments
reddit read https://reddit.com/r/LocalLLaMA/comments/abc123/post_title
# List subreddit posts
reddit listing LocalLLaMA --limit 10
# Search
reddit search LocalLLaMA "llama 3"
Write Mode (Session Cookie Required)
⚠️ Read this before proceeding.
Write mode lets you post comments, submit posts, vote, and check your inbox. It works by using session cookies from your browser.
The Risk
This violates Reddit's Terms of Service. Reddit severely restricted API access in 2023 and stopped issuing new free API keys entirely in December 2025. Using automation to bypass their API restrictions is explicitly against their rules.
If Reddit detects automated access on your account, your account may be permanently banned. There's no way to predict if or when this will happen.
If You Accept the Risk
Option 1: Auto-Import from Browser (Recommended)
If you're logged into Reddit in your browser, the CLI can import your session automatically:
# Auto-detect browser
reddit auth
# Or specify a browser
reddit auth --browser firefox
reddit auth --browser chrome
This extracts the reddit_session cookie and saves it to ~/.config/reddit-mcp/session.json.
Supported browsers:
| Browser | Linux | macOS | Windows |
|---|---|---|---|
| Firefox | ✓ | ✓ | ✓ |
| Chrome | ✓ | ✓ | ✓ |
| Chromium | ✓ | ✓ | ✓ |
| Safari | — | ? | — |
| Edge | ✓ | ✓ | ✓ |
| Opera | ✓ | ✓ | ✓ |
| Brave | ✓ | ✓ | ✓ |
✓ = supported, ? = untested, — = not applicable
Notes:
- Snap and Flatpak installations of Chrome/Chromium are supported on Linux
- Chrome-based browsers may prompt for keychain/keyring access to decrypt cookies
- Safari support is untested — please report if it works (or doesn't)
Using different accounts: If you use different browsers for different Reddit accounts, specify the browser:
# Main account in Firefox
reddit auth --browser firefox
# Alt account in Chromium (use different session directory)
REDDIT_SESSION_DIR=~/.config/reddit-mcp-alt reddit auth --browser chromium
Option 2: Manual Cookie Export
If auto-import doesn't work:
- Log into Reddit in your browser
- Open DevTools (F12) → Application → Cookies →
https://www.reddit.com - Find the cookie named
reddit_session - Copy its value (it's a long JWT string starting with
eyJ...) - Create
~/.config/reddit-mcp/session.json:
{
"cookies": {
"reddit_session": "eyJhbGciOiJS... (your full cookie value here)"
},
"username": "your_reddit_username"
}
Note: Manual setup doesn't support auto-refresh. When your cookie expires, you'll need to repeat these steps. Use reddit auth if you want automatic refresh.
(Optional) Override the Session Location
By default, the session is stored in ~/.config/reddit-mcp/. You can override this in your MCP config if you want Claude to use a different Reddit account than your CLI default, or if you're running multiple instances with different accounts:
{
"mcpServers": {
"reddit": {
"command": "reddit-mcp",
"env": {
"REDDIT_SESSION_DIR": "/path/to/session/directory"
}
}
}
}
How Write Mode Works
- Write operations load the session cookie from
~/.config/reddit-mcp/session.json - The cookie is used to authenticate with
old.reddit.com - When the cookie expires, reddit-mcp automatically re-imports from the same browser
Reddit session cookies last a long time (months), so refreshes are rare. If auto-refresh fails (e.g., you logged out of the browser), just run reddit auth again.
Write Tools
| Tool | Description |
|---|---|
reddit_inbox |
Check replies, mentions, messages |
reddit_comment |
Reply to a post or comment |
reddit_submit |
Submit a new post |
reddit_vote |
Upvote/downvote |
reddit_delete |
Delete your own content |
CLI Examples (Write Mode)
# Check inbox
reddit inbox
reddit inbox --unread
# Post a comment (thing_id is t3_xxx for posts, t1_xxx for comments)
reddit comment t3_abc123 "This is my reply"
# Submit a text post
reddit submit LocalLLaMA "Post Title" --text "Post body here"
# Submit a link post
reddit submit LocalLLaMA "Post Title" --url "https://example.com"
# Vote (1 = upvote, -1 = downvote, 0 = remove vote)
reddit vote t3_abc123 1
# Delete your own post or comment
reddit delete t1_xyz789
Why This Exists
Reddit severely restricted third-party API access in 2023 and stopped issuing new free API keys entirely in December 2025. If you want to build something that interacts with Reddit programmatically, your options are:
- Be a large company that can negotiate API access
- Scrape public pages (read-only)
- Use session cookies (what this does for writes)
This tool exists because the AI/LLM community benefits from being able to interact with Reddit, and Reddit has made that impossible through official channels.
License
Unlicense — Public domain. Do whatever you want with it.
The author takes no responsibility for any consequences of using this tool.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.