Apple Ads

com.getmcpads由 getmcpads.com 发布v1.0.1更新于 Nov 2, 2026

Apple Ads MCP server: 9 read tools, 11 opt-in preview-first writes.

已验证STDIO仅桌面数据与分析商业与电商

概览

AI 生成的概览

本地 stdio 的 Apple Ads MCP 服务器:读取 App Store 广告系列、广告组、关键词与报表,并可选地执行先预览后确认的修改。

可以做什么
  • 列出并读取广告账户,包括币种、时区与结算配置
  • 读取广告系列、广告组、正向关键词与 App Store 应用元数据,并检查应用投放资格
  • 读取广告系列、广告组、广告、关键词与搜索词的效果报表及原生汇总
  • 创建暂停状态的广告系列、广告组、关键词与广告账户(写入工具,默认关闭)
  • 在预览快照之后更新或重命名广告系列、广告组、关键词、广告与广告账户
适用场景
适合管理 Apple Ads 的 App Store 搜索结果广告系列,并希望助手在桌面 MCP 客户端中查看效果、核对账户权限与应用资格,或准备并确认广告系列改动时使用。
运行要求
以本地 Node.js 进程运行(需 Node.js 22.23.4、24.22.1 或 26.12.1 及这些版本线的更新版本),可通过 npm 包或源码构建安装,并需支持 stdio 的客户端,如 Claude Desktop、Claude Code 或 Cursor。需要 Apple Ads API 用户:APPLE_ADS_CLIENT_ID、APPLE_ADS_TEAM_ID、APPLE_ADS_KEY_ID,通过 APPLE_ADS_PRIVATE_KEY 或 APPLE_ADS_PRIVATE_KEY_PATH 提供 EC P-256 私钥,以及 APPLE_ADS_AD_ACCOUNT_IDS。需能访问 Apple 接口。
安装前请注意
需要 Apple Ads API 私钥(APPLE_ADS_PRIVATE_KEY 或 APPLE_ADS_PRIVATE_KEY_PATH 指向的 PEM 文件),务必保密,并通过客户端的密钥配置提供凭据。除非 APPLE_ADS_ENABLE_WRITES 恰为 true,写入工具不会暴露,且会创建或修改线上广告数据。将状态设为 ENABLED 可能消耗广告预算。每次写入需先审阅预览,再传 confirm: true 与 expectedSnapshot;结果不确定时不要自动重试写入。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Apple Ads,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

Apple Ads MCP server

Bring your Apple Ads accounts into your MCP client.

Read App Store campaigns and performance and prepare changes for explicitly selected ad accounts.

