
Apple Ads
io.github.Happygallo由 GitHub 帳號 Happygallo 發布v1.0.3更新於 Oct 24, 2026
Manage Apple Search Ads campaigns, keywords, budgets, and reports via API v5.
概覽
針對 Apple Search Ads API v5 的在地 MCP 伺服器,讓助理用自然語言管理廣告活動、關鍵字、預算與報表。
- 可以做什麼
- 列出、建立、更新與刪除廣告活動和廣告群組,並取得活動與廣告群組報表
- 新增、修改與移除指定關鍵字和排除關鍵字,調整出價,查看關鍵字報表
- 檢視搜尋詞、廣告、創意和產品頁面,包括廣告被拒原因
- 建立與管理預算訂單,分析預算使用情形,產生活動快照
- 搜尋可投放的應用程式與地理位置,查看地區成效,建立曝光比重報表
- 在多個組織之間切換,並讀取內建資源與流程提示
- 適用情境
- 適合正在投放 Apple Search Ads、想讓助理檢視成效、調整預算與出價、優化關鍵字與搜尋詞而不必登入網頁後台的人。已具備 Apple Search Ads 憑證的帳戶管理員或 API 使用者最適用。
- 執行需求
- 透過 npx(Node.js)以 stdio 在本機執行。需要一個 Apple Search Ads API 使用者,並設定四個環境變數:ASA_CLIENT_ID、ASA_TEAM_ID、ASA_KEY_ID 與 ASA_PRIVATE_KEY_PATH(或內嵌的 ASA_PRIVATE_KEY)。ASA_ORG_ID 為選用。需自行產生 PKCS#8 金鑰對並將公鑰上傳至 Apple。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Apple Ads,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
Apple Ads MCP
[npm version] [MCP compatible] [TypeScript] [License]
MCP server for the Apple Search Ads API v5.
Connect it to any MCP-compatible AI client and manage your campaigns, keywords, budgets, and reporting through natural language.
Quick Start • Tools • Resources • Prompts • Clients
Ask your AI things like:
"How did my campaigns perform last week?" "Pause the brand campaign and increase the budget on discovery to $500." "What search terms are triggering my ads? Add the best ones as exact-match keywords."
Supports 54 tools, 3 resources, and 6 prompts — campaigns, ad groups, keywords, creatives, budgets, search terms, geo targeting, impression share, and performance reports.
Features at a glance
Quick Start
- Get your Apple credentials (~10 min, one-time)
- Generate your key pair (2 commands)
- Add to your MCP client
- Start chatting
Setup
Step 1 — Invite an API user
Done by the account admin at searchads.apple.com.
- Go to Settings → User Management → Invite User
- Enter the email of the person who will use the API
- Set the role:
- API Account Manager — full read/write access
- API Account Read Only — view-only access
- Send the invitation
The API user must be a different Apple ID from the admin. If you're the admin, use a second Apple ID.
Step 2 — Accept and copy your credentials
Done by the invited user.
- Accept the email invitation and sign in to searchads.apple.com
- Go to Settings → API tab
- Copy and save these three values:
- clientId — starts with
SEARCHADS. - teamId — starts with
SEARCHADS. - keyId — a UUID
- clientId — starts with
Step 3 — Generate your key pair
Open Terminal and run:
Then generate the public key:
This creates:
~/apple-ads-key-pkcs8.pem— private key (keep this safe, used in your config)~/apple-ads-key-public.pem— public key (upload to Apple next)
Step 4 — Upload public key to Apple
Print your public key:
Copy the entire output (including the BEGIN / END lines), then:
- Go to Settings → API tab on searchads.apple.com
- Paste into the Public Key field
- Save
Step 5 — Add to your MCP client
Pick your client below and fill in your clientId, teamId, and keyId from Step 2, and the full path to your private key from Step 3.
Multiple orgs? Omit
ASA_ORG_IDand uselist_organizations/switch_organizationat runtime. Or set it inenvto pick a default.
Clients
Claude Desktop
Edit ~/Library/Application Support/Claude/claude_desktop_config.json:
Restart Claude Desktop after saving.
Claude Code
Cursor
Add to .cursor/mcp.json:
VS Code
Add to your settings.json:
Windsurf
Add to ~/.codeium/windsurf/mcp_config.json:
Other MCP clients
This server uses STDIO transport. Any MCP-compatible client can connect by running:
Set these environment variables:
Inline key (no file)
Replace ASA_PRIVATE_KEY_PATH with ASA_PRIVATE_KEY and paste the PEM content with \n for line breaks:
Tools
All 54 tools
Resources
The server exposes 3 resources:
Prompts
6 built-in workflow prompts to guide common tasks:
Troubleshooting
"pkcs8 must be PKCS#8 formatted string" Your key is in the wrong format. Re-run the
openssl pkcs8command from Step 3.
"No organization selected" Use
list_organizationsthenswitch_organization, or addASA_ORG_IDto your config.
"Token request failed (401)" Verify your clientId, teamId, and keyId match Apple's API tab. Check that you uploaded your public key.
"Failed to read private key" Use an absolute path (e.g.
/Users/yourname/...), not~/....
Server disconnects immediately A required credential is missing. You need all four:
ASA_CLIENT_ID,ASA_TEAM_ID,ASA_KEY_ID, andASA_PRIVATE_KEY_PATH.
License
MIT
來源:README.md,提交 7f73700
工具
0版本歷史
1- v1.0.3最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分