Reddit MCP Server
Reddit MCP Server
MCP 服务器,让 Claude(及其他 MCP 客户端)能够扫描、搜索和阅读 Reddit 帖子和评论。
工具
工具 | 描述 |
| 按排序方式(热门/最新/新帖/上升)获取子版块帖子,可选包含评论 |
| 按关键词在某个或所有子版块中搜索 Reddit 帖子 |
| 获取特定帖子的完整详情和评论 |
| 按主题关键词查找子版块 |
| 获取子版块的元数据 |
Related MCP server: reddit-mcp
设置
npm install
npm run build需要 Node.js 18 或更高版本。
服务器使用 Reddit 的公共 JSON 端点,不需要 Reddit API 凭据。
Claude Desktop 配置
在 Claude Desktop 配置文件中添加(macOS/Linux 上为 ~/.config/Claude/claude_desktop_config.json,Windows 上为 %APPDATA%\Claude\claude_desktop_config.json):
{
"mcpServers": {
"reddit": {
"command": "node",
"args": ["/absolute/path/to/reddit-mcp/dist/server.js"]
}
}
}将示例路径替换为你克隆此仓库的路径。
VS Code MCP 配置
在 VS Code 设置中添加(.vscode/mcp.json):
{
"servers": {
"reddit": {
"type": "stdio",
"command": "node",
"args": ["${workspaceFolder}/dist/server.js"]
}
}
}在仓库工作区之外配置时,请将 ${workspaceFolder} 替换为克隆仓库的绝对路径。
使用示例
连接后,Claude 可以使用这些工具:
扫描子版块: "显示本周 r/programming 的热门 20 篇帖子"
搜索帖子: "在 Reddit 上搜索 'MCP 服务器教程'"
获取帖子详情: "获取第一篇帖子的评论"
架构
src/server.ts— MCP 服务器入口、工具注册、stdio 传输src/tools/— 带输入验证的各个工具处理器src/reddit/— 带提供者抽象的 Reddit 数据客户端src/reddit/providers/publicJson.ts— 公共 JSON 端点提供者(MVP)src/core/— 共享类型、验证和错误分类src/tests/— 缓存和评论去重的单元测试
提供者接口(RedditProvider)使得以后无需更改任何工具代码即可轻松切换到 Reddit OAuth API。
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
- AlicenseBqualityCmaintenanceAn MCP server that provides both read-only and authenticated access to Reddit content and interactions without requiring a developer API key. It enables users to browse posts, search subreddits, and perform write actions like commenting and voting by leveraging browser session cookies.81The Unlicense
- Alicense-qualityDmaintenanceEnables fetching and reading Reddit content such as posts, comments, and subreddit listings via the MCP protocol.29MIT
- Alicense-qualityDmaintenanceA read-only MCP server that connects to the Reddit Data API to search posts, browse subreddits, read comments, view user profiles, and check trending content through the Model Context Protocol.181MIT
- Alicense-qualityDmaintenanceProvides read-only access to Reddit through 8 tools for searching, browsing, and retrieving posts, comments, and user data, compatible with any MCP client.MIT
Related MCP Connectors
Reddit MCP — public Reddit data via JSON endpoints (no auth required)
Lemmy MCP — public reads on any Lemmy instance.
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/jimbolo/reddit-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server