Meta MCP: Managing Facebook and Instagram Ads from Claude Code
The Meta Ads Problem
Facebook Ads Manager was not designed for developers who want to query data programmatically. The UI works fine for humans doing human work, but if you are building automations around your ad spend — scaling winners, cutting losers, auditing frequency and overlap across audience segments — you end up manually doing things that should be automated, or cobbling together a separate API integration that is detached from your main workflow.
The Meta MCP server puts the Marketing API into Claude Code. You get ad account data, campaign performance, audience insights, and the ability to make changes — create campaigns, adjust budgets, update audience targeting — all from a Claude Code session.
What You Can Query
- Campaign, ad set, and ad performance metrics across all levels
- Audience insights and overlapping audience reports
- Creative performance by placement and format
- Attribution settings and conversion tracking status
- Budget and bid configurations
- Spend and frequency data by audience segment
You can also write and update: create new campaigns, update budget allocations, adjust bid strategies, modify audience targeting, and pause or activate ads. For day-to-day management that is currently done through the UI, this can be scripted.
Authentication
The MCP server uses Meta's Graph API with an app access token. You need a Facebook Developer app with marketing API permissions. The setup involves a few layers — app permissions, ad account roles, and sometimes business-level approvals for certain data access. Plan for 20-30 minutes to get credentials sorted if you have not worked with Meta's API before.
Who This Is For
If you manage Meta ad campaigns and spend any time in the Ads Manager UI doing repetitive tasks, this is worth setting up. Agencies running multiple client accounts can build scripts that pull consolidated performance reports, automate budget reallocation based on ROAS thresholds, or audit audience overlap across campaigns. The API handles the data layer; Claude Code handles the logic layer.
Get Started with Claude Code
Start building with Claude Code today. Free to download, powerful enough for production.