Integrations
Used for storing and accessing Reddit API credentials and user authentication information through environment variables.
Used for distribution of the MCP server code and documentation.
Runtime environment for executing the MCP server, with configuration options for connecting the server to Claude or other AI tools.
Reddit MCP 服务器⚙️
模型上下文协议 (MCP) 提供用于获取和创建 Reddit 内容的工具。
🧑💻 关于
https://www.linkedin.com/feed/update/urn:li:activity:7328864060534419457/
🔧 可用工具(功能)
只读工具(客户端凭证):
get_user_info(username)
-获取详细的用户分析和参与度洞察get_top_posts(subreddit, time_filter, limit)
- 获取并分析热门帖子get_subreddit_stats(subreddit)
- 获取全面的 subreddit 分析get_trending_subreddits()
- 获取热门 subreddits 列表
读写工具(用户凭证):
create_post(subreddit, title, content, flair, is_self)
- 创建优化帖子reply_to_post(post_id, content, subreddit)
- 添加包含参与度洞察的回复reply_to_comment(comment_id, content, subreddit)
- 添加策略性回复
🔌 安装
git clone https://github.com/alexandros-lekkas/reddit-mcp-server
- 在此创建 Reddit 应用程序
确保选择“脚本”!
- 复制客户端 ID 和客户端密钥
- 根据
.env.example
创建.env
文件
使用您的REDDIT_CLIENT_ID
和REDDIT_CLIENT_SECRET
执行此操作
如果您想写帖子,您需要包含您的REDDIT_USERNAME
和REDDIT_PASSWORD
(不用担心,我不会窃取它们😜)
- 使用
npm run dev
运行并打开检查服务器( http://127.0.0.1:6274/ )
- 如果连接正常,请将其添加到您的 MCP 配置中(对于 Cursor 或 Claude,取决于您使用的代理)
Copy
(确保用实际密钥替换环境变量,而不是😜表情符号)
📚 致谢
- 这些工具的灵感和实现,均由 Arindam200 开发的Python Reddit MCP Server提供。目前,该仓库只是 Python 实现的 Node.js 移植版本。
- 感谢Eugene Sh提供的关于如何构建 MCP 服务器的教程(该教程可作为此实现的参考)。
This server cannot be installed
local-only server
The server can only run on the client's local machine because it depends on local resources.
reddit-mcp-服务器
Related MCP Servers
- Python
- Python
- PythonMIT License
- -securityAlicense-qualityMCP server that enables interaction with Reddit, allowing users to read trending posts, analyze discussions, create posts, add comments, and vote on content through Claude and Cursor.Last updated -PythonMIT License