Skip to main content
Glama
MCP Server Reddit

MCP Server Reddit

by Hawstein

MCP 服务器 Reddit

铁匠徽章

一个模型上下文协议服务器,为 LLM 提供访问 Reddit 公共 API 的权限。该服务器使 LLM 能够与 Reddit 的内容进行交互,包括浏览首页帖子、访问子版块信息以及阅读帖子评论。

该服务器使用redditwarp与 Reddit 的公共 API 进行交互,并通过 MCP 协议公开功能。

视频演示(点击观看)

Clinde 的演示👇

MCP 服务器 Reddit - Clinde

Related MCP server: Reddit MCP Server

可用工具

  • get_frontpage_posts - 从 Reddit 首页获取热门帖子

    • 可选参数:

      • limit (整数):返回的帖子数量(默认值:10,范围:1-100)

  • get_subreddit_info - 获取有关 subreddit 的信息

    • 必需参数:

      • subreddit_name (字符串):子版块的名称(例如“Python”、“news”)

  • get_subreddit_hot_posts - 获取特定 subreddit 的热门帖子

    • 必需参数:

      • subreddit_name (字符串):子版块的名称(例如“Python”、“news”)

    • 可选参数:

      • limit (整数):返回的帖子数量(默认值:10,范围:1-100)

  • get_subreddit_new_posts - 从特定 subreddit 获取新帖子

    • 必需参数:

      • subreddit_name (字符串):子版块的名称(例如“Python”、“news”)

    • 可选参数:

      • limit (整数):返回的帖子数量(默认值:10,范围:1-100)

  • get_subreddit_top_posts - 获取特定 subreddit 的热门帖子

    • 必需参数:

      • subreddit_name (字符串):子版块的名称(例如“Python”、“news”)

    • 可选参数:

      • limit (整数):返回的帖子数量(默认值:10,范围:1-100)

      • time (字符串):热门帖子的时间过滤器(默认值:'',选项:'小时','天','周','月','年','全部')

  • get_subreddit_rising_posts - 获取特定 subreddit 的热门帖子

    • 必需参数:

      • subreddit_name (字符串):子版块的名称(例如“Python”、“news”)

    • 可选参数:

      • limit (整数):返回的帖子数量(默认值:10,范围:1-100)

  • get_post_content - 获取特定帖子的详细内容

    • 必需参数:

      • post_id (字符串):帖子的 ID

    • 可选参数:

      • comment_limit (整数):返回的顶级评论数(默认值:10,范围:1-100)

      • comment_depth (整数):评论树的最大深度(默认值:3,范围:1-10)

  • get_post_comments - 获取帖子评论

    • 必需参数:

      • post_id (字符串):帖子的 ID

    • 可选参数:

      • limit (整数):返回的评论数量(默认值:10,范围:1-100)

安装

使用Clinde (推荐)

使用 MCP Server Reddit 最简单的方法是通过 Clinde 桌面应用。只需下载并安装 Clinde,然后:

  1. 打开 Clinde 应用

  2. 导航到服务器页面

  3. 找到 mcp-server-reddit 并点击安装

就是这样!无需任何技术知识 - Clinde 会为您无缝处理所有安装和配置。

使用 uv(推荐)

使用uv时无需特殊安装。我们将使用uvx直接运行mcp-server-reddit 。

使用 PIP

或者,您可以通过 pip 安装mcp-server-reddit :

pip install mcp-server-reddit

安装后,您可以使用以下命令将其作为脚本运行:

python -m mcp_server_reddit

通过 Smithery 安装

要通过Smithery自动为 Claude Desktop 安装 MCP Server Reddit:

npx -y @smithery/cli install @Hawstein/mcp-server-reddit --client claude

配置

为 Claude.app 配置

添加到您的 Claude 设置:

"mcpServers": {
  "reddit": {
    "command": "uvx",
    "args": ["mcp-server-reddit"]
  }
}
"mcpServers": {
  "reddit": {
    "command": "python",
    "args": ["-m", "mcp_server_reddit"]
  }
}

为 Zed 配置

添加到您的 Zed settings.json:

