MCP Server Overview
Learn how AdsMAA's MCP Server connects your Meta Ads data to AI tools like Claude, Cursor, and VS Code.
The AdsMAA MCP Server is a bridge between your Meta Ads data and AI tools like Claude, Cursor, and VS Code. Using the open Model Context Protocol (MCP) standard by Anthropic, it lets you manage campaigns, analyze performance, run audits, and generate ad copy — all through natural language.
What is MCP?
Model Context Protocol (MCP) is an open standard that lets AI assistants connect to external tools and data. Think of it as a USB port for AI — plug in the AdsMAA MCP server, and your AI assistant instantly gains 180 tools for managing Meta Ads, including the latest Marketing API v23 surfaces (Advantage+ Suite, Advantage+ Creative AI, Threads ads, Business AI).
Supported AI Clients:
- Claude Desktop — Anthropic's desktop app
- Claude Code — CLI tool for developers
- Cursor — AI-powered code editor
- VS Code — Via MCP extensions
- Any MCP-compatible client
Architecture
outputYour AI Assistant (Claude, Cursor, VS Code) | v AdsMAA MCP Server (180 tools, rate-limited) | +-- AdsMAA Backend API (51 tools) | | | +-- PostgreSQL (synced data, audit reports, AI insights) | +-- AI Engine (audit, autopilot, copy generation) | +-- Live Meta Proxy (~99 tools — read, write, creatives, videos, audiences, catalogs, rules, more) | | | +-- Meta Graph API v23 (real-time via stored OAuth tokens) | +-- v23 surface (30 tools — Advantage+ Suite, Advantage+ Creative AI, CTWA + WhatsApp Flows, Threads/IG publishing, Business AI, measurement, ASC/AAC migration scan, version info)
The key design principle: all Meta API access goes through AdsMAA. When you connect your Meta ad account via OAuth in the AdsMAA dashboard, the MCP server uses that same connection. No separate Meta tokens or credentials needed.
Tool Categories
The MCP server provides 180 tools across 26 categories (20 base + 6 v23 additions):
| Category | Tools | Description |
|---|---|---|
| Integrations | 3 | List connected accounts, trigger syncs, health check |
| Campaigns | 8 | List, get, stats, trends, top performers, needs attention, bulk update |
| Ad Sets & Ads | 5 | List, get ad sets and ads with creative data |
| Analytics | 12 | Audience, video, engagement, placement, frequency, attribution, A/B testing |
| Audit & AI | 9 | Health score audits, AI recommendations, action approval |
| AI Tools | 8 | Autopilot, campaign generator, copy generator, AI chat |
| Targeting & Export | 5 | Interest/location search, data export, activity feed |
| Lead Forms | 3 | Create, update, list lead gen forms |
| Scheduling & Controls | 3 | Dayparting, frequency capping, spend caps |
| Comment Management | 3 | Get, reply, hide ad comments |
| Audience & Attribution | 3 | Overlap check, attribution windows, placement customization |
| Live Core | 18 | Campaign/adset/ad CRUD, insights, leads, previews, reach, pixels, rules |
| Ad Creatives | 5 | List, get, create (image/video/carousel/post), update, delete |
| Videos | 4 | Upload, list, get details, thumbnails |
| Audiences | 9 | Create (website/CRM/lookalike), update, add/remove users, saved audiences |
| Custom Conversions | 5 | List, create, update, delete custom conversion events |
| Conversions API | 1 | Send server-side events with test mode |
| Product Catalogs | 5 | List catalogs, products, product sets, batch items |
| Async Reports | 3 | Create large reports, check status, get results |
| Ad Labels | 4 | Create, apply to campaigns/ads, delete |
| A/B Experiments | 3 | Create split tests, get results |
| Page Posts & Instagram | 4 | List posts, dark posts, Instagram media |
| Ad Rules | 6 | Create, update, delete, execute, history |
| Account & Business | 10 | Account details, spend cap, activity log, users, business manager |
| Targeting Search | 5 | Behaviors, demographics, employers, AI suggestions, validate |
| Image Management | 3 | List, upload, delete ad images |
| v23 — Advantage+ Campaigns | 6 | Advantage+ Sales / Leads / App, Advantage+ Audience, Value Rules, ASC/AAC migration scan |
| v23 — Advantage+ Creative | 7 | AI image/text/background/video gen, AI dubbing, creative breakdown insights |
| v23 — Measurement | 5 | Incremental Attribution, EMQ scores, one-click CAPI, deprecated metrics manifest, API version info |
| v23 — Messaging & Lead Gen | 5 | CTWA campaign + adset, WhatsApp Flows, Conditional Lead Forms, Conversion Leads opt |
| v23 — Threads + IG Publishing | 5 | Threads publish, Threads Advantage+ Catalog Ads, IG alt_text, paid partnership, Trial Reels |
| v23 — Catalog + Agentic | 4 | Catalog dynamic-media readiness, Campaign Score, Business AI configure, AI Studio personas |
v23 additions (May 2026)
The most recent 30 tools wrap features Meta shipped in Marketing API v22-v25. Highlights:
- — Finds Advantage+ Shopping (ASC) and Advantage+ App (AAC) campaigns across all your connected Meta integrations, sorted by recent spend, with the recommended replacement tool per campaign. Critical before the May 19, 2026 deadline when Meta blocks create/update of these legacy types.output
meta_scan_legacy_campaigns - — Returns the resolved Meta API version + full deprecation calendar. Agents should call this before recommending features that depend on a specific version.output
meta_api_version - — Manifest of Insights metrics removed since Oct 2024 (output
meta_deprecated_metrics,outputunique_actions, etc.) with the new equivalents. Use before requesting insights to avoid silently-empty fields.outputcost_per_unique_action_type - /output
live_meta_create_advantage_sales_campaign/output_leads_campaign— Unified Advantage+ objectives that replace the legacy ASC/AAC paths.output_app_campaign - /output
live_meta_advantage_creative_image_variants/output_text_variants— AI generation surfaces. Video gen and dubbing are Beta (allowlist required).output_background_gen - — +20-24% incremental conversions in Meta's tests vs last-click.output
live_meta_set_incremental_attribution
See Meta API v23.0: What's New and ASC/AAC Migration Guide for the full picture.
Stored Data vs Live Data
The MCP server offers two ways to access your Meta Ads data:
AdsMAA Stored Data (51 tools)
These tools query data from AdsMAA's database — campaigns, metrics, and insights that were synced from Meta.
Advantages:
- Fast responses (local database queries)
- Includes AI features (health scores, audit reports, recommendations)
- Supports analytics not available directly from Meta (trends, comparisons, pacing)
- No Meta API rate limit impact
When to use: Day-to-day campaign management, audits, analytics, AI features
Live Meta API (129 tools)
Tools prefixed with
live_Advantages:
- Always up-to-date (real-time from Meta)
- See changes immediately after making them
- Access to data not yet synced
When to use: Checking latest status, verifying recent changes, accessing data between syncs
Example workflow:
- Use to get your integration IDoutput
meta_list_integrations - Use for real-time campaign dataoutput
live_meta_campaigns - Use for AI-powered analysis of stored dataoutput
meta_audit_account
Security
- Token Isolation: The MCP server never has direct access to Meta OAuth tokens. All token decryption happens inside the AdsMAA backend.
- AES-256-GCM Encryption: Meta tokens are encrypted at rest in the database.
- API Key Auth: MCP server authenticates via API keys with scoped permissions.
- Organization Scoping: All data access is scoped to the authenticated user's organization.
- Rate Limiting: Built-in sliding-window rate limiter prevents API abuse.
Rate Limiting
The MCP server includes automatic rate limiting:
| Setting | Default | Env Variable |
|---|---|---|
| Max requests per window | 60 | output |
| Window duration | 60 seconds | output |
When the limit is hit, requests are automatically delayed until capacity is available. Throttle events are logged to help with debugging.
Key Takeaways
- 1180 tools for managing Meta Ads through any AI assistant (148 + 30 v23 additions, ~2 housekeeping)
- 2Two data modes: AdsMAA stored data (fast, with AI/audit) and live Meta API (real-time)
- 3Uses your existing connected Meta accounts — no separate tokens needed
- 4Built-in rate limiting to protect your Meta API quota
- 5Secure: Meta tokens never leave the backend, proxied via encrypted storage
Frequently Asked Questions
Do I need a separate Meta access token for the MCP server?
Which AI tools support MCP?
Is there a cost for using the MCP server?
Does the MCP server count against Meta API rate limits?
How do I know AdsMAA is using the latest Meta API version?
I have legacy Advantage+ Shopping campaigns. What should I do?
Was this article helpful?
Continue Reading
MCP Server Setup Guide
Step-by-step guide to configure the AdsMAA MCP server with Claude Desktop, Claude Code, or Cursor.
mcp serverMCP Tools Reference
Complete reference for all 65 MCP tools — parameters, descriptions, and usage examples.
integrationsMeta Marketing API v23.0: What's New
Everything Meta shipped in Marketing API v22-v25 and how AdsMAA exposes it — Advantage+ Suite, Advantage+ Creative (AI), Threads ads, Business AI, Incremental Attribution, and the legacy surfaces being killed off.