Meta Ads MCP server
129 operations0 webhooks
Read ad accounts and activity, manage campaigns, ads, pixels, access assignments and ad rules, work with custom-audience memberships, and run synchronous or asynchronous Marketing API reports through Meta API v27.0.
Try Meta Ads with your agent
Connect Meta Ads, then paste this into Claude, ChatGPT or Cursor. For ideas from other apps, see the use cases.
Using Corsair, show me what you can do in Meta Ads on my account, then run one read-only example and show me the result.
Meta Ads tools and triggers
Tools are what your agent can do in Meta Ads through Corsair's MCP server. Triggers are the Meta Ads events a routine can start from.
Accounts
- Activities ListRead-only
Read recent account and ad object activity events
accounts.activitiesList
- Ad Rules Library CreateDestructive
Create a rule that can change ad delivery, budgets, or bids
accounts.adRulesLibraryCreate
- Ad Rules Library ListRead-only
List account ad rules without creating or changing rules
accounts.adRulesLibraryList
- Agencies ListRead-only
List businesses associated with an ad account
accounts.agenciesList
- Agency RemoveDestructive
Remove a business association from an ad account
accounts.agencyRemove
- Assign UserDestructive
Grant ad-account tasks to a business or system user
accounts.assignUser
- Assigned Users ListRead-only
List business and system users assigned to an ad account
accounts.assignedUsersList
- Broad Targeting Categories ListRead-only
List documented broad-targeting categories for the account
accounts.broadTargetingCategoriesList
- Controls CreateDestructive
Set account-wide audience and placement controls
accounts.controlsCreate
- Generate PreviewsRead-only
Generate an ad preview from a supported link-story creative spec
accounts.generatePreviews
- GetRead-only
Retrieve an ad account by ID
accounts.get
- Impacting Ad Studies ListRead-only
List ad studies affecting an account or its child objects
accounts.impactingAdStudiesList
- ListRead-only
List ad accounts available to the access token
accounts.list
- Pixels ListRead-only
List pixels accessible from an ad account
accounts.pixelsList
- Place Page Sets CreateDestructive
Create a place-page set from a published parent Page
accounts.placePageSetsCreate
- Reach EstimateRead-only
Estimate an ad-account audience range for a targeting spec
accounts.reachEstimate
- Remove UserDestructive
Revoke a business or system user assignment from an account
accounts.removeUser
- Subscribed App RemoveWrite
Unsubscribe an application from an ad account
accounts.subscribedAppRemove
- Subscribed App UpdateWrite
Subscribe an application to an ad account
accounts.subscribedAppUpdate
- Tracking CreateWrite
Add account-level tracking specifications
accounts.trackingCreate
- Users ListRead-only
List app-scoped users and task grants on an ad account
accounts.usersList
Ad Sets
- Activities ListRead-only
Read activity history for an ad set
adSets.activitiesList
- Ad Creatives ListRead-only
List creatives associated with an ad set
adSets.adCreativesList
- Ad Rules Governed ListRead-only
List rules that govern an ad set
adSets.adRulesGovernedList
- Ad Studies ListRead-only
List ad studies associated with an ad set
adSets.adStudiesList
- Ads ListRead-only
List ads belonging to an ad set
adSets.adsList
- Budget Schedule CreateDestructive
Schedule a temporary ad-set budget increase
adSets.budgetScheduleCreate
- Budget Schedules ListRead-only
List scheduled high-demand budget periods on an ad set
adSets.budgetSchedulesList
- Copies ListRead-only
List copies of an ad set
adSets.copiesList
- CopyDestructive
Create a paused copy of an ad set
adSets.copy
- CreateDestructive
Create a targeted ad set with a budget and schedule
adSets.create
- DeleteDestructive
Delete an ad set and affect ad delivery
adSets.delete
- GetRead-only
Retrieve an ad set by ID
adSets.get
- ListRead-only
List ad sets in an ad account
adSets.list
- UpdateDestructive
Change an ad set status, budget, or end time
adSets.update
Audiences
- Accept TermsDestructive
Accept custom-audience terms for an account or business
audiences.acceptTerms
- Ad Accounts ListRead-only
List ad accounts with access to a custom audience
audiences.adAccountsList
- Ad Accounts ShareDestructive
Share a custom audience with specified ad accounts
audiences.adAccountsShare
- Ad Accounts UnshareDestructive
Revoke ad account access to a shared custom audience
audiences.adAccountsUnshare
- Ads ListRead-only
List ads using a custom audience
audiences.adsList
- CreateDestructive
Create a custom audience object
audiences.create
- DeleteDestructive
Permanently delete a custom audience
audiences.delete
- GetRead-only
Retrieve a custom audience by ID
audiences.get
- ListRead-only
List custom audiences for an ad account
audiences.list
- Sessions ListRead-only
List upload sessions for a custom audience
audiences.sessionsList
- UpdateDestructive
Change custom audience metadata
audiences.update
- Users AddDestructive
Upload a batch of SHA-256 customer hashes to a custom audience
audiences.usersAdd
- Users RemoveDestructive
Remove a batch of SHA-256 customer hashes from a custom audience
audiences.usersRemove
- Users ReplaceDestructive
Replace a custom audience membership batch with hashed records
audiences.usersReplace
Campaigns
- Ad Rules Governed ListRead-only
List rules that govern a campaign
campaigns.adRulesGovernedList
- Ad Sets ListRead-only
List ad sets belonging to a campaign
campaigns.adSetsList
- Ad Studies ListRead-only
List ad studies associated with a campaign
campaigns.adStudiesList
- Ads ListRead-only
List ads belonging to a campaign
campaigns.adsList
- Budget Schedule CreateDestructive
Schedule a temporary campaign budget increase
campaigns.budgetScheduleCreate
- Budget Schedules ListRead-only
List scheduled high-demand budget periods on a campaign
campaigns.budgetSchedulesList
- Copies ListRead-only
List copies of a campaign
campaigns.copiesList
- CopyDestructive
Create a paused, shallow copy of a campaign
campaigns.copy
- CreateDestructive
Create a campaign that can spend an ad account budget
campaigns.create
- DeleteDestructive
Delete a campaign and affect its delivery
campaigns.delete
- GetRead-only
Retrieve a campaign by ID
campaigns.get
- Labels AddWrite
Associate documented ad labels with a campaign
campaigns.labelsAdd
- ListRead-only
List campaigns for an ad account
campaigns.list
- UpdateDestructive
Change campaign status or its budget and spend cap
campaigns.update
Ads
- Ad Creatives ListRead-only
List creatives attached to an ad
ads.adCreativesList
- Ad Rules Governed ListRead-only
List rules that govern an ad
ads.adRulesGovernedList
- Copies ListRead-only
List copies of an ad
ads.copiesList
- CopyDestructive
Create a paused copy of an ad
ads.copy
- CreateDestructive
Create an ad that may be delivered after review
ads.create
- DeleteDestructive
Delete an ad
ads.delete
- GetRead-only
Retrieve an ad by ID
ads.get
- Labels AddWrite
Associate documented ad labels with an ad
ads.labelsAdd
- ListRead-only
List ads in an ad account
ads.list
- Previews ListRead-only
Generate an ad preview in a supported placement format
ads.previewsList
- UpdateDestructive
Change an ad name or delivery status
ads.update
Insights
- Create AsyncWrite
Start a non-idempotent asynchronous Ads Insights report job
insights.createAsync
- Enable FeatureDestructive
Permanently enable an Insights feature for an ad account
insights.enableFeature
- Get Async ReportRead-only
Read the status and completion details of an Insights report job
insights.getAsyncReport
- Get Async ResultsRead-only
Read paginated results for a completed Insights report job
insights.getAsyncResults
- ListRead-only
Read paginated, filtered and broken-down ad reporting metrics
insights.list
- List Enabled FeaturesRead-only
List breakdown features enabled for an ad account
insights.listEnabledFeatures
- List FeaturesRead-only
List breakdown features available to an ad account
insights.listFeatures
- List For AdRead-only
Read paginated reporting metrics for one ad
insights.listForAd
- List For Ad SetRead-only
Read paginated reporting metrics for one ad set
insights.listForAdSet
- List For CampaignRead-only
Read paginated reporting metrics for one campaign
insights.listForCampaign
Labels
- Ad Sets ListRead-only
List ad sets associated with an ad label
labels.adSetsList
- Ads ListRead-only
List ads associated with an ad label
labels.adsList
- Campaigns ListRead-only
List campaigns associated with an ad label
labels.campaignsList
- CreateWrite
Create a reusable label for ad objects
labels.create
- Creatives ListRead-only
List creatives associated with an ad label
labels.creativesList
- DeleteDestructive
Delete an ad label from an account
labels.delete
- GetRead-only
Read one ad label and its documented fields
labels.get
- ListRead-only
List ad labels defined for an ad account
labels.list
- UpdateWrite
Rename a label shared by ad objects
labels.update
Creatives
- CreateDestructive
Create a creative from an existing Page post or an inline object_story_spec
creatives.create
- DeleteDestructive
Delete an ad creative
creatives.delete
- GetRead-only
Retrieve an ad creative by ID
creatives.get
- Insights ListRead-only
Read the documented quality insight for a creative (limited-access edge: Meta answers #100 nonexisting field to apps without access)
creatives.insightsList
- Labels AddWrite
Associate documented ad labels with a creative
creatives.labelsAdd
- ListRead-only
List ad creatives stored in an ad account
creatives.list
- Previews ListRead-only
Generate a preview for a creative in a supported placement
creatives.previewsList
- UpdateDestructive
Change an ad creative name
creatives.update
Async Request Sets
- CancelDestructive
Cancel an asynchronous request set before processing
asyncRequestSets.cancel
- CreateDestructive
Start ad creation requests that may lead to delivery and spend
asyncRequestSets.create
- GetRead-only
Read safe status and count fields for an async request set
asyncRequestSets.get
- ListRead-only
List asynchronous ad request sets for an account
asyncRequestSets.list
- UpdateWrite
Rename an asynchronous ad request set
asyncRequestSets.update
Studies
- CreateDestructive
Create a split test with ad-set cells and specified treatment percentages
studies.create
- GetRead-only
Retrieve a documented ad study by ID
studies.get
- Related Accounts ListRead-only
List ad accounts related to an ad study
studies.relatedAccountsList
- UpdateDestructive
Change documented ad study metadata or extend its end time
studies.update
- Viewers ListRead-only
List users who can view an ad study
studies.viewersList
Async Requests
- CancelDestructive
Cancel one asynchronous request before processing
asyncRequests.cancel
- List For Ad SetRead-only
List safe status fields for requests associated with an ad set
asyncRequests.listForAdSet
- List For SetRead-only
List safe status fields for requests in a set
asyncRequests.listForSet
Images
- DeleteDestructive
Dissociate an unused image from an ad account library
images.delete
- ListRead-only
List images stored in an ad account library
images.list
- UploadDestructive
Upload a base64 image or copy an image into an ad account library
images.upload
Pixels
- CreateDestructive
Create a pixel measurement asset for an ad account
pixels.create
- GetRead-only
Read documented scalar fields from an ads pixel
pixels.get
- UpdateDestructive
Change pixel data-use, matching, or business-access settings
pixels.update
Reach Frequency Predictions
- CreateDestructive
Create a non-idempotent reach/frequency forecast or reservation
reachFrequencyPredictions.create
- GetRead-only
Read documented scalar fields from a reach/frequency prediction
reachFrequencyPredictions.get
- ListRead-only
List reach/frequency predictions with safe documented fields
reachFrequencyPredictions.list
Async Creatives
- CreateWrite
Start a non-idempotent asynchronous creative creation job
asyncCreatives.create
- ListRead-only
List asynchronous ad creative jobs for an account
asyncCreatives.list
Custom Conversions
- CreateDestructive
Create a measurement conversion definition for an ad account
customConversions.create
High Demand Periods
- GetRead-only
Read one documented high-demand budget period
highDemandPeriods.get
Publisher Block Lists
- CreateWrite
Create a publisher block list without applying it to delivery
publisherBlockLists.create
Videos
- DeleteDestructive
Dissociate a video from an ad account library
videos.delete
Connect Meta Ads to Claude, ChatGPT or Cursor
- 1
Connect Meta Ads in Corsair
Sign in to Meta Ads once in Corsair. Corsair stores the credential encrypted and makes the Meta Ads API calls for your agent, so it never goes into a prompt or a config file. Connect Meta Ads
If your link lets the agent add apps, you can skip this: it gives you a sign-in link the first time it needs Meta Ads. On a ChatGPT personal plan, connect Meta Ads here first.
- 2
Add Corsair's MCP server to your agent
Every client uses the same address:
https://mcp.corsair.dev/mcpOpen Customize → Connectors → Add custom connector, paste the address, then select Connect.Add a custom MCP server with the address and choose OAuth. Personal plans get read tools only.Add to CursorOr add this to~/.cursor/mcp.json. Cursor opens Corsair to sign in the first time it connects.{ "mcpServers": { "corsair": { "url": "https://mcp.corsair.dev/mcp" } } }Run this, then run/mcpin Claude Code to sign in.claude mcp add --transport http corsair https://mcp.corsair.dev/mcpCodex, Gemini CLI, VS Code, Zed and other clients with OAuth sign-in work the same way. Clients without it, such as GitHub Copilot's coding agent, use a link's own address and an API key. Setup for every client
- 3
Sign in and choose what needs your approval
Your client opens Corsair to sign in. Pick a link: the apps your agent can use and a mode that decides what it may do without asking. In the default Cautious mode, Meta Ads's read and write operations run right away and its 46 destructive operations wait for your approval. Strict mode asks before every write and refuses destructive operations, and Read mode allows reads only.
FAQ
Install corsair and @corsair-dev/metaads, add the Meta Ads plugin, and connect with OAuth. Then call methods like corsair.metaads.api.accounts.activitiesList() from your app. Corsair stores tokens, and keeps each tenant isolated.
Yes. Meta Ads needs an OAuth app with scopes that match what you automate. Register the app in Meta Ads, configure redirect URLs, then connect through Corsair or managed OAuth in Hub.
Yes. One Corsair client can hit Meta Ads, GitHub, Notion, Stripe, and the rest. Trigger Meta Ads from a webhook, push updates to Slack, or chain actions across plugins. Same tenant context across integrations, plain TypeScript.
Teams use Corsair for read ad accounts and activity, manage campaigns, ads, pixels, access assignments and ad rules, work with custom-audience memberships, and run synchronous or asynchronous Marketing API reports through Meta API v27.0. Common builds include sync jobs, admin tooling, and agents that call Meta Ads APIs from your backend.
The SDK is open source. Self-host and you pay Corsair nothing for the integration layer. Hub bills for hosted auth and execution, not per Meta Ads API call. Hub has a generous free tier. For hobby projects you can probably run the whole thing on free. Paid plans start to matter with more tenants or heavier traffic.
We maintain @corsair-dev/metaads in the open repo. When Meta Ads ships API changes, upgrade the package. Your call sites stay typed. You should not need to rewrite the integration layer each time.
No. Corsair does not read your Meta Ads data or hold individual access credentials. Credentials stay in your database. API calls run on your instance. We do not store Meta Ads data on your behalf.
Yes. Add https://mcp.corsair.dev/mcp as a custom connector or MCP server in Claude, ChatGPT, Cursor, VS Code, Claude Code, Codex or any client that supports remote MCP servers with OAuth sign-in, then sign in to Corsair. On ChatGPT personal plans, custom servers currently get read tools only.
Yes. Put Meta Ads on a link in Strict mode and every write waits for your approval, while destructive actions are refused. The default Cautious mode asks only before the 46 destructive Meta Ads operations. You can change a link's mode at hub.corsair.dev/me.