The Meta Ads MCP server is a tool that lets you analyze, manage, and optimize Meta advertising campaigns (Facebook, Instagram, etc.) through an AI interface. It provides a way for language models to retrieve performance data, visualize ad creatives, and offer strategic insights for your Meta ads.
The recommended way to use Meta Ads MCP is through the remote server, which requires no technical setup on your part.
https://mcp.pipeboard.co/meta-ads-mcpAdd the following to your ~/.cursor/mcp.json. Once you enable the remote MCP, click on "Needs login" to finish the login process.
{
"mcpServers": {
"meta-ads-remote": {
"url": "https://mcp.pipeboard.co/meta-ads-mcp"
}
}
}
Use the Remote MCP URL: https://mcp.pipeboard.co/meta-ads-mcp
For direct token-based authentication without the interactive flow, append your Pipeboard token to the URL:
https://mcp.pipeboard.co/meta-ads-mcp?token=YOUR_PIPEBOARD_TOKEN
Get your token at pipeboard.co/api-tokens.
Meta Ads MCP provides numerous tools for interacting with your Meta ad accounts. Here are some of the key functions:
To get information about your ad accounts:
# Get your accessible ad accounts
accounts = mcp_meta_ads_get_ad_accounts(user_id="me", limit=10)
# Get detailed information about a specific account
account_details = mcp_meta_ads_get_account_info(account_id="act_XXXXXXXXX")
To analyze campaign performance:
# Get your campaigns
campaigns = mcp_meta_ads_get_campaigns(account_id="act_XXXXXXXXX", limit=10)
# Get detailed insights for a specific campaign
insights = mcp_meta_ads_get_insights(
object_id="23851234567890",
level="campaign",
time_range="maximum"
)
To create a new ad campaign:
# Create a new awareness campaign
campaign = mcp_meta_ads_create_campaign(
account_id="act_XXXXXXXXX",
name="2025 - Bedroom Furniture - Awareness",
objective="OUTCOME_AWARENESS",
status="PAUSED",
daily_budget=10000, # $100.00 (in cents)
bid_strategy="LOWEST_COST_WITHOUT_CAP"
)
To find targeting options for your ads:
# Search for interests related to travel
travel_interests = mcp_meta_ads_search_interests(query="travel", limit=25)
# Find demographic targeting options
demographics = mcp_meta_ads_search_demographics(demographic_class="income", limit=20)
# Search for geographic locations
locations = mcp_meta_ads_search_geo_locations(
query="New York",
location_types=["city", "region"]
)
If you encounter issues with Meta Ads MCP:
For further assistance, you can:
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "meta-ads-remote" '{"command":"npx","args":["mcp-remote","https://mcp.pipeboard.co/meta-ads-mcp"]}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:
{
"mcpServers": {
"meta-ads-remote": {
"command": "npx",
"args": [
"mcp-remote",
"https://mcp.pipeboard.co/meta-ads-mcp"
]
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.json~/.config/Claude/claude_desktop_config.json2. Add this to your configuration file:
{
"mcpServers": {
"meta-ads-remote": {
"command": "npx",
"args": [
"mcp-remote",
"https://mcp.pipeboard.co/meta-ads-mcp"
]
}
}
}
3. Restart Claude Desktop for the changes to take effect