Listed from the MCP registry; nobody on Odel publishes it.
Snapchat Ads reports, audits and safe, previewed changes to campaigns, ad squads and ads.
Runs on your machine from its package; the steps are below.
At most: moves money, runs code or commands, deletes data, or sends messages for you.
Odel charges nothing per call. The publisher may charge for its own service.
Runs locally over stdio
This server isn't hosted — your MCP client launches it from a package registry. Use one of the commands below, or drop the config into your client (e.g. Claude Desktop).
Run
npx -y ads-mcp-for-snapchat
MCP client config
{
"mcpServers": {
"ads-mcp-for-snapchat": {
"command": "npx",
"args": [
"-y",
"ads-mcp-for-snapchat"
]
}
}
}An MCP server that runs on your own computer, and lets an AI assistant (Claude Code, Claude Desktop and other MCP clients) work with your own Snapchat ad account: read performance, audit campaigns, and make careful, reviewable changes. It also turns creators' ad codes into paused ads. There is also a hosted private test that needs no install (see Hosted version).
Unofficial. Not affiliated with or endorsed by Snap Inc. This tool can change real ad campaigns that spend real money. You use it at your own risk (see LICENSE). Check Snap's developer terms for your own use. Review every preview before approving.
Claude Desktop (no terminal): download ads-mcp-for-snapchat-<version>.mcpb from the latest release, open it, leave Client ID and secret empty, then ask Claude: "Connect my Snapchat ad account." Log in with Snapchat and pick the ad account. In the Desktop extension, changes are allowed from the start (Read-only is off by default): each one is previewed and needs your approval, everything created starts paused, and the daily budget limit starts at 500 (change it in the extension's settings). Switch Read-only on there if you only want to look. It also starts with the core tool set (59 everyday tools); type all in its Tool set field to see all 83.
Claude Code, Cursor, VS Code or a terminal:
npx -y ads-mcp-for-snapchat setup
Choose 1. Shared login, log in with Snapchat, pick the ad account, and press Enter at the safety question (it starts read-only; nothing can be changed until you allow it). Then check everything with npx -y ads-mcp-for-snapchat verify.
Snap runs its own hosted Ads MCP server (see Snap's developer documentation). According to Snap's documentation it is read-only: an agent can read Snapchat Ads data but cannot create, update or delete anything, and it works with several AI apps without installing anything.
SNAP_READ_ONLY=0 (the safe default starts read-only; it is a switch, not a limit).This project is unofficial and is not made, endorsed or supported by Snap. It runs on your own computer; it is not the hosted service Snap provides.
SNAP_MAX_DAILY_BUDGET=1000, SNAP_MAX_BID=50) are deliberately conservative; set your own in .env.changes.log.jsonl or <settings file>.log.jsonl) and anything you export to exports/. You are responsible for keeping and deleting those files in line with Snap's terms.snap_create_adsquad takes goal: purchase, add to cart, page view or sign-up (need a pixel), or traffic (SWIPES), awareness (IMPRESSIONS) and video views (no pixel needed). App installs and lead generation are not built.snap_create_creative, then snap_create_ad.snap_create_creative with creative_type: "SNAP_AD".snap_create_story_creative with their ids in order. Add preview (a 3:5 PNG tile, at least 360x600 px, and a headline of up to 55 characters) to also show it in the Stories tab.snap_create_campaign with catalog_id (SALES objective), then snap_create_product_set (and snap_create_dynamic_template if you have none), then snap_create_adsquad with product_set_id and dpa_mode (retargeting: viewed or added to cart but did not buy; prospecting: has not interacted), then snap_create_creative with creative_type: "DYNAMIC_PRODUCT", then snap_create_ad. The ad squad and the creative must use the same product set, which the tools check. The catalog and its product feed are set up in Ads Manager or Business Manager.snap_create_collection_creative with 4-20 products, each with its own https page.In every case snap_create_ad picks the matching ad type (REMOTE_WEBPAGE, SNAP_AD, STORY or COLLECTION) and the ad starts PAUSED. Creatives never deliver on their own. Find media already in the account with snap_list_media, or upload with snap_upload_media and wait until snap_get_media says READY.
npx -y ads-mcp-for-snapchat verify (or node src/cli.js verify in a git checkout; add --details to also list the specific problems it found: broken links, pixel issues, feed errors, audience problems, rejected ads) runs every read-only tool on your real account, one by one, and prints a short list: what worked, what failed and why, what was skipped (and which setting it needs). It changes nothing: it only calls tools that declare themselves read-only and forces read-only mode. The output contains no tokens and only shortened ids, so it is safe to paste into an issue.
Run npx -y ads-mcp-for-snapchat setup and choose 1. Shared login, or install the Claude Desktop file, leave Client ID and secret empty, and ask Claude: "Connect my Snapchat ad account." You log in with Snapchat in your browser and pick your ad account. No OAuth app to create.
How it works: a small login service (broker/, code in this repository) passes your login along and stores nothing, and your access is sealed so only your own computer can read it. Read PRIVACY.md first. The tool itself still runs only on your computer.
Status: new. It works end to end on the maintainer's real login and ad accounts, but Snap has not yet been asked to confirm that one shared app may serve other advertisers. If the login is refused for you, or you prefer not to rely on a shared service, use your own Snapchat app (next section: about 5 minutes, and setup walks you through it) or run your own copy of the service (broker/README.md).
First, once: in Snap Business Manager open Business Details > OAuth Apps > + OAuth App, use the Redirect URI https://127.0.0.1/callback, and copy the Client ID and Client Secret (the secret is shown only once).
Claude Desktop (no terminal):
ads-mcp-for-snapchat-<version>.mcpb from the latest release and double-click it. Claude Desktop shows an install screen.Claude Code, Cursor, VS Code (one command, needs Node 18+):
npx -y ads-mcp-for-snapchat setup
It asks for the Client ID and secret (hidden), opens the approval page, lists your ad accounts to choose from, asks for your first safety settings, and adds the server to Claude Code. For Cursor, VS Code or Claude Desktop it prints the exact settings to paste. Another ad account: npx -y ads-mcp-for-snapchat setup --file ~/.ads-mcp-for-snapchat/.env.account2.
Settings, the change log and exports live in ~/.ads-mcp-for-snapchat/, outside the package, so updates never touch them. npx -y ads-mcp-for-snapchat help lists the other commands (check, where, weekly-report, and the step-by-step init, save-secret, auth). It is also listed in the official MCP Registry as io.github.Usame794/ads-mcp-for-snapchat.
git clone this repository, then npm ci, then npm test (all tests are mocked and need no account)..env.example into .env and set your limits, SNAP_DEFAULT_COUNTRY, SNAP_ACCOUNT_CURRENCY and SNAP_REPORT_UTC_OFFSET.SNAP_READ_ONLY=1: connect your MCP client, try snap_ping, a report, and a few previews, and compare the numbers with Ads Manager. Remove the setting when you are comfortable.A second way to use the same tools with nothing to install: a connector you add in an AI app by address, running on Cloudflare, at https://ads-mcp-remote.ads-mcp.workers.dev/mcp. Be aware of its status: it is run by one independent maintainer on a free plan, it is unofficial, it has not had an independent security review, and Snap has not confirmed that one shared app may serve other advertisers (if Snap objects, it can stop working for everyone; the local version with your own Snapchat app always works). Read the service's /terms and /privacy pages before signing in. The operator can restrict who signs in, can block a person, and can switch changes off for everyone at once.
What it does:
snap_connect).snap_disconnect deletes everything stored about you; also revoke the app in Snapchat Business Manager.What is stored, honestly: your Snapchat refresh token (encrypted) so the service can act for you, a change log, and your settings. The operator of the service holds the keys and could decrypt the token, so sign in only if you trust the operator. The page /privacy of the service says the same.
Limits that exist: sign-in endpoints are rate-limited per IP address, a person's tool calls are limited to 120 a minute, and each person's logs keep 90 days (at most 20,000 lines per log). Known gaps: not independently reviewed, the free Cloudflare plan's own limits cap how many people it can serve, and a few local-only tools (folder uploads, clipboard, customer-list files) do not work there. Code and design: remote/README.md and remote/DESIGN.md. It is not part of the npm package.
confirm=false (the default) returns a preview and a single-use approval_token. To apply, the same arguments are sent again with confirm=true and that token. The token is bound to the tool, the ad account, the arguments and the state of the items at preview time: if anything changed, or the token is reused, expired or from another request, nothing is sent.SNAP_AD_ACCOUNT_ID. Ids are validated before they are used.snap_delete, behind many guards. Status can only be ACTIVE or PAUSED.changes.log.jsonl: an intent record before anything is sent (if it cannot be written, the operation does not run) and a result record after, with tool, account, target ids, redacted arguments, and before/after values for edits. Credentials are never logged; ad codes are masked.100%) stops the server instead of switching the limit off. Limits and the target account are fixed until restart; only the OAuth credentials are re-read from .env.The token proves that this exact change was previewed and that nothing moved since. It does not prove that a person looked at it: the AI client receives the token and can send it back by itself. Human authorization is the permission prompt of your MCP client, so do not auto-approve the write tools. Tools are annotated (readOnlyHint, destructiveHint) so a client can auto-allow reads only. SNAP_READ_ONLY=1 turns every write off.
SNAP_HUMAN_APPROVAL=elicit)With this setting the server asks you, through the MCP client's own dialog (MCP elicitation), before every write, and refuses when it cannot ask. The question and your answer do not pass through the model. For anything that adds spend, for deletes and for undo, you must also type a 4-digit code that only the dialog shows. Limits you should know:
Elicitation hook). Such a hook removes the human from the loop. Do not install one for this server, and keep your client's settings files out of reach of the AI's file tools..env, all optional, restart to apply)| Setting | Default | Meaning |
|---|---|---|
SNAP_MAX_DAILY_BUDGET | 1000 | Highest daily budget any single campaign or ad squad may be given or enabled with |
SNAP_MAX_RESPONSE_CHARS | 100000 | Longest answer a tool returns; longer ones are cut with a note saying how to ask for less. |
SNAP_LEGACY_TOOLS | off | Set to 1 to also show the old tool names that were merged into other tools (for example snap_set_status_bulk, snap_bulk_set_budget, snap_report_daily). They work as before and say which tool replaced them. Off by default, so the assistant sees fewer tools. |
SNAP_TOOLSETS_DEFAULT | (none) | Set by the Claude Desktop extension to core: used only when SNAP_TOOLSETS is empty or was never saved, so upgraded installs start with the core tool set. A real SNAP_TOOLSETS value always wins. |
SNAP_MEDIA_DIR | (none) | Optional folder allow-list: when set, snap_upload_media and snap_upload_customer_list only read files inside this folder (symbolic links are resolved first). Recommended, so the server cannot be steered into reading other files on your computer. |
SNAP_WARN_DAILY_BUDGET | (none) | Optional warning level, not a limit: a change that adds more than this daily budget shows a budget_warning in the preview. Without it, the preview still warns when a change adds more than twice your largest running ad squad (or, on an account with none running, more than half of SNAP_MAX_DAILY_BUDGET). |
SNAP_MIN_DAILY_BUDGET | 5 | Lowest daily budget |
SNAP_MAX_BID | 50 | Highest max bid |
SNAP_MAX_BUDGET_INCREASE_PCT | 100 | Largest budget increase per step and per 24 hours |
SNAP_MAX_BID_INCREASE_PCT | 50 | Largest bid increase per step and per 24 hours |
SNAP_MAX_LIFETIME_BUDGET | 30 x max daily | Highest lifetime budget a copy may carry or an enable may start |
SNAP_MAX_ACTIVATION_DAILY_BUDGET | 5 x max daily | Most daily budget one call may start (enable, undo of a pause, or a schedule change that starts delivery) |
SNAP_MAX_ADDED_DAILY_BUDGET_24H | 2 x the line above | Most daily budget this server may add to the account in any 24 hours, all tools together: budgets it starts plus budget increases |
SNAP_ACCOUNT_CURRENCY | not set | If set (e.g. USD), writes are refused unless the ad account uses that currency |
SNAP_READ_ONLY | 0 | 1 = previews and reads only |
SNAP_CAPI_TOKEN | (none) | Only for the Conversions API test tools (snap_capi_*): a Conversions API token made in Ads Manager (Events Manager > Conversions API > Generate token), used if Snap does not accept your normal login there. Sent only to tr.snapchat.com. |
SNAP_BROKER_URL | the maintainer's login service (off turns the shared login off) | The shared login service: connect with a normal Snapchat login and no OAuth app. https only. A refresh token is sent there, so use only a service you trust (see PRIVACY.md, broker/README.md). setup saves it for you. |
SNAP_HOME | ~/.ads-mcp-for-snapchat for an npm install, the project folder for a git checkout | Where the settings file, the change log and exports/ live. Set it to keep them somewhere else. |
SNAP_PORTFOLIO_FILES | (none) | Absolute paths of the settings files of the accounts for snap_portfolio_summary, comma-separated (up to 10). Only you can set it: the AI app cannot pick files. |
SNAP_COMPACT | (off) | 1 shortens every tool and parameter description to its first sentence, so the tool list costs the AI fewer tokens (the hosted version uses it). The lite tool set turns it on by itself. |
SNAP_TOOLSETS | all | Show only some tool groups to the AI app: lite (24 tools with short descriptions, about a third of the context cost: look, find, check delivery, pause, change budgets and bids, undo, start a campaign), core (59 everyday tools: read, check and launch campaigns), or setup, read, reports, checks, changes, create (comma-separated, can be combined with core). The Claude Desktop extension starts with core; type all in its Tool set field to see every tool. Fewer tools make some apps faster and less error-prone, e.g. setup,reports,checks for an analyst. It only hides tools. |
SNAP_HUMAN_APPROVAL | off | elicit = ask the user through the MCP client before every write |
SNAP_APPROVAL_TTL_SECONDS | 600 | Lifetime of an approval token |
SNAP_REPEAT_WINDOW_SECONDS | 600 | An identical create, copy, claim or upload is refused within this time |
SNAP_HTTP_TIMEOUT_MS | 60000 | Deadline for each API request |
SNAP_DEFAULT_COUNTRY | not set | 2-letter country used when a tool is called without countries (new ad squads, lookalikes, targeting lookups). Not set = countries must always be given; there is no hidden default market |
SNAP_DEFAULT_PHONE_CODE | not set | Country code (digits, no +) for local phone numbers in customer lists. Not set = local numbers are counted as invalid instead of being guessed |
SNAP_REPORT_UTC_OFFSET | +00:00 | Offset for scripts/weekly-report.js and scripts/smoke.js day boundaries, e.g. +03:00 |
Reports state what their numbers mean (basis): amounts are Snap micro-currency divided by 1,000,000 in the account currency, purchases are Snap-attributed, and attribution uses the account's default windows unless you pin them with swipe_up_attribution_window / view_attribution_window on snap_report and snap_report_daily. Totals are computed from raw values (account ROAS = purchase value / spend). A report that was cut off says incomplete or truncated.
Existing items above a limit can still be read, lowered and paused, but not raised or enabled until the owner raises the limit. The 24-hour rules and the audit trail rely on changes.log.jsonl (plus an in-memory copy while the server runs, so deleting the file does not reset them until a restart); changes made in Ads Manager are not counted, and the file is not tamper-proof against someone with access to your disk. Keep .env and the log out of reach of the AI client's file tools (for Claude Code: a Read/Edit deny rule for the project folder).
Ready-made instructions in Claude's prompt menu (the "+" or "/" menu). They only read and preview; nothing is applied without your yes.
| Tool | Type |
|---|---|
snap_ping | check credentials |
snap_audience_size | read: Snap's reach estimate for an ad squad or for targeting you are planning, with a verdict (very small / small / OK / very broad) |
snap_spend_pacing | read: today's spend per active ad squad vs its budget for this time of day, month-to-date spend, projected month and, with a monthly budget, over / under |
snap_ad_preview | read: a no-login preview link (90 days) and a Snapcode to scan on a phone (7 days) |
snap_list_dynamic_templates | read: the ad account's dynamic templates (product layouts for catalog ads) |
snap_create_product_set, snap_create_dynamic_template | write (preview + approval): a filtered group of catalog products; a product layout |
snap_check_landing_pages | read: opens each active ad's link once (https only, never private addresses) and flags broken, slow, server-error and non-https links, links that end on another site, and links missing parameters you name |
snap_anomaly_check | read: yesterday vs the usual day: spend spike or drop, zero or falling purchases (possible broken pixel), ROAS drop, cost-per-purchase spike |
snap_blended_roas | read: Snap's reported revenue vs the revenue your store confirms (you give the store figure): overstates, understates or consistent |
snap_audience_insights | read: who is in an audience (age, gender, languages, interests, devices) compared with everyone in the same countries, with an index |
snap_competitor_ads | read: a company's ads from Snap's public Ads Gallery (no login, nothing about your account sent; Europe only) |
snap_capi_status, snap_capi_test_event | Conversions API TEST events only: read the last test events and their errors; send one test event (previewed, email hashed). No tool sends real conversion events. |
snap_set_frequency_cap | write (preview + approval): at most N impressions per person per N hours/days, or clear it |
snap_set_ad_schedule | write (preview + approval): which hours of which days ads run; Snap allows it only on lifetime-budget ad squads |
snap_creative_compare | read: the ads of a campaign or ad squad ranked against the median ROAS (WINNER / LAGGING), grouped by call to action |
snap_budget_advice | read: suggested daily-budget moves (lower the weak, raise the proven, funded by what is freed, inside your limits), each naming the tool that applies it |
snap_billing_check | read: ad account status, funding sources (card expiry, daily limit vs budgets, credit left) and a verdict |
snap_account_admin | read: the ad account's settings (status, currency, time zone, billing type, spend cap), the organization's billing centers, and how many people have access with which role (emails masked); never changes anything |
snap_unused_media | read: uploaded images and videos no creative uses (never deletes) |
snap_audience_health | read: audiences that are not targetable, tiny, stale, or unused by active ad squads |
snap_funnel | read: impressions → swipes → views → add to cart → checkout → purchases with the rate at each step and the weakest step |
snap_catalog_feed_status | read: for each catalog feed, the last completed upload, the latest upload's status and issues |
snap_set_bid_strategy | write (preview + approval): switch an ad squad between max bid and target cost with a new bid, inside the bid limits. Switching TO auto-bid is not offered (it removes the bid cap). |
snap_set_placement | write (preview + approval): automatic, or custom positions (Discover feed, Camera, Spotlight, Stories...). Undo works when a placement was set before. |
snap_portfolio_summary | read: all your ad accounts side by side (yesterday and last 7 days, what needs attention, totals per currency). Reads the settings files you list in SNAP_PORTFOLIO_FILES; the AI app cannot choose files. |
snap_connect | connect an ad account from inside the chat (link, pasted address, account choice); saves access on this computer, changes no ads |
snap_list_campaigns, snap_list_adsquads, snap_list_ads, snap_list_creatives, snap_get_entity, snap_get_media, snap_get_stats | read |
snap_dashboard, snap_campaign_board | read: interactive cards (see "Interactive cards" below): an account dashboard (spend, ROAS, purchases, pacing, alerts, 7/14/30 days) and a campaign or ad squad board with Pause, Resume and budget buttons. Without card support the same numbers come back as data |
snap_report | read: performance reports. view = table (ROAS, CPA, swipe rate, frequency by ad squad or ad; the default), daily (day by day, up to 31 days), hourly (by local hour of the day, last 1-7 days, best and worst hours), compare (two time windows side by side) or audience (by country, gender, age, region, dma or make) |
snap_health_check | read: audits every active squad for missing buyer exclusion, high frequency, low swipe rate, low ROAS, spend with no purchases, paused parents |
snap_review_issues | read: rejected / pending ads with Snap's reasons |
snap_start_here | read: the first-run guide: who is connected (masked), whether changes are allowed, the limits, the active ad account (or the list to choose from), a snapshot of campaigns and ad squads, a warning about active ad squads under paused campaigns, and what to say next |
snap_find | read: find campaigns, ad squads or ads by (part of) their name and get their ids, with parent names and ad squad budgets; accents and Arabic letter variants are ignored |
snap_delivery_check | read: why an active ad squad is not spending: paused campaign, schedule not started or ended, no ads or none approved, no budget, missing pixel, inactive account; passes Snap's own delivery status through |
snap_pixel_health | read: pixel signal readiness and event-quality issues, top priority first |
snap_creative_fatigue | read: which ads are tired (ROAS down 30%+ with higher frequency or lower swipe rate), which to replace first |
snap_report_async_start, snap_report_async_status, snap_report_async_download | read: very large CSV reports saved to exports/ |
snap_api_get | read-only GET for anything else (allow-listed paths, never writes) |
snap_list_segments, snap_list_pixels, snap_list_catalogs, snap_list_product_sets, snap_targeting_options | read: audiences, pixels, catalogs, product sets, interest/region/language ids |
snap_change_log | read the local log |
snap_change_history | read: the changes made through this server, newest first, with before and after values and an Undo button for each one that can be reverted (interactive card) |
snap_setup_check | read: a checklist of the login, ad account, pixel, brand profile, main country, change log and human approval, plus the money limits in use (interactive card) |
snap_set_status | pause / enable one item (id) or up to 20 (ids; skips items already in that state, warns when a parent is paused) |
snap_set_daily_budget, snap_set_bid, snap_rename | edit. snap_set_daily_budget also takes adsquad_ids with mode set or scale for up to 20 ad squads; snap_rename takes ids with find and replace for up to 20 items |
snap_set_targeting | change countries, age, gender, interests, device OS, include segments, stop excluding segments; everything else is kept |
snap_set_schedule | set start/end time on a campaign or ad squad (id), or on up to 20 (ids) |
snap_exclude_segments | add buyer-exclusion audiences to an ad squad (adsquad_id), or to up to 20 (adsquad_ids) |
snap_copy_campaign | copy a campaign (all or selected ad squads, with or without ads), paused |
snap_create_campaign | create a new empty campaign, paused |
snap_create_adsquad | create a new purchase-optimized web ad squad (max bid or auto-bid, interests, device OS, buyer exclusions), paused |
snap_create_lookalike | create a lookalike audience from a customer-list seed |
snap_copy_adsquad | copy one ad squad into a campaign, paused |
snap_clone_ad | clone an ad into other ad squads, paused (skips duplicates and different product sets) |
snap_undo | revert a change from the log (refuses if the field changed again since) |
snap_clone_creative | duplicate a creative with a new name/headline/link |
snap_create_pixel_audience | audience of people who fired pixel events (e.g. ADD_CART) |
snap_upload_customer_list | customer-list audience from a local CSV; hashed locally, only hashes uploaded |
snap_influencer_batch | influencer flow for up to 10 ad codes into one squad; expired codes are skipped |
snap_delete | guarded delete: paused, no spend in 30 days, no active children, exact name typed |
snap_claim_ad_code | claim a creator ad code (one-way, single-use) |
snap_upload_media | upload a local video/image (up to 1 GB, chunked above 32 MB) to the ad account, not attached to any ad |
snap_create_creative, snap_create_ad | creative from an image or video: WEB_VIEW (swipe-up link) or SNAP_AD (the Snap only); ad from a creative, its type taken from the creative (paused) |
snap_list_media | images and videos in the account (READY by default), newest first, filter by type and name |
snap_create_story_creative | Story Ad: 1-20 existing Snaps in a fixed order, with an optional tile for the Stories tab |
snap_create_collection_creative | Collection Ad: a main image or video with 4-20 product tiles, each opening its own page |
snap_influencer_ad | the whole influencer flow in one step: claim, wait for media, creative, paused ad |
In AI apps that support MCP Apps, some tools show a small interactive card inside the chat instead of only text. Where they appear: Claude Desktop shows them with the hosted version; with the local Claude Desktop extension it shows the plain data instead, and other apps may do either, because card support is up to each app and is still new. Nothing depends on them: every answer also arrives as text and data.
snap_dashboard: spend, ROAS, purchases, cost per purchase and swipe rate for 7, 14 or 30 days (switch with the buttons), spend by day, and this month's pacing.snap_dashboard also lists alerts from the same days (a spend spike or drop, missing purchases, ROAS or cost per purchase moving sharply), each one dismissible.snap_campaign_board: campaigns or ad squads (switch with the buttons) with spend, ROAS and purchases for 7, 14 or 30 days, sorting and a "needs a look" filter. Pause, Resume and, on ad squads, −20% / +20% budget buttons first show the change and its spending effect (the daily budget that would start delivering, and the 24-hour total), and nothing happens until you press Confirm.snap_budget_advice: the suggested budget moves as a list to tick; the net change updates as you tick, and Apply previews and applies each selected move with its own approval token, one by one, stopping at the first refusal.snap_change_history: a filterable timeline of changes with before and after values and an Undo button that previews the undo first.snap_setup_check: what is connected and what is missing, the money limits, and whether you are asked before every change.How they stay safe: the buttons call the same tools with the same previews, approval tokens, spend limits and read-only setting as before; with SNAP_READ_ONLY on, Confirm and Apply stay disabled. The cards have no network access, show names from your account as plain text (never as code), and follow the app's light or dark theme (each card also has a Light mode / Dark mode button). In apps without card support nothing changes: the same answers arrive as text and data.
Things to ask your assistant (each names the tool it will use):
snap_list_campaigns, status ACTIVE)snap_spend_pacing)snap_budget_advice, snap_health_check)snap_create_campaign, previewed first)snap_set_daily_budget, previewed, with a warning if the amount is unusual)snap_undo)Snapchat permissions. The Snapchat login must have access to the ad account in Ads Manager. Reading and changing both go through the login's own rights: if the login can edit campaigns in Ads Manager, so can this server; if it can only view, changes fail. Check the roles in Ads Manager under Members. Asking Snap for an item your login cannot see returns a 403 with a hint.
Rate limits. Snap limits how many requests a login may send. The server retries reads on 429 and 5xx and honours Snap's Retry-After; writes are retried only on 429, never after a network failure (so a change is never applied twice). If Snap still refuses, the error says how long to wait.
Long lists. snap_list_* tools take limit, offset and response_format (concise = id, name, status; detailed = everything). Each answer says has_more and next_offset. Results also come back as structured data next to the text.
Evaluation questions. test/eval/questions.json holds ten read-only questions with known answers; npm test runs them against a fake Snap.
Creators share a code like adcode_<uuid>. snap_influencer_ad claims it into the ad account (POST /adaccounts/{id}/claim_media_by_ad_code?ad_code=&profile_id=, parameters go in the query string), waits for the media to be READY, creates a WEB_VIEW creative on the brand profile (SNAP_BRAND_PROFILE_ID) and creates a paused ad in the ad squad you choose.
Notes from live use:
# are for other platforms and are rejected.From an npm install, use npx -y ads-mcp-for-snapchat check | weekly-report instead; reports then go to ~/.ads-mcp-for-snapchat/exports/.
npm run smoke: live read-only check of credentials, token refresh and the main read paths (exit code 1 on any failure). Run it after changing a secret or updating the server.npm run weekly-report: read-only weekly report saved to exports/weekly-<date>.md (spend and ROAS vs last week, top campaigns, account health, tired ads, review problems, pixel issues). Optional argument: end date, e.g. npm run weekly-report -- 2026-10-27.Node 18+ and a Snapchat Ads account with permission to create an OAuth app. Install dependencies with npm install. Run the tests with npm test (all mocked, no credentials needed).
Each user runs this server locally with their own ad account, and (for now) their own OAuth app. Nothing about your ad account is hosted or shared; the optional login service (see above) only handles the Snapchat login.
localhost, for example https://127.0.0.1/callback. The client secret is shown once: select it and copy it before leaving the page..env.example to .env, fill in SNAP_CLIENT_ID and SNAP_REDIRECT_URI.node scripts/save-secret.js (reads the clipboard on macOS, Windows, and Linux with wl-paste, xclip or xsel; it refuses text that does not look like a secret and clears the clipboard). Without a clipboard tool use node scripts/save-secret.js --stdin, or add SNAP_CLIENT_SECRET=... to .env yourself and make the file private (chmod 600 .env).https://accounts.snapchat.com/login/oauth2/authorize?response_type=code&client_id=CLIENT_ID&redirect_uri=REDIRECT_URI&scope=snapchat-marketing-api&state=ads-mcp-for-snapchat...?code=.... Within a minute or two run: CODE=THE_CODE node scripts/get-refresh-token.js. It saves SNAP_REFRESH_TOKEN into .env and prints nothing secret.node scripts/check.js refreshes the token and tests /me and the ad account (read-only).claude mcp add --scope user snapchat-ads -- node "/ABSOLUTE/PATH/TO/ads-mcp-for-snapchat/src/index.js", then restart Claude Code.This is a local MCP server (stdio). Credentials stay in your .env; the AI app only starts the process.
Claude Code (step 7 above): claude mcp add --scope user snapchat-ads -- node "/ABSOLUTE/PATH/TO/ads-mcp-for-snapchat/src/index.js", then restart. Check with claude mcp list.
Claude Desktop: open Settings > Developer > Edit Config and add this to claude_desktop_config.json, then fully quit and reopen the app:
{
"mcpServers": {
"snapchat-ads": {
"command": "node",
"args": ["/ABSOLUTE/PATH/TO/ads-mcp-for-snapchat/src/index.js"]
}
}
}
Use the absolute path to node as command if the app cannot find it. The server reads .env from its own folder (an npm install reads ~/.ads-mcp-for-snapchat/.env), so no secrets go in this file.
ChatGPT: ChatGPT connects to remote MCP servers (an https URL) through its connectors / developer mode, not to local stdio programs. Use the hosted version for that (untested in ChatGPT so far; if it fails, please open an issue with the exact error). Do not expose the local server publicly: it can change real ad campaigns. Other desktop MCP clients that launch local stdio servers (Cursor, VS Code, Cline) work with the same command and args as above.
Run one server per ad account, each with its own settings file. Each server only touches its own account, and keeps its own change log (<settings file>.log.jsonl), so limits, undo and the audit trail never mix.
cp .env .env.account2. In .env.account2, set that account's SNAP_AD_ACCOUNT_ID, SNAP_PIXEL_ID, SNAP_BRAND_PROFILE_ID and its own limits. Every .env* file except .env.example is git-ignored.SNAP_ENV_FILE=.env.account2 node scripts/get-refresh-token.js, then SNAP_ENV_FILE=.env.account2 node scripts/check.js. If the same login can see both accounts, the copied credentials already work.claude mcp add --scope user snapchat-ads-2 -e SNAP_ENV_FILE="/ABSOLUTE/PATH/TO/ads-mcp-for-snapchat/.env.account2" -e SNAP_READ_ONLY=1 -- node "/ABSOLUTE/PATH/TO/ads-mcp-for-snapchat/src/index.js"
The server name must come before -e (-e takes every value after it). -e SNAP_READ_ONLY=1 starts the new account read-only, whatever its file says; remove it (claude mcp remove snapchat-ads-2, then add it again without it) when you are ready.snap_ping shows the new account's id (not the first account's) and readOnly: true.Scripts work the same way: put SNAP_ENV_FILE=.env.account2 in front of any node scripts/... command.
npm run weekly-report writes exports/weekly-<account>-<date>.md (read-only; nothing is changed in the account). To run it every Sunday at 09:30 on macOS or Linux, add a line with crontab -e, using the full path of node (which node):
30 9 * * 0 cd "/ABSOLUTE/PATH/TO/ads-mcp-for-snapchat" && /full/path/to/node scripts/weekly-report.js >> "$HOME/snap-weekly.log" 2>&1
The computer must be awake at that time. Set SNAP_REPORT_UTC_OFFSET so the week starts at your local midnight. For a second account add SNAP_ENV_FILE=.env.account2 before /full/path/to/node.
Verified on the maintainer's own ad account. Anything not listed here is covered by mocked tests only: try it with SNAP_READ_ONLY=1 on your account first.
After the safety layer (November 2026):
snap_ping (shows the limits in force), start-up validation of .env.name_contains, ad squad details.snap_undo preview and undo.snap_create_ad choosing ad type STORY, created PAUSED in a paused test ad squad.snap_create_ad choosing ad type COLLECTION, created PAUSED in a paused test ad squad. Snap refused non-square product images, which the preview now checks (0.3.2).Before the safety layer (earlier tests, on throwaway paused objects): pause/enable (single and bulk), budget, bid, targeting, schedule, bulk edits, campaign / ad squad copy, ad and creative clone, create campaign and ad squad, lookalike and pixel audiences, customer-list audience (with fake data), influencer flow and batch, media upload (simple and chunked), async reports, health check, review issues, pixel health, and the guarded delete (on a throwaway campaign).
Read-only run of verify on the maintainer's real ad account (November 2026, 23 of 24 tools worked; and 20 of 24 with none failed on a second account connected through the shared login, the rest skipped for optional settings): snap_ping; the campaign, ad squad, media and audience lists; spend pacing; anomaly check; funnel; hourly report; billing check; audience health; unused media; budget advice; landing page check; health check; review issues; dynamic template list; catalog feed status; pixel health; audience size; audience insights; and the public Ads Gallery lookup. That run found real bugs that mocked tests could not (Snap's account-level stats accept only the spend field; the landing page check read too much; a shop's bot protection answered 403), all fixed in 0.9.1 and after.
Not verified live:
SNAP_CAPI_TOKEN), the portfolio summary (needs a second settings file), blended ROAS (needs your store's revenue), creative comparison, ad preview, and the playbooks.SNAP_HUMAN_APPROVAL=elicit in Claude Code, snap_create_creative with a WEB_VIEW link, a campaign-level snap_set_daily_budget, a successful snap_delete of an ad squad, ad or audience, a customer-list upload of real data, and Node 18 / 20 outside CI.broker/) only passes Snapchat logins along; the local tool always runs on your own computer.npm ci, then npm test (all tests use a mocked API; none touch your account). See ARCHITECTURE.md for the design and CONTRIBUTING.md before sending changes.