Snapchat Ads

com.getmcpads由 getmcpads.com 發布v1.0.1更新於 Oct 27, 2026

Snapchat Ads MCP server: 21 read tools, 25 opt-in preview-first writes.

已驗證STDIO僅桌面資料與分析商業與電商

概覽

AI 產生的概覽

本機 stdio 的 Snapchat Ads MCP 伺服器:21 個讀取工具,外加 25 個預設關閉、先預覽後確認的寫入工具,僅限你指定的廣告帳戶。

可以做什麼
  • 讀取所選廣告帳戶中的廣告活動、廣告群組、廣告、創意、媒體、受眾區隔、潛在客戶表單、像素與行動應用程式
  • 依時間區間讀取投放數據,支援粒度、實體拆分與投放維度透視
  • 檢視定向設定、定向規格,並查詢國家、地區、語言、興趣、裝置等可選定向值
  • 建立與更新廣告活動、廣告群組、廣告、創意、區隔、創意元素、互動區域與潛在客戶表單
  • 重新命名實體,暫停或啟用廣告活動、廣告群組與廣告,管理客戶名單成員與相似受眾
  • 上傳圖片與影片媒體(含分段影片上傳),並查詢處理狀態
適用情境
適合想讓助理彙報 Snapchat Ads 投放成效與設定,或在桌面 MCP 用戶端中準備並執行廣告活動、創意與受眾變更、且不想經過託管中介層的情境。
執行需求
透過 npm 套件 @getmcpads/snapchat-ads-mcp-server 以 stdio 在本機執行;需要 Node.js 22.23.4、24.22.1、26.12.1 或這些版本線的更新版本。需設定 SNAPCHAT_ADS_ACCOUNT_IDS,並提供 SNAPCHAT_ADS_ACCESS_TOKEN,或同時提供 SNAPCHAT_ADS_REFRESH_TOKEN、SNAPCHAT_ADS_CLIENT_ID 與 SNAPCHAT_ADS_CLIENT_SECRET(來自你自己的 Snap Marketing API OAuth 應用程式)。需能連線至 Snap 廣告 API。
安裝前請注意
需要 Snap Marketing API 的 OAuth 憑證,包括密鑰 SNAPCHAT_ADS_CLIENT_SECRET 與更新權杖;權杖僅保存在記憶體中。除非 SNAPCHAT_ADS_ENABLE_WRITES 恰為 true,寫入工具不會啟用;透過 snapchat_update_status 啟用投放可能花費廣告預算。寫入會變更真實廣告帳戶,且需 confirm:true 才實際執行;結果不確定的寫入不會重試。客戶名單上傳會把雜湊後的用戶資料傳送給 Snap。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Snapchat Ads,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

Snapchat Ads MCP server

Bring your Snapchat Ads accounts into your MCP client.

Read campaigns and performance, and prepare changes for the ad accounts you select.

[Release] [CI] [License: Apache 2.0] [Node]

Watch the film · What's new · Install · Tool reference · Try hosted getmcpads

[Watch the getmcpads film: every ad account in one conversation with your AI assistant]

Play the 45-second film

The film shows hosted getmcpads with sample data. Its MCP Apps, from creative galleries and alerts to Google Sheets exports and bulk launches, belong to the hosted product. This repository provides the standalone native API tools.

21 read tools · 25 write tools, disabled by default.

Run locally with your own Snap Marketing API credentials and a client that supports stdio MCP, such as Claude Desktop, Claude Code or Cursor. Your requests go directly to Snap. For managed connections, including supported ChatGPT setups, use the hosted option.

What's new

v1.0.1: Zod 4 security update · October 26, 2026

  • Update zod to 4.6.7. Every Zod release before 4.6.6 is covered by the high-severity advisory GHSA-mrhx-c7xc-m3w5: validating an oversized constrained collection can exhaust memory, and no Zod 3 release carries the fix. npm audit --omit=dev reports no vulnerability again.
  • Keep the Zod 3 validation behaviour. A parameter default is still validated and completed before use, so an omitted object must still supply its required fields.
  • Keep each parameter's own description when the parameter is optional or has a default. Zod 4 stores a description on the wrapped schema only, so the shared fallback description could otherwise replace it.
  • Tool names, parameters and descriptions published over MCP are unchanged. server-card.json is regenerated with Zod 4's JSON Schema output, which spells some constraints differently.

Earlier releases

VersionDateHighlights
1.0.0October 23, 2026First standalone release

Full changelog · All releases

Source synchronization: SOURCE_SYNC.md.

Upgrade notes

Requires Node.js 22.23.4, 24.22.1, 26.12.1 or a newer release of those lines. These releases carry the October 2026 security fixes, and the server prints a warning on stderr when it runs on an older one. CI covers Node 22, 24 and 26. Writes remain optional and require explicit confirmation. Hosted creative integrations and MCP Apps UI are outside this release.

Install this release

This is a GitHub source release. npm and MCP Registry versions are published separately. The commands below select this exact version; unpinned npx examples later in this document select the version currently available on npm.

