Reddit Ads MCP Connector
Reddit Ads MCP コネクタ
平易な言葉で使える Reddit Ads API v3 用 MCP
API ベース: https://ads-api.reddit.com/api/v3
シンプルな英語で質問できます — エンドポイントのパスや広告アカウント ID を覚える必要はありません(アカウントが1つ設定されている場合)。
できること
ユーザーが尋ねること | ツール |
自分は誰か / プロフィール |
|
広告アカウント |
|
キャンペーン |
|
広告グループと広告 |
|
パフォーマンス / 支出 |
|
コンバージョンピクセル |
|
Related MCP server: Google Ads API v20 MCP Server
前提条件
reddit.com/prefs/apps で Reddit アプリを作成 — タイプは web app または script
client ID(アプリ名の下)と client secret を控える
adsreadスコープの refresh token を取得(一度だけの OAuth — 下記参照)
セットアップ(ローカル)
cd reddit-mcp-connector
python -m venv .venv
# Windows:
.venv\Scripts\activate
pip install -r requirements.txt
copy .env.example .env.env に記入:
REDDIT_CLIENT_ID=your_client_id
REDDIT_CLIENT_SECRET=your_secret
REDDIT_REFRESH_TOKEN=your_refresh_token
REDDIT_USER_AGENT=web:reddit-mcp-connector:v1.0.0 (by /u/YOUR_USERNAME)
REDDIT_AD_ACCOUNT_ID=t2_xxxxx # optional but recommendedサーバーを起動:
python reddit_mcp_server.py --httphttp://127.0.0.1:8002/mcp で待ち受けます。
リフレッシュトークンを取得する(一度だけ)
認可 URL を作成(プレースホルダーを置き換え):
https://www.reddit.com/api/v1/authorize?client_id=YOUR_CLIENT_ID&response_type=code&state=anything&redirect_uri=http://localhost:8080&duration=permanent&scope=adsreadブラウザで開き、アクセスを承認し、リダイレクト URL から
codeをコピー。コードを交換:
curl -X POST https://www.reddit.com/api/v1/access_token ^
-u "CLIENT_ID:CLIENT_SECRET" ^
-d "grant_type=authorization_code&code=CODE&redirect_uri=http://localhost:8080"JSON レスポンスの
refresh_tokenを.envにREDDIT_REFRESH_TOKENとして保存。
Reddit アプリ設定のリダイレクト URI は正確に一致する必要があります(例: http://localhost:8080)。
Cursor(ローカル)
"reddit": {
"url": "http://127.0.0.1:8002/mcp"
}サーバーを起動したままにする:
python reddit_mcp_server.py --httpCursor の Settings → MCP → 更新
reddit が緑色で表示され、
list_campaigns、get_performance_reportなどのツールが表示されるはずです…
その後、「List my campaigns」や「Spend and impressions last 7 days」と質問します。
Google Cloud Run
同じ HTTP MCP エンドポイントを Cloud Run でホストします。
デプロイ
.\deploy-cloudrun.ps1 -ProjectId "YOUR_GCP_PROJECT_ID"認証情報は Secret Manager に JSON(reddit-mcp-credentials)として保存されます。スクリプトは不足している値をプロンプトで尋ねるか、.env から読み取ります。
Cursor(Cloud Run)
"reddit": {
"url": "https://YOUR-CLOUD-RUN-URL/mcp"
}Claude カスタムコネクタ
MCP_PUBLIC_URL が設定されている場合(デプロイスクリプトが自動的に設定)、Claude.ai の OAuth + DCR が有効になります。
.\deploy-cloudrun.ps1 -ProjectId "..."でデプロイSettings → Connectors → Add custom connector
URL:
https://YOUR-SERVICE.run.app/mcp(/mcpを含める必要があります)OAuth Client ID は空のままにする(DCR 有効)
プロンプト例
「List my Reddit ad accounts」
「Show campaigns for my ad account」
「Spend and impressions last 7 days」
「Daily performance trend this month」
「Break down performance by campaign」
「List conversion pixels」
ツール
ツール | 目的 |
| 質問できること |
| 認証済みユーザー |
| 広告アカウント ID を検索 |
| アカウント詳細 |
| キャンペーン一覧 |
| 単一キャンペーン |
| 広告グループ |
| 広告 |
| コンバージョンピクセル |
| メトリクス / 支出 / トレンド |
セキュリティに関する注意
Cloud Run のデプロイでは --allow-unauthenticated を使用するため、MCP URL に到達可能です。Claude OAuth はツールへのアクセスを登録済みクライアントに制限します。認証情報と URL は機密情報として扱ってください。
This server cannot be installed
Maintenance
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
- AlicenseBqualityBmaintenanceEnables comprehensive Google Ads campaign management and analysis through natural language, including performance metrics, keyword optimization, budget management, and custom GAQL queries.10013MIT
- AlicenseNot gradedqualityDmaintenanceProvides comprehensive access to Google Ads API v20, enabling AI assistants to manage campaigns, accounts, assets, and reporting through natural language. It features automatic retry logic, GAQL query support, and advanced functionality for Performance Max and Demand Gen campaigns.11MIT
- AlicenseNot gradedqualityCmaintenanceWraps the Meta Marketing API to enable creating, modifying, viewing, and deleting Instagram ads via natural language.15MIT
- FlicenseNot gradedqualityDmaintenanceRead-only access to Reddit Ads API v3 for listing ad accounts, campaigns, ad groups, ads, and generating performance reports with OAuth2 authentication.
Related MCP Connectors
Manage ad campaigns across Google, Meta, LinkedIn, Reddit, TikTok, and more via AI.
Manage ad campaigns across Google, Meta, LinkedIn, Reddit, TikTok, and more via AI.
Run Google, Meta, Microsoft, TikTok and LinkedIn Ads from Claude or ChatGPT. Writes need approval.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/devopsbrandmirchi/reddit-mcp-connector'
If you have feedback or need assistance with the MCP directory API, please join our Discord server