reddit-mcp-server
Reddit MCP 服务器⚙️
模型上下文协议 (MCP) 提供用于获取和创建 Reddit 内容的工具。
🧑💻 关于
https://www.linkedin.com/feed/update/urn:li:activity:7328864060534419457/
Related MCP server: mcp-server-docker
🔧 可用工具(功能)
只读工具(客户端凭证):
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,取决于您使用的代理)
"mcpServers": {
"reddit": {
"command": "node",
"args": [
"C:\\path\\to\\reddit-mcp-server\\build\\index.js" // Replace this with your local path to build/index.js
],
"env": {
"REDDIT_CLIENT_ID": "😜",
"REDDIT_CLIENT_SECRET": "😜",
"REDDIT_USERNAME": "😜",
"REDDIT_PASSWORD": "😜"
},
"autoApprove": [
"get_reddit_post",
"get_top_posts",
"get_user_info",
"get_subreddit_info",
"get_trending_subreddits",
"create_post",
"reply_to_post"
] // You don't need to add this, but it makes it so that you don't have to keep clicking approve
}
}(确保用实际密钥替换环境变量,而不是😜表情符号)
📚 致谢
这些工具的灵感和实现,均由 Arindam200 开发的Python Reddit MCP Server提供。目前,该仓库只是 Python 实现的 Node.js 移植版本。
感谢Eugene Sh提供的关于如何构建 MCP 服务器的教程(该教程可作为此实现的参考)。
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- MIT
- MIT
- AlicenseNot gradedqualityDmaintenanceFacebook MCP server for automating posts, comment moderation, insights, and sentiment filtering.207PythonMIT
Related MCP Connectors
Reddit MCP — public Reddit data via JSON endpoints (no auth required)
BGG MCP provides access to the BoardGameGeek API through the Model Context Protocol, enabling retr…
Browse and manage Reddit posts, comments, and threads. Fetch user activity, explore hot/new/rising…
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/aflekkas/reddit-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server