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 分