The MCP Server Reddit provides access to Reddit's public API for LLMs, allowing them to browse frontpage posts, access subreddit information, and read comments through the Model Context Protocol.
The easiest installation method is through the Clinde desktop app:
With uv
, you can run mcp-server-reddit directly:
uvx mcp-server-reddit
Install via pip:
pip install mcp-server-reddit
After installation, run it as:
python -m mcp_server_reddit
For Claude Desktop, install automatically via Smithery:
npx -y @smithery/cli install @Hawstein/mcp-server-reddit --client claude
Add to your Claude settings:
If using uvx:
"mcpServers": {
"reddit": {
"command": "uvx",
"args": ["mcp-server-reddit"]
}
}
If using pip installation:
"mcpServers": {
"reddit": {
"command": "python",
"args": ["-m", "mcp_server_reddit"]
}
}
Add to your Zed settings.json:
If using uvx:
"context_servers": [
"mcp-server-reddit": {
"command": "uvx",
"args": ["mcp-server-reddit"]
}
],
If using pip installation:
"context_servers": {
"mcp-server-reddit": {
"command": "python",
"args": ["-m", "mcp_server_reddit"]
}
},
get_frontpage_posts
- Get hot posts from Reddit frontpage
limit
(integer): Number of posts to return (default: 10, range: 1-100)get_subreddit_info
- Get information about a subreddit
subreddit_name
(string): Name of the subreddit (e.g. 'Python', 'news')get_subreddit_hot_posts
- Get hot posts from a specific subreddit
subreddit_name
(string): Name of the subredditlimit
(integer): Number of posts to return (default: 10, range: 1-100)get_subreddit_new_posts
- Get new posts from a specific subreddit
subreddit_name
(string): Name of the subredditlimit
(integer): Number of posts to return (default: 10, range: 1-100)get_subreddit_top_posts
- Get top posts from a specific subreddit
subreddit_name
(string): Name of the subredditlimit
(integer): Number of posts to return (default: 10, range: 1-100)time
(string): Time filter for top posts (default: '', options: 'hour', 'day', 'week', 'month', 'year', 'all')get_subreddit_rising_posts
- Get rising posts from a specific subreddit
subreddit_name
(string): Name of the subredditlimit
(integer): Number of posts to return (default: 10, range: 1-100)get_post_content
- Get detailed content of a specific post
post_id
(string): ID of the postcomment_limit
(integer): Number of top-level comments to return (default: 10, range: 1-100)comment_depth
(integer): Maximum depth of comment tree (default: 3, range: 1-10)get_post_comments
- Get comments from a post
post_id
(string): ID of the postlimit
(integer): Number of comments to return (default: 10, range: 1-100)You can ask your LLM the following types of questions:
Use the MCP inspector for debugging:
npx @modelcontextprotocol/inspector uvx mcp-server-reddit
For specific directory installations or development:
cd path/to/mcp_server_reddit
npx @modelcontextprotocol/inspector uv run mcp-server-reddit
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "reddit" '{"command":"python","args":["-m","mcp_server_reddit"]}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"reddit": {
"command": "python",
"args": [
"-m",
"mcp_server_reddit"
]
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
2. Add this to your configuration file:
{
"mcpServers": {
"reddit": {
"command": "python",
"args": [
"-m",
"mcp_server_reddit"
]
}
}
}
3. Restart Claude Desktop for the changes to take effect