Skip to main content
Glama

Reddit MCP

ライセンス: MIT

Reddit を閲覧、検索、読むためのプラグアンドプレイMCPサーバー。

デモ

Claude Desktop でこれをどのように使用するかを示した短いビデオを以下に示します。

https://github.com/user-attachments/assets/a2e9f2dd-a9ac-453f-acd9-1791380ebdad

Related MCP server: systemprompt-mcp-reddit

特徴

  • pydanticによる詳細なパラメータ検証

  • 信頼性の高いPRAWライブラリを内部で使用

  • PRAWによるレート制限保護を内蔵

注意点

  • 現時点では読み取り機能のみサポートしています。書き込み機能をご利用になりたい場合は、問題に賛成票を投じるか、プルリクエストを送信してください!🙌

  • ツールはトークンを使用します。Claudeでこの機能を使用するには、多くのツール呼び出しを行うためにProユーザーになる必要がある場合があります。無料プランのユーザーは、軽めのツール使用であれば問題ありません。トークンの使用はお客様の責任となります。

インストール

前提条件: Reddit API 認証情報

Redditアカウントで開発者アプリをまだ作成していない場合は、作成してください。これにより、次の手順で使用するclient_idとclient_secretが発行されます。既にこれらをお持ちの場合は、この手順をスキップしてください。

クロードデスクトップ

Claude Desktop にインストールするには:

  • 「任意のテキスト エディターで構成ファイルを開く」セクションまで、ここの指示に従ってください。

  • 希望するインストール方法に応じて、ファイルに以下を追加します。

uvxの使用(推奨)

"mcpServers": {
  "reddit": {
    "command": "uvx",
    "args": ["reddit-mcp"],
    "env": {
      "REDDIT_CLIENT_ID": "<client_id>",
      "REDDIT_CLIENT_SECRET": "<client_secret>"
    }
  }
}

PIPの使用

まずパッケージをインストールします:

pip install reddit-mcp

次に、構成ファイルに次の内容を追加します。

"mcpServers": {
  "reddit": {
    "command": "python",
    "args": ["-m", "reddit_mcp"],
    "env": {
      "REDDIT_CLIENT_ID": "<client_id>",
      "REDDIT_CLIENT_SECRET": "<client_secret>"
    }
  }
}

その他

このサーバーは、エージェントフレームワーク(LangChain、LlamaIndex、AutoGenなど)を含むあらゆるMCPクライアントで使用できます。AutoGenとの統合例については、サンプルをご覧ください。

ツール

サーバーが公開するツールは次のとおりです。

名前

説明

get_comment

コメントにアクセスする

get_comments_by_submission

提出物のコメントにアクセスする

get_submission

提出物にアクセスする

get_subreddit

名前でサブレディットにアクセスする

search_posts

サブレディット内の投稿を検索する

search_subreddits

名前または説明でサブレディットを検索

貢献

貢献を歓迎します!詳細については、 CONTRIBUTING.md をご覧ください。

謝辞

  • 驚くほど信頼性の高いライブラリのPRAW💙

Available Tools

6 tools
get_comment_by_idA
Retrieve a specific comment by ID.

Args:
    comment_id: ID of the comment to retrieve

Returns:
    Comment details with any replies

Inputs: comment_id (required).

get_comments_by_submissionA
Retrieve comments from a specific submission.

Args:
    submission_id: ID of the submission to get comments from
    replace_more: Whether to replace MoreComments objects with actual comments

Returns:
    List of comments with their replies

Inputs: submission_id (required), replace_more.

get_submissionA
Retrieve a specific submission by ID.

Args:
    submission_id: ID of the submission to retrieve

Returns:
    Detailed information about the submission

Inputs: submission_id (required).

get_subredditB
Retrieve a subreddit by name.

Args:
    subreddit_name: Name of the subreddit to retrieve

Returns:
    Detailed information about the subreddit

Inputs: subreddit_name (required).

search_postsC
Search for posts within a subreddit.

Args:
    params: Search parameters including subreddit name, query, and filters

Returns:
    List of matching posts with their details

Inputs: params (required).

search_subredditsC
Search for subreddits using either name-based or description-based search.

Args:
    by: Search parameters, either SearchByName or SearchByDescription

Returns:
    List of matching subreddits with their details

Inputs: by (required).

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 6 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose targeting specific Reddit entities: comments, submissions, subreddits, and searches. No overlap exists between tools like get_comment_by_id and get_comments_by_submission, which serve different retrieval needs.

    Naming Consistency5/5

    All tools follow a consistent verb_noun pattern with underscores (e.g., get_comment_by_id, search_posts). The naming is predictable and readable throughout the set, with no deviations in style.

    Tool Count4/5

    Six tools is reasonable for a Reddit API server, covering core read operations. It's slightly lean but includes key functionalities like retrieval and search, though it lacks write operations which might be expected in a full-featured server.

    Completeness3/5

    The tool set provides good read coverage for comments, submissions, and subreddits, but there are notable gaps: no create, update, or delete operations (e.g., posting comments or submissions). This limits agents to read-only workflows, which may cause failures in interactive scenarios.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    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
    • A
      license
      A
      quality
      D
      maintenance
      An MCP server that enables AI assistants to access and interact with Reddit content through features like user analysis, post retrieval, subreddit statistics, and authenticated posting capabilities.
      15
      302
      MIT
    • A
      license
      B
      quality
      D
      maintenance
      An MCP server that provides AI agents with full Reddit API capabilities including search, browsing, reading, posting, commenting, voting, editing, and deleting.
      18
      8 npm
      MIT