Metaads MCP for AI Agents

Securely connect your AI agents and chatbots (Claude, ChatGPT, Cursor, etc) with Metaads MCP or direct API to create campaigns, pull ad performance data, update budgets, and generate custom reports through natural language.
Trusted by
AWS
Glean
Zoom
Airtable

30 min · no commitment · see it on your stack

Metaads Logo
Gradient Top
Gradient Middle
Gradient Bottom
divider

Try Metaads now

Enter a prompt below to test the integration in our Tool Router playground. You'll be redirected to sign in and try it live.

Supported Tools

Tools
Create AdCreate a new ad within an ad set using the Meta Marketing API.
Create Ad CreativeCreate a new ad creative using the Meta Marketing API.
Create Ad SetCreate a new ad set within a campaign using the Meta Marketing API.
Create CampaignCreate a new advertising campaign using the Meta Marketing API.
Create Custom AudienceCreate a new custom audience using the Meta Marketing API.
Delete CampaignDelete an advertising campaign using the Meta Marketing API.
Get Ad AccountsTool to retrieve all ad account IDs accessible to the authenticated user from Meta Ads.
Get Ad CreativeGet Ad Creative
Get InsightsGet insights data for a Meta Ads object (ad account, campaign, ad set, or ad) using the Meta Marketing API.
Get Meta ObjectTool to retrieve data for any Meta Marketing API object by its ID.
Get Page AccountsTool to retrieve permanent page access tokens for accounts managed by the user.
Get UserTool to retrieve information about the authenticated user from Meta (Facebook) Graph API.
List Ad CreativesTool to list all ad creatives under an ad account.
List Ad Network AnalyticsTool to retrieve ad network analytics for a Meta Business using the Meta Marketing API.
List Ad Network Analytics ResultsTool to retrieve ad network analytics results for Facebook Audience Network.
List AdsTool to list all ads under an ad account using the Meta Marketing API.
List AgenciesTool to retrieve agencies associated with a Meta Business or Ad Account.
List Assigned PagesTool to retrieve Facebook Pages assigned to a business user via Meta Marketing API.
List Assigned UsersTool to list users assigned to a Facebook Page or Ad Account within a specific business context.
List Business Ad AccountsTool to retrieve all ad accounts owned by a specific Business Manager.
List Business InvoicesTool to retrieve business invoices from Meta Marketing API.
List Client Ad AccountsTool to list all client ad accounts accessible to a business from Meta Ads.
List Client AppsTool to retrieve client apps associated with a Meta Business using the Marketing API.
List Client Instagram AssetsTool to retrieve Instagram assets that are shared with a business as a client using the Meta Marketing API.
List Client Offsite Signal Container Business ObjectsTool to retrieve client offsite signal container business objects for a business from Meta Marketing API.
List Client PagesTool to retrieve client pages associated with a Meta business.
List ClientsTool to retrieve client businesses associated with a Meta Business Manager.
List Collaborative Ads Collaboration RequestsTool to retrieve collaborative ads collaboration requests for a Meta Business using the Marketing API.
List Collaborative Ads Suggested PartnersTool to retrieve collaborative ads suggested partners for a business from Meta Marketing API.
List Initiated Audience Sharing RequestsTool to retrieve initiated audience sharing requests for a business using the Meta Marketing API.
List Managed Partner Ads Funding Source DetailsTool to retrieve managed partner ads funding source details for a Meta Business.
List Owned AppsTool to retrieve apps owned by a business from Meta Marketing API.
List Owned BusinessesTool to retrieve businesses owned by a parent Business Manager from Meta Marketing API.
List Owned Instagram AssetsTool to list Instagram accounts/assets owned by a Meta Business.
List Owned Offsite Signal Container Business ObjectsTool to retrieve owned offsite signal container business objects for a business from Meta Marketing API.
List Owned PagesTool to retrieve Pages owned by a Business Manager from Meta Marketing API.
List Pending Client Ad AccountsTool to retrieve pending client ad account access requests for a Business Manager from Meta Ads.
List Pending Client AppsTool to retrieve pending client apps for a Meta Business.
List Pending Client PagesTool to retrieve pending client pages for a Business Manager using the Meta Marketing API.
List Pending Shared Offsite Signal Container Business ObjectsTool to retrieve pending shared offsite signal container business objects from Meta Marketing API.
List Pending Owned Ad AccountsTool to retrieve pending owned ad accounts for a Business Manager account from Meta Marketing API.
List Pending Owned PagesTool to retrieve Pages with pending ownership status for a Business Manager from Meta Marketing API.
List Pending UsersTool to retrieve pending users from a Business Manager in Meta Marketing API.
List Received Audience Sharing RequestsTool to retrieve all received audience sharing requests for a business using the Meta Marketing API.
List System UsersTool to retrieve system users for a Meta Business Manager account.
List Targeting SearchTool to search for targeting options in Meta Ads Marketing API.
Read Ad SetsRetrieve ad sets from a Meta ad account using the Marketing API.
Update Ad CreativeUpdate Ad Creative
Update CampaignUpdate an existing advertising campaign using the Meta Marketing API.
Upload Ad ImageUpload an image for use in Meta ad creatives using the Marketing API.
Python
TypeScript

