apple-ads-mcp
Provides tools for managing Apple Search Ads campaigns, ad groups, keywords, budgets, creatives, search terms, and performance reporting.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@apple-ads-mcpHow did my campaigns perform last week?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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
Feature | Description |
Campaign management | Create, update, pause, and delete campaigns and ad groups |
Keyword optimization | Add/remove targeting and negative keywords, update bids |
Performance reporting | Campaign, ad group, keyword, ad, and geo reports with date presets |
Search term analysis | See actual search queries triggering your ads |
Creative management | Manage ads, creatives, and product pages |
Budget control | Create and manage budget orders, analyze utilization |
Impression share | Generate and retrieve impression share reports |
Multi-org support | Switch between organizations at runtime |
Quick Start
Get your Apple credentials (~10 min, one-time)
Generate your key pair (2 commands)
Start chatting
Related MCP server: google-ads-mcp
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
Step 3 — Generate your key pair
Open Terminal and run:
openssl ecparam -genkey -name prime256v1 -noout -out ~/apple-ads-key.pem && \
openssl pkcs8 -topk8 -nocrypt -in ~/apple-ads-key.pem -out ~/apple-ads-key-pkcs8.pemThen generate the public key:
openssl ec -in ~/apple-ads-key-pkcs8.pem -pubout -out ~/apple-ads-key-public.pemThis 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:
cat ~/apple-ads-key-public.pemCopy 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
Edit ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"apple-ads": {
"command": "npx",
"args": ["-y", "apple-ads-mcp"],
"env": {
"ASA_CLIENT_ID": "SEARCHADS.xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"ASA_TEAM_ID": "SEARCHADS.xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"ASA_KEY_ID": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"ASA_PRIVATE_KEY_PATH": "/Users/yourname/apple-ads-key-pkcs8.pem"
}
}
}
}Restart Claude Desktop after saving.
claude mcp add apple-ads \
-e ASA_CLIENT_ID=SEARCHADS.xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx \
-e ASA_TEAM_ID=SEARCHADS.xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx \
-e ASA_KEY_ID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx \
-e ASA_PRIVATE_KEY_PATH=/Users/yourname/apple-ads-key-pkcs8.pem \
-- npx -y apple-ads-mcpAdd to .cursor/mcp.json:
{
"mcpServers": {
"apple-ads": {
"command": "npx",
"args": ["-y", "apple-ads-mcp"],
"env": {
"ASA_CLIENT_ID": "SEARCHADS.xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"ASA_TEAM_ID": "SEARCHADS.xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"ASA_KEY_ID": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"ASA_PRIVATE_KEY_PATH": "/Users/yourname/apple-ads-key-pkcs8.pem"
}
}
}
}Add to your settings.json:
{
"mcp": {
"servers": {
"apple-ads": {
"command": "npx",
"args": ["-y", "apple-ads-mcp"],
"env": {
"ASA_CLIENT_ID": "SEARCHADS.xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"ASA_TEAM_ID": "SEARCHADS.xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"ASA_KEY_ID": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"ASA_PRIVATE_KEY_PATH": "/Users/yourname/apple-ads-key-pkcs8.pem"
}
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"apple-ads": {
"command": "npx",
"args": ["-y", "apple-ads-mcp"],
"env": {
"ASA_CLIENT_ID": "SEARCHADS.xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"ASA_TEAM_ID": "SEARCHADS.xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"ASA_KEY_ID": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"ASA_PRIVATE_KEY_PATH": "/Users/yourname/apple-ads-key-pkcs8.pem"
}
}
}
}This server uses STDIO transport. Any MCP-compatible client can connect by running:
npx -y apple-ads-mcpSet these environment variables:
Variable | Description |
| Your client ID (starts with |
| Your team ID (starts with |
| Your key ID (UUID) |
| Absolute path to your PKCS#8 private key |
| (optional) Organization ID to use by default |
Replace ASA_PRIVATE_KEY_PATH with ASA_PRIVATE_KEY and paste the PEM content with \n for line breaks:
"ASA_PRIVATE_KEY": "-----BEGIN PRIVATE KEY-----\nMIGH...your-key...\n-----END PRIVATE KEY-----"Tools
Category | Count | What you can do |
Organizations | 3 | List and switch between organizations. Get user details. |
Campaigns | 6 | List, create, update, delete campaigns. Pull performance reports. |
Ad Groups | 6 | Manage ad groups within campaigns. Get ad group reports. |
Keywords | 11 | Add/remove targeting and negative keywords. Update bids. Keyword reports. |
Search Terms | 1 | See the actual queries people searched before tapping your ad. |
Ads | 7 | List, create, update, delete ads. Get ad reports and rejection reasons. |
Creatives | 5 | Manage creatives and product pages. |
Budget Orders | 4 | Create, update, list, and get budget order details. |
Apps & Geo | 5 | Search for eligible apps, check eligibility, find assets, search geolocations. |
Geo Performance | 1 | Performance breakdown by country/region. |
Impression Share | 3 | Create, list, and retrieve custom impression share reports. |
Optimization | 2 | Campaign snapshots and budget utilization analysis. |
All 54 tools
Category | Tools |
Organizations |
|
Campaigns |
|
Ad Groups |
|
Keywords |
|
Search Terms |
|
Ads |
|
Creatives |
|
Budget Orders |
|
Apps & Geo |
|
Geo Performance |
|
Impression Share |
|
Optimization |
|
Resources
The server exposes 3 resources:
URI | Description |
| Supported countries and regions for Apple Search Ads |
| App preview device sizes for creative assets |
| Definitions, formulas, and benchmarks for all reporting metrics (CPA, CPT, TTR, etc.) |
Prompts
6 built-in workflow prompts to guide common tasks:
Prompt | Description |
| Comprehensive campaign analysis — reviews spend, conversions, CPA trends, and flags issues |
| Keyword and search term optimization workflow — finds wasted spend and new opportunities |
| Guided new campaign creation — walks through app selection, structure, keywords, and budgets |
| Cross-campaign budget analysis — identifies over/under-spending and proposes budget shifts |
| Creative A/B review — compares ad performance, flags rejections, recommends winners |
| Geographic expansion analysis — ranks current markets and identifies new ones to enter |
"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.
git clone https://github.com/javiergalloroca/AppleAdsMCP.git
cd AppleAdsMCP
npm install
npm run build
npm startFor hot reload: npm run dev
See CONTRIBUTING.md for contribution guidelines.
License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseBqualityDmaintenanceMCP server exposing the full Apple Ads (Search Ads) Campaign Management API v5 — 74 typed tools742010MIT

google-ads-mcpofficial
AlicenseNot gradedqualityBmaintenanceMCP server that provides tools and resources for interacting with Google Ads API, enabling search, metadata retrieval, and account management through natural language.865Apache 2.0- FlicenseNot gradedqualityDmaintenanceA comprehensive MCP server for managing and analyzing Meta Ads (Facebook/Instagram) with over 80 natural-language tools for AI agents like Claude Desktop.
- AlicenseNot gradedqualityDmaintenanceMCP server for Meta Ads providing 30 tools for account discovery, campaign management, targeting research, and insights. Designed with LLM-friendly outputs and productivity features like cloning and bulk operations.1MIT
Related MCP Connectors
MCP server for Appcircle mobile CI/CD platform.
Create App Store screenshots, icons, ASO copy, localization, and revisions via hosted MCP.
Hosted MCP with 91 agent tools: X, domains, SEO, Maps, Trends, Search, YouTube, TikTok, and more.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Happygallo/apple-ads-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server