
reddit-mcp
by Arindam200·★ 285·综合分 48
通过 PRAW API 提供 Reddit 数据访问的 MCP 服务器,具有只读和身份验证功能。
概述
Reddit MCP 服务器是一个全面的实现,允许 AI 助手通过模型上下文协议与 Reddit API 进行交互。它提供广泛的功能,用于检索用户信息、分析和评论跨子版块的帖子,以及执行搜索。服务器提供只读操作和经过身份验证的发布/评论功能,包括智能分析功能,如参与度指标和时间建议。
试试问 AI
装完之后,这里有 5 个你可以让 AI 做的事:
什么时候选它
当您需要 AI 驱动的 Reddit 数据访问用于分析、社区管理或内容策略,同时需要读写能力时,请选择此服务器。
什么时候不要选它
如果您需要访问私密子版块或要求企业级 API 速率限制,请避免使用此服务器,因为它依赖于 Reddit 标准 API 及其限制。
此 server 暴露的工具
从 README 抽取出 12 个工具get_user_infoget_user_info(username)Get detailed user analysis with engagement insights
get_user_commentsget_user_comments(username, sort, time_filter, limit)Get a user's comment history with filtering options
get_user_postsget_user_posts(username, sort, time_filter, limit)Get a user's post/submission history with filtering options
get_top_postsget_top_posts(subreddit, time_filter, limit)Get and analyze top posts from a subreddit
search_postssearch_posts(query, subreddit, sort, time_filter, limit)Search for posts across Reddit or within a specific subreddit
get_subreddit_statsget_subreddit_stats(subreddit)Get comprehensive subreddit analysis
get_trending_subredditsget_trending_subreddits()Get list of trending subreddits
get_submission_by_urlget_submission_by_url(url)Get a Reddit submission by its URL
get_submission_by_idget_submission_by_id(submission_id)Get a Reddit submission by its ID
who_am_iwho_am_i()Get information about the currently authenticated user
create_postcreate_post(subreddit, title, content, flair, is_self)Create an optimized post in a subreddit
reply_to_postreply_to_post(post_id, content, subreddit)Add a reply with engagement insights to a post
可对比工具
安装
- 克隆存储库:
git clone https://github.com/Arindam200/reddit-mcp.git
cd reddit-mcp- 在 Claude Desktop 配置文件 (
~/Library/Application Support/Claude/claude_desktop_config.json) 中配置 MCP 服务器:
{
"mcpServers": {
"reddit": {
"command": "{{PATH_TO_UV}}",
"args": [
"--directory",
"{{PATH_TO_SRC}}",
"run",
"server.py"
],
"env": {
"REDDIT_CLIENT_ID": "your_client_id",
"REDDIT_CLIENT_SECRET": "your_client_secret",
"REDDIT_USERNAME": "your_username",
"REDDIT_PASSWORD": "your_password"
}
}
}
}- 重启 Claude Desktop。从 [Reddit 应用偏好页面](https://www.reddit.com/prefs/apps) 获取 Reddit API 凭据。
FAQ
- 支持哪些身份验证方法?
- 服务器支持只读访问(仅需 client_id 和 client_secret)和完全身份验证访问(需要客户端凭据加上用户名和密码才能发布和评论)。
- 我可以使用此服务器创建帖子和评论吗?
- 是的,但需要完全身份验证访问,包括您的 Reddit 用户名和密码。服务器提供了诸如 create_post()、reply_to_post() 和 reply_to_comment() 等工具。
reddit-mcp 对比
最后更新于 · 由 README + GitHub 公开数据自动生成。