Install Composio

python
pip install composio claude-agent-sdk
Install the Composio SDK and Claude Agent SDK

Create Tool Router Session

python
from composio import Composio
from claude_agent_sdk import ClaudeSDKClient, ClaudeAgentOptions

composio = Composio(api_key='your-composio-api-key')
session = composio.create(user_id='your-user-id')
url = session.mcp.url
Initialize the Composio client and create a Tool Router session

Connect to AI Agent

python
import asyncio

options = ClaudeAgentOptions(
    permission_mode='bypassPermissions',
    mcp_servers={
        'tool_router': {
            'type': 'http',
            'url': url,
            'headers': {
                'x-api-key': 'your-composio-api-key'
            }
        }
    },
    system_prompt='You are a helpful assistant with access to Metaads tools.',
    max_turns=10
)

async def main():
    async with ClaudeSDKClient(options=options) as client:
        await client.query('Get insights for campaign 12345 from last week')
        async for message in client.receive_response():
            if hasattr(message, 'content'):
                for block in message.content:
                    if hasattr(block, 'text'):
                        print(block.text)

asyncio.run(main())
Use the MCP server with your AI agent

Why Use Composio?

AI Native Metaads Integration

  • Supports both Metaads MCP and direct API based integrations
  • Structured, LLM-friendly schemas for reliable tool execution
  • Rich coverage for reading, writing, and querying your Metaads data

Managed Auth

  • Built-in OAuth handling with automatic token refresh and rotation
  • Central place to manage, scope, and revoke Metaads access
  • Per user and per environment credentials instead of hard-coded keys

Agent Optimized Design

  • Tools are tuned using real error and success rates to improve reliability over time
  • Comprehensive execution logs so you always know what ran, when, and on whose behalf

Enterprise Grade Security

  • Fine-grained RBAC so you control which agents and users can access Metaads
  • Scoped, least privilege access to Metaads resources
  • Full audit trail of agent actions to support review and compliance

Frequently Asked Questions

Do I need my own developer credentials to use Metaads with Composio?

Yes, Metaads requires you to configure your own OAuth credentials. Once set up, Composio handles token storage, refresh, and lifecycle management for you.

Can I use multiple toolkits together?

Yes! Composio's Tool Router enables agents to use multiple toolkits. Learn more.

Is Composio secure?

Composio is SOC 2 and ISO 27001 compliant with all data encrypted in transit and at rest. Learn more.

What if the API changes?

Composio maintains and updates all toolkit integrations automatically, so your agents always work with the latest API versions.

Used by agents from

Context
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai
Context
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai
Context
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai

Never worry about agent reliability

We handle tool reliability, observability, and security so you never have to second-guess an agent action.