Python
Reddit MCP サーバー ⚙️
Reddit コンテンツを取得および作成するためのツールを提供するモデル コンテキスト プロトコル (MCP)。
🧑💻 について
https://www.linkedin.com/feed/update/urn:li:activity:7328864060534419457/
🔧 利用可能なツール(機能)
読み取り専用ツール (クライアント資格情報):
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)
- 戦略的な返信を追加する
🔌 インストール
git clone https://github.com/alexandros-lekkas/reddit-mcp-server
- ここでRedditアプリを作成
必ず「スクリプト」を選択してください。
- クライアントIDとクライアントシークレットをコピーします
.env.example
に基づいて.env
ファイルを作成する
REDDIT_CLIENT_ID
とREDDIT_CLIENT_SECRET
を使ってこれを行う
投稿を書きたい場合は、 REDDIT_USERNAME
とREDDIT_PASSWORD
を含める必要があります (心配しないでください、盗むことはありません 😜)
npm run dev
を実行して検査サーバーを開きます ( http://127.0.0.1:6274/ )
- 接続が機能する場合は、MCP 構成にこれを追加します (使用しているエージェントに応じて、Cursor または Claude 用)
(環境変数を😜絵文字ではなく実際のキーに置き換えてください)
📚 クレジット
- これらのツールのインスピレーションと実装は、Arindam200氏によるPython Reddit MCP Serverに帰属します。このリポジトリは、現時点ではPython実装のNode.js版です。
- MCP サーバーの構築方法に関するチュートリアル (この実装のリファレンスとして使用されました) を提供してくれたEugene Shに感謝します。
This server cannot be installed
local-only server
The server can only run on the client's local machine because it depends on local resources.
reddit-mcp-server
Related MCP Servers
- Python
- PythonMIT License
- -securityAlicense-qualityMCP server that enables interaction with Reddit, allowing users to read trending posts, analyze discussions, create posts, add comments, and vote on content through Claude and Cursor.Last updated -PythonMIT License