Meta Ads MCP
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| META_APP_ID | No | Meta App ID for browser login flow. | |
| META_APP_SECRET | No | Meta App Secret for browser login flow. | |
| META_ACCESS_TOKEN | No | Long-lived user access token for Meta Marketing API. | |
| META_AD_ACCOUNT_ID | No | Ad account ID in the form act_<digits>. | |
| META_GRAPH_API_VERSION | No | Meta Graph API version. | v23.0 |
| META_OAUTH_REDIRECT_URI | No | Custom OAuth redirect URI (default http://localhost:8721/callback). |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| list_ad_accountsA | List Meta ad accounts available to the configured access token. Args: params: Maximum result count and JSON or Markdown response format. Returns:
A rendered Use this to discover an account ID before account-scoped reads. Do not use it to inspect campaigns or to create, update, or delete ad accounts. |
| get_campaignsA | Get campaigns for an explicit or configured default ad account. Args: params: Optional account ID, maximum result count, and JSON or Markdown response format. Returns:
A rendered Use this for an account-level campaign inventory. Do not use it for performance metrics or for campaign creation, edits, or status changes. |
| get_adsetsA | Get ad sets beneath an account or campaign parent. Args: params: Parent account or campaign ID, maximum result count, and JSON or Markdown response format. Returns:
A rendered Use this to inspect the ad-set hierarchy for a known parent. Do not use it for performance metrics or to create, edit, pause, or delete ad sets. |
| get_adsA | Get ads beneath an account, campaign, or ad-set parent. Args: params: Parent object ID, maximum result count, and JSON or Markdown response format. Returns:
A rendered Use this to inspect ads for a known hierarchy parent. Do not use it for performance metrics or to create, edit, pause, or delete ads. |
| get_insightsA | Get raw Meta performance metrics for an object and reporting period. Args: params: Object ID, aggregation level, either a date preset or custom since/until range, maximum row count, and response format. Returns:
A rendered Use this for flexible read-only metric retrieval at account, campaign, ad-set, or ad level. Do not use it to modify delivery or to infer causal lift from platform-attributed results. |
| performance_summaryA | Rank campaign performance and flag heuristic symptoms for review. Args: params: Optional account ID, reporting preset, CTR, ROAS, and frequency thresholds, and JSON or Markdown response format. Returns:
A rendered Use this for read-only campaign triage, not as proof of causation or a verified diagnosis. Conversions and ROAS are platform-reported using Meta attribution, not incremental; a holdout or lift test is required to claim incrementality, and periods should be compared at similar spend. Do not use this tool to make delivery changes or assert causal campaign impact. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
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/anhnguyen0905/meta-ads-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server