Skip to main content
Glama

Reddit MCP

by GridfireAI

Reddit MCP

即插即用的MCP服务器,用于浏览、搜索和阅读 Reddit。

演示

以下是一段简短的视频,展示了如何在 Claude Desktop 中使用它:

https://github.com/user-attachments/assets/a2e9f2dd-a9ac-453f-acd9-1791380ebdad

特征

  • 使用pydantic进行详细的参数验证
  • 使用可靠的PRAW
  • 得益于 PRAW,内置速率限制保护

注意事项

  • 目前仅支持读取功能。如果您想使用写入功能,请点赞此问题发送 PR !🙌
  • 工具使用代币。要使用 Claude 的此功能,您可能需要成为专业用户才能使用许多工具调用。免费套餐用户只需少量使用即可。代币的使用由您自行负责。

安装

先决条件:Reddit API 凭证

如果您还没有开发者应用,请在您的 Reddit 帐户中创建一个。这将为您提供一个client_idclient_secret以便在后续步骤中使用。如果您已经拥有这些,则可以跳过此步骤。

克劳德桌面

要安装到 Claude Desktop:

  • 按照此处的说明进行操作,直到“在任何文本编辑器中打开配置文件”部分。
  • 根据您的首选安装方法将以下内容添加到文件中:

使用uvx (推荐)

"mcpServers": { "reddit": { "command": "uvx", "args": ["reddit-mcp"], "env": { "REDDIT_CLIENT_ID": "<client_id>", "REDDIT_CLIENT_SECRET": "<client_secret>" } } }

使用 PIP

首先安装包:

pip install reddit-mcp

然后在配置文件中添加以下内容:

"mcpServers": { "reddit": { "command": "python", "args": ["-m", "reddit_mcp"], "env": { "REDDIT_CLIENT_ID": "<client_id>", "REDDIT_CLIENT_SECRET": "<client_secret>" } } }

其他的

您可以将此服务器与任何MCP 客户端一起使用,包括代理框架(LangChain、LlamaIndex、AutoGen 等)。有关 AutoGen 集成的示例,请查看示例

工具

服务器将公开的工具是:

姓名描述
get_comment访问评论
get_comments_by_submission访问提交的评论
get_submission访问提交
get_subreddit通过名称访问 subreddit
search_posts搜索 subreddit 中的帖子
search_subreddits按名称或描述搜索 subreddits

贡献

欢迎贡献!更多信息请参阅CONTRIBUTING.md

致谢

  • PRAW是一个极其可靠的库 💙

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

即插即用的 MCP 服务器,使 AI 助手能够通过 PRAW 库浏览、搜索和阅读 Reddit 内容。

  1. 演示
    1. 特征
      1. 注意事项
        1. 安装
          1. 先决条件:Reddit API 凭证
          2. 克劳德桌面
          3. 使用uvx (推荐)
          4. 使用 PIP
          5. 其他的
        2. 工具
          1. 贡献
            1. 致谢

              Related MCP Servers

              • -
                security
                A
                license
                -
                quality
                An MCP server that helps AI assistants access text content from websites that implement bot detection, bridging the gap between what you can see in your browser and what the AI can access.
                Last updated -
                1
                Python
                Apache 2.0
              • -
                security
                F
                license
                -
                quality
                A specialized MCP server that enables AI agents to interact with Reddit, including reading posts, creating content, and managing subreddit configurations.
                Last updated -
                71
                5
                TypeScript
              • -
                security
                F
                license
                -
                quality
                An MCP server that connects AI assistants to SearchAgora, enabling users to search for, discover, and purchase products across the web through natural language conversations.
                Last updated -
                1
                Python
                • Apple
              • -
                security
                A
                license
                -
                quality
                An MCP server that enables AI assistants to control a web browser through natural language commands, allowing them to navigate websites and extract information via SSE transport.
                Last updated -
                505
                Python
                MIT License
                • Apple

              View all related MCP servers

              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/GridfireAI/reddit-mcp'

              If you have feedback or need assistance with the MCP directory API, please join our Discord server