bash
git clone --branch v1.0.1 --depth 1 https://github.com/get-mcp-ads/snapchat-ads-mcp-server.gitcd snapchat-ads-mcp-servernpm cinpm run build

Configure your MCP client to run node with the absolute path to dist/cli.js and the environment variables documented below.

Managed connection. Use Snapchat Ads with hosted getmcpads. Connect your account, select the data your assistant may access and use the hosted MCP connection. See the site for current features and plans.

Configuration

Provide these environment variables through the client's secret configuration:

VariablePurpose
SNAPCHAT_ADS_ACCOUNT_IDSRequired. Comma-separated ad account UUIDs this server may use. Requests for any other account are refused before they leave your machine. Organization IDs are not ad account IDs.
SNAPCHAT_ADS_REFRESH_TOKENRefresh token from your own Snap Marketing API OAuth app. With the two variables below, the server renews the access token in memory.
SNAPCHAT_ADS_CLIENT_IDClient ID of that OAuth app.
SNAPCHAT_ADS_CLIENT_SECRETClient secret of that OAuth app.
SNAPCHAT_ADS_ACCESS_TOKENOptional access token. Alone, it lasts until Snap expires it, after an hour. With the refresh credentials, it is used first.
SNAPCHAT_ADS_ENABLE_WRITESDefaults to false. Only the exact value true exposes the write tools. Any other value stops the server at startup.

Set either SNAPCHAT_ADS_ACCESS_TOKEN or the three refresh variables together. The server validates the configuration at startup and names the variable to fix, without repeating any value.

To obtain credentials, create an OAuth app for the Snap Marketing API, authorize it once with the snapchat-marketing-api scope, and exchange the authorization code for a refresh token, as described in Snap's authentication guide. This package does not run an OAuth browser flow. It keeps renewed tokens in memory only, so a restart begins again from the refresh token you configured.

Example client entry, once the package is on npm:

json
{  "mcpServers": {    "snapchat-ads": {      "command": "npx",      "args": ["-y", "@getmcpads/snapchat-ads-mcp-server"],      "env": {        "SNAPCHAT_ADS_ACCOUNT_IDS": "your-ad-account-uuid",        "SNAPCHAT_ADS_REFRESH_TOKEN": "your-refresh-token",        "SNAPCHAT_ADS_CLIENT_ID": "your-client-id",        "SNAPCHAT_ADS_CLIENT_SECRET": "your-client-secret"      }    }  }}

npm run doctor reports which variables are present, never their values, and whether your Node.js release carries the October 2026 security fixes.

Safety and coverage

Writes preview by default. Review the exact account, target and parameters before repeating the call with confirm: true. Campaigns, ad squads and ads are created paused. Activation through snapchat_update_status can spend advertising budget, and its preview says so. A write whose outcome is uncertain is never retried. A timeout, a network failure, a server error or an unreadable reply after a write is reported as unknown: read the entity and reconcile it first. A successful write is followed by an account-scoped readback, and the receipt is kept even when that readback fails. Before any write, the parent and every referenced pixel, app, audience, media, creative and lead form are read and checked against the selected ad account. Unknown arguments are rejected. Snap can answer HTTP 200 with a failed request_status or failed items. Both are reported as errors. An explicit single-create validation rejection is reported with applied: false. Monetary fields ending in _micro, spend and monetary conversion values are micro currency: 1,000,000 equals one unit of the account currency. List tools return next_cursor for the next page, and insights flag partial: true when Snap returned another page. Snap documents about 20 requests per second per app and 10 per second per access token. An HTTP 429 is reported with an instruction to wait.

Requests go only to adsapi.snapchat.com and to accounts.snapchat.com for token renewal. No request follows a redirect, every request has a timeout, and replies are capped at 16 MB. Media links that Snap returns are passed through as data and never downloaded. Tokens are redacted from every error.

Uploads take base64 bytes: 5 MB per image and 10 MiB per direct video, or up to 256 MiB of video through the multipart tools in parts of 8 MiB. Follow every upload with snapchat_get_media_status until ready is true. The gateway's four frozen-file upload tools read files from the hosted Launcher storage, so they are not part of this server. The gateway's native upload takes bytes and fetches no URL, so this server adds no local-file or URL upload either.

This server exposes a reviewed subset of the Snap Marketing API. Use tools/list or server-card.json for exact schemas, the snapchat://guide and snapchat://reporting-fields resources for units and curated reporting fields, and the official API reference for provider details.

Snap's official Ads MCP server

Snap documents its own Snapchat Ads MCP server. The comparison below uses only Snap's introduction and connection guide, read on October 23, 2026.

Snap's Ads MCP serverThis server
Where it runsA remote endpoint, https://mcp.snapchat.com/ads, reached over HTTPOn your machine, over stdio
AccessRead-only: an agent cannot create, update or delete anything. Snap plans write access for a future release.21 read tools, and 25 write tools when you enable them
AuthorizationOAuth with a client ID that Snap registered for each supported agent. An organization admin approves the agent, then each member authorizes.Your own Snap Marketing API OAuth app, configured through environment variables
Account scopeThe organizations and ad accounts that the member's Snapchat Ads permissions allowOnly the ad accounts in SNAPCHAT_ADS_ACCOUNT_IDS

