Reddit MCP Server
Reddit MCP Server
Claude(および他のMCPクライアント)がRedditの投稿とコメントをスキャン、検索、閲覧できるようにするMCPサーバーです。
ツール
ツール | 説明 |
| サブレディットからソート順(hot/top/new/rising)で投稿を取得します(コメントの取得もオプションで可能) |
| 1つまたはすべてのサブレディットを対象に、キーワードでRedditの投稿を検索します |
| 特定の投稿の完全な詳細とコメントを取得します |
| トピックのキーワードでサブレディットを検索します |
| サブレディットのメタデータを取得します |
Related MCP server: reddit-mcp
セットアップ
npm install
npm run buildNode.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 server tutorial』を検索して」
投稿の詳細を取得: 「最初の投稿のコメントを取得して」
アーキテクチャ
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 deployed
Maintenance
Related MCP Connectors
Reddit MCP server: search posts, subreddit feeds, comments & user profiles as JSON. No API key.
Search public Reddit posts, browse subreddit feeds, and read posts, comments, and profiles.
Reddit MCP — public Reddit data via the Atom/RSS feeds.
Reddit API as MCP tools: search, subreddits, posts, comments, users, monitors, webhooks, feedback.
Related MCP Servers
- AlicenseBqualityDmaintenanceAn 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.83-
- AlicenseNot gradedqualityDmaintenanceEnables fetching and reading Reddit content such as posts, comments, and subreddit listings via the MCP protocol.10 npmMIT
- AlicenseNot gradedqualityBmaintenanceA local, read-only Reddit MCP server that provides tools for searching posts, retrieving posts/comments, subreddit information, and user content via the official Reddit Data API with caching and privacy-focused features.-
- AlicenseNot gradedqualityBmaintenanceMCP server for Reddit data — subreddits, users, search, live comments. No OAuth required.MIT