Reddit搜索MCP服务器

一个提供AI驱动的Reddit搜索和发现功能的Model Context Protocol服务器,支持语义搜索、子论坛探索和趋势话题发现。

  • by lignertys
  • JavaScript
  • 本地部署
  • 1 星标
  • 更新于
在 GitHub 查看 lignertys/reddit-search-mcp

使用说明

reddapi.dev MCP服务器

A. 模型上下文协议(MCP) 提供人工智能驱动的Reddit搜索和发现功能的服务器。使用语义AI搜索数百万条Reddit帖子,探索子版块,发现热门话题。

由...驱动 reddapi.dev -Reddit搜索API。

安装

npm install -g reddit-search-mcp

或者直接使用npx运行:

npx reddit-search-mcp

配置

克劳德桌面版

添加到您的Claude Desktop配置文件中:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json 视窗: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "reddit-search-mcp": {
      "command": "npx",
      "args": ["reddit-search-mcp"],
      "env": {
        "REDDAPI_API_KEY": "your_api_key_here"
      }
    }
  }
}

光标

添加到光标设置(~/.cursor/mcp.json):

{
  "mcpServers": {
    "reddit-search-mcp": {
      "command": "npx",
      "args": ["reddit-search-mcp"],
      "env": {
        "REDDAPI_API_KEY": "your_api_key_here"
      }
    }
  }
}

帆板运动

添加到Windsurf MCP配置(~/.codeium/windsurf/mcp_config.json):

{
  "mcpServers": {
    "reddit-search-mcp": {
      "command": "npx",
      "args": ["reddit-search-mcp"],
      "env": {
        "REDDAPI_API_KEY": "your_api_key_here"
      }
    }
  }
}

VS代码(克劳德代码/Cline)

添加到您的VS代码设置或 .mcp.json 在您的项目中:

{
  "mcpServers": {
    "reddit-search-mcp": {
      "command": "npx",
      "args": ["reddit-search-mcp"],
      "env": {
        "REDDAPI_API_KEY": "your_api_key_here"
      }
    }
  }
}

开爪

添加到OpenClaw MCP配置:

{
  "mcpServers": {
    "reddit-search-mcp": {
      "command": "npx",
      "args": ["reddit-search-mcp"],
      "env": {
        "REDDAPI_API_KEY": "your_api_key_here"
      }
    }
  }
}

环境变量

变量 必填 描述
REDDAPI_API_KEY 高级功能没有 API密钥(请访问reddapi.dev)

获取API密钥: reddapi.dev

可用工具

reddit_search

使用语义AI搜索Reddit对话。

参数:

  • query (字符串,必填):自然语言搜索查询
  • limit (数字,可选):最大结果(1-100,默认值:20)

例子:

Search for discussions about mechanical keyboards for programming

reddit_list_subreddits

获取可用子版块的分页列表。

参数:

  • page (数字,可选):页码(默认值:1)
  • limit (数字,可选):每页结果(1-100,默认值:20)
  • search (字符串,可选):按名称、标题或描述筛选

reddit_get_subreddit

获取特定subreddit的详细信息。

参数:

  • subreddit (字符串,必填):不带r/前缀的子目录名称

reddit_get_trends

获取按受欢迎程度排序的Reddit热门话题和见解。

参数:

  • start_date (字符串,可选):开始日期筛选器(ISO 8601或YYYY-MM-DD,默认值:今天)
  • end_date (字符串,可选):结束日期筛选器(ISO 8601或YYYY-MM-DD,默认值:今天)
  • limit (数字,可选):热门话题的数量(1-100,默认值:20)

使用示例

研究一个主题:

You: What are developers saying about React Server Components?
Claude: [Uses reddit_search] Found 45 results...

探索社区:

You: Tell me about r/typescript
Claude: [Uses reddit_get_subreddit] r/typescript has 285,432 subscribers...

发现趋势:

You: What's trending in tech this week?
Claude: [Uses reddit_get_trends] Top trending topics...

链接

许可证

麻省理工学院