Hosted option

getmcpads for Snapchat Ads manages the hosted connection and account selection. Hosted and source releases can differ. Contact: [email protected].

Development

bash
npm run typechecknpm run lintnpm run buildnpm testnpm run catalog

All tests run offline with synthetic responses and a mocked fetch. No live account is read or changed.

Tools

Every tool is listed below. See server-card.json for complete parameter and output schemas. An ad squad is Snap's ad group.

21 read tools
ToolPurpose
snapchat_health_checkRead the selected ad account, its timezone, currency and test flag. Test accounts cannot serve ads.
snapchat_get_campaignsList campaigns in the selected account, with native configuration and pagination.
snapchat_get_adsquadsList ad squads in the selected account.
snapchat_get_adsList ads in the selected account.
snapchat_get_creativesList creatives in the selected account.
snapchat_get_mediaList media in the selected account.
snapchat_get_segmentsList audience segments in the selected account.
snapchat_get_creative_elementsList creative elements, the tiles of Collection ads.
snapchat_get_interaction_zonesList interaction zones of Collection ads.
snapchat_get_lead_generation_formsList lead generation forms.
snapchat_get_media_statusRead one media object and its processing state. Only ready: true permits creative creation.
snapchat_list_ad_creativesResolve the images and videos behind ads, including Story children and Collection tiles, with fresh media links.
snapchat_get_targetingRead configured ad squad targeting, audiences, exclusions, geo and placements.
snapchat_get_entityRead one campaign, ad squad, ad, creative, media, segment, creative element, interaction zone or lead form, with verified ownership.
snapchat_get_write_schemaDescribe the fields this server accepts for each creation and edit, and the required ones.
snapchat_get_insightsRead native stats for an interval, with granularity, entity breakdown and an optional delivery pivot.
snapchat_get_mobile_appsRead the Snap App IDs associated with the account.
snapchat_get_pixelsRead the pixels associated with the account.
snapchat_get_targeting_specsRead separately stored targeting specs, including those above 500 criteria.
snapchat_get_targeting_optionsDiscover native targeting values: countries, regions, metros, postal codes, languages, genders, age groups, interests and devices.
snapchat_get_setup_guideRead objectives, audience workflows, format prerequisites and the limits of this server.
25 write tools

Disabled by default. Calls preview unless explicitly confirmed. Check the configuration and exact schema before use.

ToolPurpose
snapchat_create_campaignCreate a campaign, always paused.
snapchat_update_campaignUpdate campaign configuration.
snapchat_create_adsquadCreate an ad squad under a campaign, always paused.
snapchat_update_adsquadUpdate ad squad targeting, schedule, budget and other configuration.
snapchat_create_adCreate an ad under an ad squad, always paused.
snapchat_update_adUpdate ad configuration.
snapchat_create_creativeCreate a creative, after checking its media, public profile and call to action.
snapchat_update_creativeUpdate creative configuration.
snapchat_create_mediaCreate a media object to upload into.
snapchat_create_segmentCreate an audience segment: customer list, pixel, mobile or engagement audience.
snapchat_create_creative_elementCreate a creative element for a Collection ad.
snapchat_create_interaction_zoneCreate an interaction zone from creative elements.
snapchat_create_lead_generation_formCreate a lead generation form.
snapchat_rename_campaignRename one campaign. Only the name changes.
snapchat_rename_adsquadRename one ad squad. Only the name changes.
snapchat_rename_adRename one ad. Only the name changes.
snapchat_rename_ad_accountRename the ad account by writing it back as read, with the new name.
snapchat_update_statusPause or activate a campaign, ad squad or ad. Activation can spend budget.
snapchat_upload_mediaUpload base64 image or video bytes into a media object.
snapchat_update_segmentRename an audience segment or change its description or retention.
snapchat_update_audience_usersAdd or remove customer-list members as normalized SHA-256 hashes.
snapchat_create_lookalikeCreate a lookalike audience from an owned customer list.
snapchat_init_media_uploadStart a multipart video upload of up to 256 MiB.
snapchat_upload_media_partUpload one part of a multipart video upload.
snapchat_finalize_media_uploadFinalize a multipart video upload.

Resources

ResourceContent
snapchat://guideUnits, pagination, write safety, upload limits and rate limits.
snapchat://reporting-fieldsCurated stats fields and breakdowns for snapchat_get_insights.

License

Apache License 2.0. See NOTICE.

More from getmcpads

Meta Ads · Google Ads · Google Analytics 4 · Google Search Console · TikTok Ads · Pinterest Ads · X Ads

Maintained by Emmanuel at getmcpads. Questions: [email protected].

來源:README.md,提交 14f076b

工具

0
SourceWeft 曾在隔離沙箱中以無憑證方式啟動該軟體包一次,以列出其工具,但未能完成:伺服器未能啟動。

版本歷史

2
  1. v1.0.1最新Oct 26, 2026
  2. v1.0.0Oct 23, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分