"context_servers": [
  "mcp-server-reddit": {
    "command": "uvx",
    "args": ["mcp-server-reddit"]
  }
],
"context_servers": {
  "mcp-server-reddit": {
    "command": "python",
    "args": ["-m", "mcp_server_reddit"]
  }
},

问题示例

  • “Reddit 首页上当前的热门帖子有哪些?” (get_frontpage_posts)

  • “告诉我关于 r/ClaudeAI 子版块的信息”(get_subreddit_info)

  • “r/ClaudeAI 子版块中的热门帖子有哪些?” (get_subreddit_hot_posts)

  • “显示来自 r/ClaudeAI 的最新帖子”(get_subreddit_new_posts)

  • “r/ClaudeAI 上历来最热门的帖子有哪些?” (get_subreddit_top_posts)

  • “r/ClaudeAI 上现在哪些帖子最热门?” (get_subreddit_rising_posts)

  • “获取此 Reddit 帖子的完整内容和评论:[post_url]”(get_post_content)

  • “总结此 Reddit 帖子的评论:[post_url]”(get_post_comments)

调试

您可以使用 MCP 检查器来调试服务器。对于 uvx 安装:

npx @modelcontextprotocol/inspector uvx mcp-server-reddit

或者,如果您已将软件包安装在特定目录中或正在其上进行开发:

cd path/to/mcp_server_reddit
npx @modelcontextprotocol/inspector uv run mcp-server-reddit

执照

mcp-server-reddit 采用 MIT 许可证。这意味着您可以自由使用、修改和分发该软件,但须遵守 MIT 许可证的条款和条件。更多详细信息,请参阅项目仓库中的 LICENSE 文件。

Available Tools

8 tools
get_frontpage_postsC

Get hot posts from Reddit frontpage

Inputs: limit.

get_post_commentsC

Get comments from a post

Inputs: post_id (required), limit.

get_post_contentC

Get detailed content of a specific post

Inputs: post_id (required), comment_limit, comment_depth.

get_subreddit_hot_postsC

Get hot posts from a specific subreddit

Inputs: subreddit_name (required), limit.

get_subreddit_infoC

Get information about a subreddit

Inputs: subreddit_name (required).

get_subreddit_new_postsC

Get new posts from a specific subreddit

Inputs: subreddit_name (required), limit.

get_subreddit_rising_postsC

Get rising posts from a specific subreddit

Inputs: subreddit_name (required), limit.

get_subreddit_top_postsC

Get top posts from a specific subreddit

Inputs: subreddit_name (required), limit, time.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.5/5.0

    Scored across 8 tools

    Disambiguation5/5

    Every tool has a clearly distinct purpose with no ambiguity. The tools are organized by specific resources (frontpage, subreddit, post) and actions (get posts, get comments, get info), making it easy for an agent to select the right tool for each task without confusion.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern using snake_case, starting with 'get_' followed by a descriptive resource identifier. This predictable naming scheme enhances readability and usability across the entire tool set.

    Tool Count5/5

    With 8 tools, the server is well-scoped for its Reddit browsing purpose. Each tool earns its place by covering distinct aspects of Reddit content retrieval, from frontpage and subreddit posts to comments and subreddit information, without being overly sparse or bloated.

    Completeness4/5

    The tool set provides comprehensive coverage for browsing and retrieving Reddit content, including posts, comments, and subreddit info. A minor gap exists in the lack of write operations (e.g., posting or voting), but this is reasonable for a read-focused server, and agents can still perform core browsing workflows effectively.

    Maintenance

    ActivityInactive
    ResponsivenessLimited data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      A Model Context Protocol server that enables AI assistants like Claude to browse and analyze Reddit content, including searching subreddits, retrieving post details with comments, and viewing trending posts.
      10
      MIT
    • -
      license
      Not graded
      quality
      Not graded
      maintenance
      A Model Context Protocol server that enables AI assistants to fetch Reddit content including consensus on topics, top posts, helpful links, and related subreddits.
      2
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides access to public Reddit data through tools for searching subreddits, viewing posts, and reading comments without requiring authentication. It enables Model Context Protocol clients to interact with Reddit's public JSON API via stdio or HTTP transports.
      34 npm
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      A read-only Model Context Protocol server that enables browsing subreddits, searching within subreddits, retrieving comment trees, and looking up user activity on Reddit via natural language.
      -