
Reddit Ads
io.github.camlowe由 GitHub 帳號 camlowe 發布v0.5.5更新於 Oct 24, 2026
Reddit Ads API v3: campaigns, ad groups, ads, reports, plus working writes with safety tiers.
概覽
針對 Reddit Ads API v3 的本機 MCP 伺服器,讓助理讀取廣告活動、廣告群組、廣告與報表,並在分級控管下執行寫入操作。
- 可以做什麼
- 讀取帳戶、廣告活動、廣告群組、廣告與廣告創意,支援狀態篩選和實體搜尋
- 取得成效報表、每日成效,以及期間或廣告比較,指標名稱使用易讀的小寫名稱
- 查詢定向資料:子版、興趣類別和地理定向
- 建立廣告活動、廣告群組和廣告,暫停或重新命名項目,修改廣告留言,並在廣告群組之間複製廣告
- 恢復投放、調整預算、出價、定向和廣告網址(僅限 spend 等級)
- 適用情境
- 適合管理 Reddit 廣告投放、希望助理在聊天用戶端內彙整帳戶成效、回答報表問題,或完成暫停、建立、複製廣告等日常操作的情境。
- 執行需求
- 透過 npx 在本機執行,需要 Node.js 20 或更新版本,以及一個 MCP 用戶端。需要具備 business-admin 權限的 Reddit Ads 帳戶來註冊應用程式,並設定 REDDIT_CLIENT_ID、REDDIT_CLIENT_SECRET 和 REDDIT_REFRESH_TOKEN,可用該套件的 auth 指令產生。選用 REDDIT_ADS_ACCOUNT_ID 和 REDDIT_ADS_WRITE_TIER。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Reddit Ads,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
MCP Server for Reddit Ads (mcp-server-reddit-ads)
A Reddit Ads API v3 MCP server with working write operations and tiered safety controls, built and dogfooded by an actual Reddit advertiser. It gives an MCP client read access to campaigns, ad groups, ads, and performance reports, plus gated write tools for pausing, creating, budget and bid changes, targeting edits, and copying ads between ad groups.
Requirements
- A Reddit Ads account, with business-admin access so you can register an app.
- Node.js 20 or newer.
- An MCP client (Claude Code, Claude Desktop, or any other).
Getting started
Pick the path that matches your setup: a paste-one-prompt route for Claude Code or Claude Desktop, or the manual steps for any other client. Every path installs read-only and cannot change anything in your account until you deliberately turn on writes (the last step).
Simple setup with Claude Code (recommended)
If you use Claude Code, let it do the mechanical work. Copy this whole prompt and paste it into Claude Code:
Claude reads this README, tells you exactly what to do for the parts only you can do, runs npx mcp-server-reddit-ads auth, writes your .mcp.json, and confirms the server loads. Later, when you want to make changes, just ask it to raise the write tier.
Simple setup with Claude Desktop
Claude Desktop can't run terminal commands for you, so this prompt has it act as a patient guide while you run one command and edit one config file. Paste it into a new Claude Desktop chat:
Either way, you still register the Reddit app (step 1 below) and approve the browser login yourself - those cannot be automated.
Advanced setup (manual)
The full process, for other MCP clients or if you prefer to do it by hand. It takes about five minutes.
1. Register a Reddit app
- Open the Reddit Ads dashboard at ads.reddit.com and sign in with an account that has business-admin access.
- Open Business settings (the gear / settings menu, top right), then Developer Applications, then Create App.
- Give the app a name, set the redirect URI to exactly
http://localhost:8080, and choose a primary contact (a business admin). Save it.
Reddit then shows the two values you need in step 2:
- Client ID - the short string (roughly 22 characters, for example
Ab3xK9zQ1rStUvWxYzAbCd) displayed directly under the app's name. Reddit often shows it without a "client ID" label, so it is easy to miss; it is the code beneath the app title, not the app name itself. - Client secret - the longer value shown in the field explicitly labeled secret. Copy it right away; if you lose it you can regenerate a new secret from the same page.
Do not use reddit.com/prefs/apps: it silently rejects new apps under the Responsible Builder Policy, so the Ads developer portal is the only working path for advertisers.
2. Mint a refresh token
Run the built-in setup helper:
It asks for the client ID and secret from step 1 (or reads them from REDDIT_CLIENT_ID and REDDIT_CLIENT_SECRET if you have set them), opens the Reddit authorization page in your browser, and waits on http://localhost:8080 for you to approve.
Once you approve, it offers to save the configuration for you:
Pick [1] or [2] and it writes the credentials straight to disk (backing up any existing file to <file>.bak and leaving other servers untouched), so nothing sensitive has to pass through your MCP client. If you prefer to place it yourself, pick [3] and it prints a ready-to-paste block instead. When it can't detect a TTY (for example, piped output), it skips the menu and prints the block.
If it fails, it tells you how to fix the two common causes: port 8080 already in use, and a redirect-URI mismatch (the app's redirect URI must be exactly http://localhost:8080).
3. Add the server to your MCP client
If you picked [1] or [2] in step 2, this is already done - skip to step 4. Otherwise, paste the printed block into your client's config. It has this shape, with the three credential values already populated by the auth command:
Claude Code users can register it from the command line instead:
4. Restart and verify
Restart your client so it picks up the server (in Claude Code, approve the server when prompted, and confirm it loaded with /mcp). Then ask it to list your Reddit ad accounts. You should see your account id (a2_...). If you manage a single account, set REDDIT_ADS_ACCOUNT_ID to that id in the config and restart, so you never have to name the account in a request again.
5. Try some read-only queries
You are connected and read-only. Good first questions:
- "Give me an overview of my Reddit ad account."
- "Show the last 7 days of performance by campaign."
- "Which of my ad groups are currently active?"
Most people stay here day to day. When you want to make changes, turn on writes.
6. Turn on writes when you need them
A fresh install cannot pause, create, or edit anything. To allow changes, raise REDDIT_ADS_WRITE_TIER in your config and restart. Start with safe (nothing at that level can start or grow spend) and move to spend only when you intend to resume delivery or change budgets, bids, or targeting. See Write tiers for exactly what each level unlocks.
Write tiers
Writes are off by default. REDDIT_ADS_WRITE_TIER opens them in two steps, so an accident at the read or safe tier cannot start spending money.
Tools above the configured tier are not just refused - they are hidden from the client's tool list entirely. A read-only session exposes 18 tools; the model cannot even attempt update_budget because it does not know the tool exists. If a hidden tool is somehow called anyway, the server refuses it with an error naming the tier that would unlock it.
Environment variables
Tools
Notes:
get_campaigns,get_ad_groups, andget_adstake an optionalstatusfilter (ACTIVE,PAUSED, orARCHIVED), applied client-side onconfigured_status.- Tool results are capped at 200,000 characters; a truncated result says so and suggests narrowing the query.
get_performance_reporttakes friendly lowercase metric names (impressions,clicks,spend,cpc,conversion_page_visit_clicks, and so on) and validates them locally before the call, suggesting the closest match on a typo.create_ad_grouprequires aconversion_pixel_id, andcreate_campaignrequires one when campaign budget optimization is on (a Reddit mandate since 2026-07-13). The pixel id is in the Reddit Ads dashboard under Events Manager; in observed data it equals the ad account id.copy_adsduplicates ads into another ad group (Reddit creates a duplicate promoted post per copy) with an option to rewriteutm_campaignand other click-URL query params.- Ad copy (headline, body) is immutable via the Reddit API - the only editable post property is
allow_comments. To change what an ad says, create a new ad with the new copy, enable it, and pause the old one.
Reddit API gotchas
The client encodes behaviors verified against the live API. The ones that cause the most confusion:
- Updates use
PATCH, neverPUT, and Reddit returns 404 (not 405) for the wrong verb. A verb bug looks exactly like a missing resource. This is the bug that breaks every write in the upstream package. - Single resources live on bare paths (
/ads/{id}); collections and creates use account-scoped paths (/ad_accounts/{id}/ads). Mixing them returns 404. - All money values are microcurrency (one millionth of the currency unit). This server converts them to USD on read and back on write, so tool inputs and outputs are in dollars.
- Report metric names are UPPERCASE enums in requests but lowercase in responses, with inconsistent spelling (
CONVERSION_SIGN_UP_CLICKSvsCONVERSION_SIGNUP_TOTAL_VALUE). Use the friendly lowercase names; the server validates and maps them. - After a write, trust
configured_status, noteffective_status. The configured value updates immediately; the effective value can lag by minutes. - Ad copy cannot be edited. The creative lives on a promoted post, and
PATCH /posts/{id}permits exactly one field:allow_comments. Headline and body are rejected outright. Changing copy means shipping a new ad (create_ad, born paused) and pausing the old one - which also keeps performance history per message, so it is the right workflow anyway.
Development
Disclaimer
This software is provided "as is" and "as available", without warranty of any kind, as set out in the LICENSE. It may contain bugs or errors, and any safeguards or controls it provides may fail or behave unexpectedly. Use it at your own risk.
This tool can create, rename, pause, resume, and reconfigure live Reddit advertising entities, and can change budgets, bids, and targeting. These actions can start, increase, or otherwise affect real ad spend. You are solely responsible for:
- any charges, ad spend, or financial outcomes that result from using this server;
- independently reviewing and verifying every change it makes to your account;
- keeping your Reddit API credentials secure; and
- your use of the Reddit Ads API in line with Reddit's terms.
The author accepts no liability for lost or unintended ad spend, misconfigured or paused campaigns, unintended changes, or any other damages arising from use of this software, including any failure of its safety controls to prevent an action.
This project is an independent, unofficial client. It is not affiliated with, endorsed by, or sponsored by Reddit, Inc.
License
MIT
來源:README.md,提交 a9b5639
工具
0版本歷史
1- v0.5.5最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分