Skip to main content
Glama
jimbolo

Reddit MCP Server

by jimbolo

Reddit MCP Server

Claude(および他のMCPクライアント)がRedditの投稿とコメントをスキャン、検索、閲覧できるようにするMCPサーバーです。

ツール

ツール

説明

scan_subreddit

サブレディットからソート順(hot/top/new/rising)で投稿を取得します(コメントの取得もオプションで可能)

search_posts

1つまたはすべてのサブレディットを対象に、キーワードでRedditの投稿を検索します

get_post_details

特定の投稿の完全な詳細とコメントを取得します

find_subreddits

トピックのキーワードでサブレディットを検索します

get_subreddit_info

サブレディットのメタデータを取得します

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 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に切り替えるのが簡単になります。

A
license - permissive license
-
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

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

  • A
    license
    B
    quality
    C
    maintenance
    An 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.
    8
    1
    The Unlicense
  • A
    license
    -
    quality
    D
    maintenance
    A 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.
    18
    1
    MIT
  • A
    license
    -
    quality
    D
    maintenance
    Provides read-only access to Reddit through 8 tools for searching, browsing, and retrieving posts, comments, and user data, compatible with any MCP client.
    MIT

View all related MCP servers

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…

View all MCP Connectors

Latest Blog Posts

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