An MCP server that gives AI agents read and write access to Reddit via PRAW. Run it locally with uvx — no clone required.
Read (works in read-only mode):
search_reddit— full-text search across all of Reddit or a single subreddit (supportsflair:,author:,self:syntax)get_subreddit_posts— hot / new / top / controversial / rising listings, with optional flair filterget_subreddit_flairs— list available post flairsget_subreddit_info— metadata, rules, moderatorsget_submission/get_post_comments— full post details and threaded comment treesget_redditor_info— user profile + optional recent activityget_front_page/get_popular/get_all— front-page / popular / all listingssearch_subreddits/get_default_subreddits
Write (requires authenticated credentials):
submit_post— submit a text or link postsubmit_comment— comment on a post or reply to a commentvote— upvote / downvote / clearsave_post— save / unsaveget_authenticated_user
-
Create a Reddit app at https://www.reddit.com/prefs/apps (type: script).
-
Set credentials in your environment or a
.envfile (see.env.example):REDDIT_CLIENT_ID=... REDDIT_CLIENT_SECRET=... REDDIT_USER_AGENT=reddit-explorer-mcp/0.1 by <your_username> # Optional, for write access: REDDIT_USERNAME=... REDDIT_PASSWORD=...
-
Run with
uvx(stdio transport, the default for local MCP clients):uvx reddit-explorer-mcp
Or run an HTTP server:
uvx reddit-explorer-mcp --transport http --host 0.0.0.0 --port 8000
{
"mcpServers": {
"reddit": {
"command": "uvx",
"args": ["reddit-explorer-mcp"],
"env": {
"REDDIT_CLIENT_ID": "...",
"REDDIT_CLIENT_SECRET": "...",
"REDDIT_USER_AGENT": "reddit-explorer-mcp/0.1 by <your_username>"
}
}
}
}{
"mcpServers": {
"reddit": {
"url": "http://localhost:8000/mcp"
}
}
}uv sync
uv run reddit-mcp --help
uv run pytestMIT