Provides tools for fetching content (posts, comments, user info, subreddit info) from Reddit and creating content (posts, replies) with appropriate credentials.
Reddit MCP Server ⚙️
A Model Context Protocol (MCP) that provides tools for fetching and creating Reddit content.
Note: This is a fork of the original reddit-mcp-server by Alexandros Lekkas, updated with pnpm, tsup build system, and npx execution support.
🔧 Available Tools (Features)
Read-only Tools (Client Credentials):
get_reddit_post(subreddit, post_id)
- Get a specific Reddit postget_top_posts(subreddit, time_filter, limit)
- Get top posts from a subredditget_user_info(username)
- Get information about a Reddit userget_subreddit_info(subreddit_name)
- Get information about a subredditget_trending_subreddits()
- Get currently trending subredditssearch_reddit(query, subreddit?, sort?, time_filter?, limit?, type?)
- Search for posts on Redditget_post_comments(post_id, subreddit, sort?, limit?)
- Get comments for a specific Reddit postget_user_posts(username, sort?, time_filter?, limit?)
- Get posts submitted by a specific userget_user_comments(username, sort?, time_filter?, limit?)
- Get comments made by a specific user
Write Tools (User Credentials Required):
create_post(subreddit, title, content, is_self)
- Create a new post in a subredditreply_to_post(post_id, content, subreddit?)
- Post a reply to an existing Reddit post
🔌 Installation
Installing via Smithery
To install Reddit Content Integration Server for Claude Desktop automatically via Smithery:
Manual Installation
git clone https://github.com/jordanburke/reddit-mcp-server
- Create a Reddit app here
Make sure to select "script"!
- Copy the client ID and client secret
- Create a
.env
file based on.env.example
Do this with your REDDIT_CLIENT_ID
and REDDIT_CLIENT_SECRET
If you want to write posts you need to include your REDDIT_USERNAME
and REDDIT_PASSWORD
- Install dependencies with
pnpm install
- Build the project with
pnpm build
- Run with
pnpm dev
and open the inspection server (http://127.0.0.1:6274/)
- If the connection works, add this to your MCP config (for Cursor or Claude Desktop)
🛠️ Development
Commands
Version & Help
Streamable MCP Endpoint (Hono Server)
In addition to the standard npx execution, this server also supports a Streamable MCP endpoint via Hono for direct HTTP integration:
The server will be available at http://localhost:3000
with the MCP endpoint at http://localhost:3000/mcp
.
OAuth Security (Optional)
The HTTP server supports optional OAuth protection to secure your endpoints:
Generate a secure token:
Enable OAuth with generated token:
Make authenticated requests:
OAuth Configuration:
OAUTH_ENABLED=true
- Enables OAuth protection (disabled by default)OAUTH_TOKEN=your-token
- Your custom token (or use--generate-token
)- Without OAuth, the server is accessible without authentication
- Health check (
/
) is always unprotected; only/mcp
requires authentication
MCP Client Configuration
For MCP clients connecting to an OAuth-protected server, configure according to the MCP Authorization specification:
HTTP-based MCP Clients (e.g., web applications):
Direct HTTP MCP Client:
Custom MCP Client Implementation:
Important Notes:
- Replace
YOUR_TOKEN
with your generated OAuth token - Authorization header MUST be included in every request to
/mcp
- Tokens MUST NOT be included in URI query strings per MCP specification
- Use HTTPS in production for secure token transmission
For Remote/Deployed Servers: When connecting to a remote Reddit MCP server (e.g., deployed on your infrastructure):
MCP Client Configuration for Remote Server:
Claude Desktop/Cursor with Remote Server (HTTP): For remote servers, you can use a proxy approach:
For Claude Desktop/Cursor (stdio transport): OAuth is not applicable when using the traditional npx execution method. Use the stdio configuration instead:
Remote Deployment Examples
Deploy to your infrastructure and share the URL:
- Generate secure token:
- Deploy with Docker on your server:
- Share with your team:
- Team members connect:
This allows integration with systems that support HTTP-based MCP communication, similar to the cq-api and agent-todo implementations.
🐳 Docker Usage
Pull from GitHub Container Registry
Run with Docker
Build Locally
Docker Compose Example
📚 Credits
- This is a fork of the original reddit-mcp-server by Alexandros Lekkas.
- Credit goes to the Python Reddit MCP Server by Arindam200 for the inspiration and implementation of these tools.
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
A Model Context Protocol (MCP) that provides tools for fetching and creating Reddit content.
Related MCP Servers
- AsecurityAlicenseAqualityA Model Context Protocol (MCP) server for managing social media posts, currently supporting X (formerly Twitter).Last updated -38JavaScriptMIT License
Upstash MCP Serverofficial
AsecurityAlicenseAqualityModel Context Protocol (MCP) is a new, standardized protocol for managing context between large language models (LLMs) and external systems. In this repository, we provide an installer as well as an MCP Server for Upstash Developer API's.Last updated -167343TypeScriptMIT License- -securityAlicense-qualityA tool for Model Context Protocol (MCP) that allows you to analyze web content and add it to your knowledge base, storing content as Markdown files for easy viewing with tools like Obsidian.Last updated -9PythonMIT License
- AsecurityAlicenseAqualityA Model Context Protocol (MCP) server designed to easily dump your codebase context into Large Language Models (LLMs).Last updated -191JavaScriptApache 2.0