[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.

9 read tools · 11 write tools, disabled by default.

Run locally with your own platform credentials and a client that supports stdio MCP, such as Claude Desktop, Claude Code or Cursor. Your requests go directly to the platform. 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 or 26.12.1, or a newer release of those lines, which carry the October 2026 security fixes. The server writes a warning to stderr when it starts on an older runtime. CI covers Node 22, 24 and 26. Writes remain optional and require explicit confirmation. Hosted alerts, 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. Once the npm package is published, npx -y @getmcpads/apple-ads-mcp-server runs the version currently available on npm.

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

Configure your MCP client to run node with the absolute path to dist/cli.js and the platform credentials documented below. For Claude Desktop:

json
{  "mcpServers": {    "apple-ads": {      "command": "node",      "args": ["/absolute/path/to/apple-ads-mcp-server/dist/cli.js"],      "env": {        "APPLE_ADS_CLIENT_ID": "SEARCHADS.your-client-id",        "APPLE_ADS_TEAM_ID": "SEARCHADS.your-team-id",        "APPLE_ADS_KEY_ID": "your-key-id",        "APPLE_ADS_PRIVATE_KEY_PATH": "/absolute/path/to/private-key.pem",        "APPLE_ADS_AD_ACCOUNT_IDS": "123456789"      }    }  }}

npm run doctor checks the configuration and the Node.js release without contacting Apple.

Prefer a managed connection? Use Apple 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

The Apple Ads Platform API uses OAuth 2 client credentials. The client secret is a short-lived JWT that this server signs with your private key, then exchanges for an access token valid for one hour. Follow Apple's OAuth guide:

  1. Generate an EC P-256 key pair and keep the private key secret:
    bash
    openssl ecparam -genkey -name prime256v1 -noout -out private-key.pemopenssl ec -in private-key.pem -pubout -out public-key.pem
  2. In Apple Ads, signed in as the API user, open Account Settings > API, paste the public key and save.
  3. Copy the clientId, teamId and keyId shown above the public key field.

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

VariablePurpose
APPLE_ADS_CLIENT_IDThe clientId from Account Settings > API.
APPLE_ADS_TEAM_IDThe teamId from Account Settings > API.
APPLE_ADS_KEY_IDThe keyId from Account Settings > API.
APPLE_ADS_PRIVATE_KEY_PATHAbsolute path to the unencrypted PEM private key. Set this or APPLE_ADS_PRIVATE_KEY.
APPLE_ADS_PRIVATE_KEYThe PEM text itself, as an alternative to the path. Escaped \n line breaks are accepted.
APPLE_ADS_AD_ACCOUNT_IDSRequired comma-separated ad account IDs, from 1 to 200. Every request is restricted to these accounts.
APPLE_ADS_ENABLE_WRITESDefaults to false. Only the exact value true exposes writes.

The key is read once at startup and kept in memory. Both the PKCS #8 and the SEC1 PEM formats are accepted. This package runs no OAuth browser flow and writes nothing to disk. Account-scoped requests carry the header X-AP-Context: adAccountId=<id>, as the Platform API requires. Call apple_ads_list_ad_accounts first: it confirms which configured accounts the API user can reach and with which roles.

Safety and coverage

Writes preview by default. Review the exact account, target and parameters before repeating the call with confirm: true. Update previews return an expectedSnapshot of the resource and the change. The confirmed call must pass it back, so a resource that changed in between is not overwritten. Campaigns, ad groups and keywords are created paused. Setting a status to ENABLED can spend advertising budget, and previews flag it with activationMaySpend. Do not retry a write automatically when its result is uncertain. Read the entity and reconcile it first. The only automatic replay is a read sent once more after the access token is renewed. The account allowlist applies before dispatch and filters account discovery. Parent chains are checked, so a keyword or an ad from another ad account is refused. Unknown arguments are rejected.

Requests go only to api.ads.apple.com and appleid.apple.com. Redirects are refused, requests time out and responses are size-bounded. Error messages carry Apple's status, a fixed code and vetted validation paths, never provider text, which can echo values or credentials. Money uses Apple's native objects: a decimal amount in major units with the account currency, such as {"amount":"1.50","currency":"EUR"}. Native pagination, attribution metrics, report totals and grand totals are preserved. List and report responses add nextOffset, which is null on the last page.

This server uses the Apple Ads Platform API v1. Apple states in its changelog that the Platform API supersedes the Campaign Management API, which will be sunset on January 26, 2027. It exposes the reviewed subset synchronized from the hosted gateway: App Store search-results campaigns, ad groups, keywords, ad renames, apps and reports. Negative keywords, creatives, product pages, budget orders, bulk operations, insights, recommendations and Apple Maps ads are not included. Use tools/list or server-card.json for exact schemas.

Hosted option

getmcpads for Apple 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.

9 read tools
ToolPurpose
apple_ads_list_ad_accountsList the configured ad accounts the API user can access, with organization and roles
apple_ads_get_accountRead an ad account, including currency, timezone and billing configuration
apple_ads_get_campaignsRead a page of campaigns, optionally filtered by status
apple_ads_get_campaignRead one campaign and verify that it belongs to the ad account
apple_ads_get_adgroupsRead a page of the ad groups of one campaign
apple_ads_get_keywordsRead a page of the positive keywords of one ad group
apple_ads_get_appRead App Store app metadata available to the ad account
apple_ads_get_app_eligibilityCheck an app's advertising eligibility and storefronts before creating a campaign
apple_ads_get_reportRead campaign, ad group, ad, keyword or search-term performance with native totals
11 write tools

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

ToolPurpose
apple_ads_create_campaignCreate a paused App Store search-results campaign for an eligible app
apple_ads_create_adgroupCreate a paused manual cost-per-tap ad group under a verified campaign
apple_ads_create_keywordCreate a paused positive keyword in a verified ad group
apple_ads_create_accountCreate an ad account in the API user's organization
apple_ads_update_campaignChange a campaign's name, status or daily budget, bound to the preview snapshot
apple_ads_update_adgroupChange an ad group's name or status, bound to the preview snapshot
apple_ads_update_keywordChange a keyword's status or bid, bound to the preview snapshot
apple_ads_rename_campaignRename a campaign
apple_ads_rename_adgroupRename an ad group
apple_ads_rename_adRename an ad
apple_ads_rename_ad_accountRename an ad account, sending the name alone

Resources

ResourceContent
apple-ads://guideAccount scope, money units, report rules, pagination and write safety
apple-ads://report-catalogNative report metrics, additive metrics, grouping dimensions and the rules of each report level

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,提交 f8de67c

工具

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 分