
arindam200/reddit-mcp 是从 https://github.com/arindam200/reddit-mcp. 导入的 MCP 服务器候选
概览
arindam200/reddit-mcp 是从 https://github.com/arindam200/reddit-mcp. 导入的 MCP 服务器候选
概述(AI 翻译)
该仓库包含 Reddit 的模型上下文协议服务器实现,允许 AI 助手通过 PRAW(Python Reddit API Wrapper)访问和交互 Reddit 内容。
什么是MCP?
模型上下文协议(MCP)是一项标准,用于使AI助手能够与外部服务、工具和数据源接口。该服务器实现了MCP规范,以提供对Reddit内容的访问。
想了解更多关于MCP的信息,请观看此视频
特色
- 通过参与度分析获取详细的用户信息
- 带灵活筛选功能检索用户评论和帖子历史
- 从任何子版块获取和分析热门帖子
- 使用搜索词搜索整个Reddit或特定子版块内的帖子
- 获取全面的子版统计数据和健康指标
- 查看具有增长趋势的子版块
- 创建带有时间建议的战略性帖子
- 通过优化回复帖子和评论
- AI驱动的洞察与建议
- 智能响应格式及互动指标
安装
-
克隆此仓库
-
连接到MCP服务器
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Reddit MCP Server
This repository contains a Model Context Protocol server implementation for Reddit that allows AI assistants to access and interact with Reddit content through PRAW (Python Reddit API Wrapper).
What is MCP?
The Model Context Protocol (MCP) is a standard for enabling AI assistants to interface with external services, tools, and data sources. This server implements the MCP specification to provide access to Reddit content.
To know more about MCP, Check this video
Features
- Get detailed user information with engagement analysis
- Retrieve user comment and post history with flexible filtering
- Fetch and analyze top posts from any subreddit
- Search for posts across all of Reddit or within specific subreddits using search terms
- Get comprehensive subreddit statistics and health metrics
- View trending subreddits with growth patterns
- Create strategic posts with timing recommendations
- Reply to posts and comments with engagement optimization
- AI-driven insights and recommendations
- Smart response formatting with engagement metrics
Installation
- Clone this repository
git clone https://github.com/Arindam200/reddit-mcp.git
cd reddit-mcp
-
Connect to the MCP server
Copy the below json with the appropriate {{PATH}} values:
{ "mcpServers": { "reddit": { "command": "{{PATH_TO_UV}}", // Run `which uv` and place the output here "args": [ "--directory", "{{PATH_TO_SRC}}", // cd into the repo, run `pwd` and enter the output here "run", "server.py" ], "env": { "REDDIT_CLIENT_ID": "your_client_id", "REDDIT_CLIENT_SECRET": "your_client_secret", "REDDIT_USERNAME": "your_username", // Optional for authenticated operations "REDDIT_PASSWORD": "your_password" // Optional for authenticated operations } } } }You can obtain Reddit API credentials by creating an app at Reddit’s app preferences page.
For Claude, save this as
claude_desktop_config.jsonin your Claude Desktop configuration directory at:~/Library/Application Support/Claude/claude_desktop_config.jsonFor Cursor, save this as
mcp.jsonin your Cursor configuration directory at:~/.cursor/mcp.json -
Restart Claude Desktop / Cursor
Open Claude Desktop and you should now see Reddit as an available integration.
Or restart Cursor.
Available Tools
The server provides the following tools:
Read-only Tools (require only client credentials):
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →配置
{
"mcpServers": {
"reddit": {
"command": "{{PATH_TO_UV}}", // Run `which uv` and place the output here
"args": [
"--directory",
"{{PATH_TO_SRC}}", // cd into the repo, run `pwd` and enter the output here
"run",
"server.py"
],
"env": {
"REDDIT_CLIENT_ID": "your_client_id",
"REDDIT_CLIENT_SECRET": "your_client_secret",
"REDDIT_USERNAME": "your_username", // Optional for authenticated operations
"REDDIT_PASSWORD": "your_password" // Optional for authenticated operations
}
}
}
}