reddit_mcp
This server provides tools to read and interact with Reddit data through public JSON endpoints, plus one write action via browser-based authentication.
search_subreddit: Search for posts within a subreddit by keywords, with control over sort order (relevance, hot, top, new), time filter (day, week, month, year, all), and result count (up to 100).get_subreddit_posts: Fetch posts from a subreddit by feed type — hot, new, top, or rising — with a configurable limit (up to 100).get_post_thread: Retrieve a specific post and its top-level comments, with configurable sort order (confidence, top, new, old) and comment count.get_user_profile: Fetch a Reddit user's public profile metadata (karma, account age, etc.).get_user_activity: Fetch a user's recent posts and/or comments, filterable by type (overview, submitted, or comments only), up to 100 items.post_reply: Post a reply to a Reddit thread or comment using an authenticated browser session, given a full Reddit URL or post/comment ID.
Responses are normalized into compact objects and post/comment bodies are trimmed for conciseness. Inputs such as subreddit names, usernames, post IDs, sort values, and limits are validated before requests are made.
Provides tools to query Reddit data (posts, comments, user profiles), search subreddits with filtering and pagination, and post replies using authenticated browser automation.
Click on "Deploy 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_mcp show hot posts from r/Python"
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 Server
A Model Context Protocol server for reading Reddit data from public JSON endpoints.
What It Does
This codebase currently implements a read-only Reddit server with five MCP tools:
search_subredditget_subreddit_postsget_post_threadget_user_profileget_user_activity
The server does not require Reddit authentication for the implemented tools.
Related MCP server: systemprompt-mcp-reddit
How It Works
Uses
aiohttpfor async HTTP requests to Reddit's public.jsonendpoints.Reuses one shared client session and rotates User-Agent strings per request.
Normalizes Reddit responses into compact post, comment, profile, and activity objects.
Validates subreddit names, usernames, post IDs, sort values, and limits before making a request.
Installation
pip install -e .Requires Python 3.12 or newer.
Run
reddit-mcp-serverOptional transports:
reddit-mcp-server --transport http
reddit-mcp-server --transport sse
reddit-mcp-server --transport streamable-http
reddit-mcp-server --log-level DEBUG
reddit-mcp-server --versionDefault transport is stdio, which is the recommended mode for MCP clients.
MCP Client Configuration
Example configuration:
{
"mcpServers": {
"reddit": {
"command": "reddit-mcp-server",
"args": ["--transport", "stdio"]
}
}
}Tool Summary
Tool | Purpose |
| Search posts within a subreddit by keyword |
| Fetch hot/new/top/rising posts from a subreddit |
| Fetch a post and its top-level comments |
| Fetch a user's public profile metadata |
| Fetch a user's recent posts and/or comments |
Repository Layout
reddit_mcp_server/
├── server.py
├── cli_main.py
├── http_client.py
└── tools/
└── read/
├── __init__.py
├── common.py
├── search_subreddit.py
├── get_subreddit_posts.py
├── get_post_thread.py
├── get_user_profile.py
└── get_user_activity.pyDocumentation
API.mdcontains the parameter and response reference for the implemented tools.
Notes
The server trims long post bodies and comment bodies to keep responses compact for LLM usage.
Available Tools
6 toolsget_post_threadA
Fetch a specific post's text and its top comments.
Inputs: post_id (required), comment_limit, sort. Returns: object
get_subreddit_postsB
Fetch the front-page posts of a subreddit to surface active discussions.
Inputs: subreddit (required), category, limit. Returns: result
get_user_activityB
Fetch a Reddit user's recent posts and/or comments.
Inputs: username (required), activity_type, limit. Returns: result
get_user_profileA
Fetch a Reddit user's public profile: karma, account age, and metadata.
Inputs: username (required). Returns: object
post_replyA
Post a reply to a Reddit thread or comment using an authenticated browser session.
The browser must already be authenticated. If the session has expired, this tool will fail immediately with a descriptive error rather than waiting for a timeout.
Inputs: url_or_id (required), content (required). Returns: object
search_subredditB
Run highly targeted keyword searches within a specific subreddit community.
Inputs: subreddit (required), query (required), sort, time_filter, +1 more. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Each tool targets a distinct Reddit resource or action: fetching a post thread, subreddit posts, user activity, user profile, posting a reply, and searching a subreddit. No two tools have overlapping functionality.
All tools follow a consistent verb_noun pattern (get_*, post_*, search_*) with snake_case. The naming is predictable and clear.
6 tools is well-scoped for a Reddit interaction server, covering reading, searching, and posting without being overwhelming or too sparse.
The tool set covers core read and post operations, but lacks ability to create new posts (only replies), vote, or retrieve full comment trees. These are minor gaps for its scope.
Maintenance
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Query Reddit communities, posts, brands and trends from your AI agent. OAuth 2.1.
Reddit MCP server: search posts, subreddit feeds, comments & user profiles as JSON. No API key.
Reddit & X data for AI agents over MCP. Semantic search, hosted, no Reddit API.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that enables AI assistants like Claude to browse and analyze Reddit content, including searching subreddits, retrieving post details with comments, and viewing trending posts.10MIT
- AlicenseNot gradedqualityDmaintenanceA specialized MCP server that enables AI agents to interact with Reddit, including reading posts, creating content, and managing subreddit configurations.56 npm10Apache 2.0
- -licenseNot gradedqualityNot gradedmaintenanceA Model Context Protocol server that enables AI assistants to fetch Reddit content including consensus on topics, top posts, helpful links, and related subreddits.2-
- FlicenseNot gradedqualityDmaintenanceA 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.-