Meta Ads MCP Server API
Complete reference for the Pipeboard Meta Ads MCP Server. Connect any AI tool to the Meta Ads API with 30+ ready-to-use functions.
The Pipeboard Meta Ads MCP (Model Context Protocol) Server is a source-available server that connects AI assistants like Claude, ChatGPT, and custom agents to the Meta Ads API.
Instead of building API integrations from scratch, you get instant access to campaign management, analytics, targeting tools, creative upload, and more—all through natural language.
Key features:
- 30+ pre-built tools for every Meta Ads workflow
- Works with Claude Desktop, ChatGPT, Python, n8n, and any MCP client
- Secure authentication with Pipeboard API tokens
- Real-time campaign management and performance analysis
1. Sign up and connect your Meta account:
pipeboard.co/auth/signup →2. Get your API token:
pipeboard.co/api-tokens →3. Use in your requests:
Authorization: Bearer YOUR_TOKEN
https://mcp.pipeboard.co/meta-ads-mcp
All tools are accessed through this single endpoint. Configure your MCP client once and get instant access to all functions.
The Meta Ads MCP is designed to work with MCP clients that connect large language models (LLMs) to the server. These clients enable the LLM to intelligently use the tools based on your natural language requests, handling the protocol communication automatically.
Popular MCP Clients:
- Claude Desktop - Chat interface with native MCP support
- ChatGPT Desktop - OpenAI's desktop app with MCP integration
- Python (LangChain) - Build custom AI agents and automation
- n8n - No-code workflow automation with MCP nodes
Direct Testing (Advanced)
For testing or debugging, you can call the MCP directly using the MCP protocol:
curl -X POST https://mcp.pipeboard.co/meta-ads-mcp \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-H "Authorization: Bearer $PIPEBOARD_API_TOKEN" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "get_ad_accounts",
"arguments": {}
}
}'
Replace $PIPEBOARD_API_TOKEN
with your API token from pipeboard.co/api-tokens
Available Tools
30+ functions organized by category. All tools are available through the MCP server.
get_ad_accounts
Get all ad accounts accessible by a user with details
get_account_info
Get detailed information about a specific ad account
get_account_pages
Get Facebook pages associated with an ad account
get_campaigns
Get campaigns with optional filtering by status
get_campaign_details
Get detailed information about a specific campaign
create_campaign
Create a new campaign with budget, objective, and targeting
update_campaign
Update campaign settings and budgets
create_budget_schedule
Schedule budget increases for high-demand periods
get_adsets
Get ad sets with optional campaign filtering
get_adset_details
Get detailed information about an ad set
create_adset
Create a new ad set with targeting and optimization settings
update_adset
Update ad set settings including frequency caps and budgets
get_ads
Get ads with optional campaign or ad set filtering
get_ad_details
Get detailed information about a specific ad
create_ad
Create a new ad with an existing creative
update_ad
Update ad status, bid, or creative
get_ad_creatives
Get creative details for a specific ad
upload_ad_image
Upload an image to use in creatives (returns image hash)
create_ad_creative
Create a new creative with image, copy, and CTA
update_ad_creative
Update creative copy, headlines, or CTA
get_ad_image
Download and visualize ad images
get_insights
Get performance metrics for campaigns, ad sets, or ads
Supports time ranges (today, last_7d, last_30d, etc.) and breakdowns (age, gender, platform, etc.)
search_interests
Search for interest targeting options
get_interest_suggestions
Get related interest suggestions for existing interests
estimate_audience_size
Estimate reach for targeting specifications
search_behaviors
Search for behavior targeting options
search_demographics
Search demographic targeting options (life events, income, etc.)
search_geo_locations
Search for geographic targeting (countries, regions, cities)
Meta API Limits
The Meta Ads API has rate limits of 200 calls per hour per user. The MCP server automatically handles retries with exponential backoff.
Best Practices
- Batch operations when possible (use filters to reduce API calls)
- Cache insights data for reporting workflows
- Use paused status when creating campaigns to review before activation
- Test targeting with audience estimation before launching campaigns
Need help?
- Browse all guides - Step-by-step tutorials and workflows
- GitHub Issues - Report bugs or request features
- Contact support - Get help from our team