Skip to main content
Glama

Reddit MCP サーバー ⚙️

Reddit コンテンツを取得および作成するためのツールを提供するモデル コンテキスト プロトコル (MCP)。

画像

🧑‍💻 について

https://www.linkedin.com/feed/update/urn:li:activity:7328864060534419457/

画像

Related MCP server: reddit-mcp-server

🔧 利用可能なツール(機能)

読み取り専用ツール (クライアント資格情報):

  • get_user_info(username) - エンゲージメントインサイトによる詳細なユーザー分析を取得します

  • get_top_posts(subreddit, time_filter, limit) - トップ投稿を取得して分析する

  • get_subreddit_stats(subreddit) - 包括的なsubreddit分析を取得する

  • get_trending_subreddits() - トレンドのsubredditのリストを取得する

読み取り/書き込みツール (ユーザー資格情報):

  • create_post(subreddit, title, content, flair, is_self) - 最適化された投稿を作成する

  • reply_to_post(post_id, content, subreddit) - エンゲージメントインサイトを含む返信を追加する

  • reply_to_comment(comment_id, content, subreddit) - 戦略的な返信を追加する

🔌 インストール

  1. git clone https://github.com/alexandros-lekkas/reddit-mcp-server

  2. ここでRedditアプリを作成

画像

必ず「スクリプト」を選択してください。

  1. クライアントIDとクライアントシークレットをコピーします

  2. .env.exampleに基づいて.envファイルを作成する

REDDIT_CLIENT_IDとREDDIT_CLIENT_SECRETを使ってこれを行う

投稿を書きたい場合は、 REDDIT_USERNAMEとREDDIT_PASSWORDを含める必要があります (心配しないでください、盗むことはありません 😜)

  1. npm run devを実行して検査サーバーを開きます ( http://127.0.0.1:6274/ )

画像

  1. 接続が機能する場合は、MCP 構成にこれを追加します (使用しているエージェントに応じて、Cursor または Claude 用)

  "mcpServers": {
    "reddit": {
      "command": "node",
      "args": [
        "C:\\path\\to\\reddit-mcp-server\\build\\index.js" // Replace this with your local path to build/index.js
      ],
      "env": {
        "REDDIT_CLIENT_ID": "😜",
        "REDDIT_CLIENT_SECRET": "😜",
        "REDDIT_USERNAME": "😜",
        "REDDIT_PASSWORD": "😜"
      },
      "autoApprove": [
        "get_reddit_post",
        "get_top_posts",
        "get_user_info",
        "get_subreddit_info",
        "get_trending_subreddits",
        "create_post",
        "reply_to_post"
      ] // You don't need to add this, but it makes it so that you don't have to keep clicking approve
    }
  }

(環境変数を😜絵文字ではなく実際のキーに置き換えてください)

📚 クレジット

  • これらのツールのインスピレーションと実装は、Arindam200氏によるPython Reddit MCP Serverに帰属します。このリポジトリは、現時点ではPython実装のNode.js版です。

  • MCP サーバーの構築方法に関するチュートリアル (この実装のリファレンスとして使用されました) を提供してくれたEugene Shに感謝します。

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    Provides access to public Reddit data through tools for searching subreddits, viewing posts, and reading comments without requiring authentication. It enables Model Context Protocol clients to interact with Reddit's public JSON API via stdio or HTTP transports.
    21 npm
    MIT
  • A
    license
    A
    quality
    D
    maintenance
    Provides AI assistants with access to Reddit data for searching, browsing subreddits, and retrieving post details or user activity without requiring API keys. It enables tools to fetch content, nested comment trees, and public user feeds directly through the Model Context Protocol.
    2
    6
    303 PyPI
    158
    MIT