meta-ads-mcp / templates
CLAUDE.md82 starsChanged 3 months agoMITView on GitHub
This project uses meta-ads-mcp to manage Facebook & Instagram advertising via MCP tools. Use mcp__meta-ads__<tool> for all Meta advertising operations.
In this repository2 other files it gives its agents.
- templates/AGENTS.mdAGENTS.md
- llms.txtllms.txt
The file
We split this CLAUDE.md into the rules it gives an agent
5 rules. About 0 are common, 1 is distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 7
Use mcp__meta-ads__<tool> for all Meta advertising operations.
- Distinctive: line 80
Create two ad sets with different creatives
- Very specific: line 98
Use exchange_token to convert short-lived tokens to long-lived ones
- Very specific: line 99
Use refresh_token to extend a still-valid long-lived user token through the same documented exchange flow
- Very specific: line 103
All monetary values are in the account's currency (check with get_ad_account)
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Meta Ads Management
This project uses meta-ads-mcp to manage Facebook & Instagram advertising via MCP tools.
Available Tools (135)
Use mcp__meta-ads__<tool> for all Meta advertising operations.
Campaign Lifecycle
| Tool | When to Use |
create_campaign | Create a new campaign (choose objective: CONVERSIONS, TRAFFIC, etc.) |
create_adset | Create an ad set within a campaign (targeting, budget, schedule) |
create_ad | Create an ad within an ad set (links a creative) |
create_creative | Create an ad creative (image, video, carousel, etc.) |
update_campaign / update_adset / update_ad | Modify settings, pause/resume |
delete_campaign / delete_adset / delete_ad | Remove entities |
Performance & Reporting
| Tool | When to Use |
get_account_insights | Account-level metrics (spend, impressions, clicks, conversions) |
get_campaign_insights | Campaign-level breakdown |
get_adset_insights | Ad set-level breakdown |
get_ad_insights | Ad-level breakdown |
create_async_report | Large reports that take time to generate |
get_async_report | Poll report-run status, then fetch its /insights result edge when complete |
Audiences & Targeting
| Tool | When to Use |
create_custom_audience | Create audience from customer data |
create_lookalike_audience | Create lookalike from existing audience |
search_targeting | Find interests, behaviors, demographics to target |
get_reach_estimate | Estimate audience size for a targeting spec |
add_users_to_audience | Add users to a custom audience |
Media Assets
| Tool | When to Use |
upload_image | Upload an ad image from URL |
upload_video | Upload an ad video from URL |
list_images / list_videos | Browse existing media assets |
Automation & Testing
| Tool | When to Use |
create_rule | Set up automated rules (pause if CPA > X, etc.) |
create_experiment | Create A/B test between ad sets |
get_experiment_results | Check A/B test outcomes |
Catalog & Commerce
| Tool | When to Use |
create_catalog | Create a product catalog for dynamic ads |
create_feed | Set up a product data feed |
upload_feed | Push product data to a feed |
Ad Library & Research
| Tool | When to Use |
search_ad_library | Search public ad data (competitor research) |
Common Workflows
Create a full campaign from scratch
create_campaignwith objectiveupload_imageorupload_videofor ad mediacreate_creativewith the uploaded mediacreate_adsetwith targeting, budget, schedulecreate_adlinking the creative to the ad set
Check performance and optimize
get_campaign_insightswith date range and breakdowns- Identify underperformers
update_adsetto pause low-ROAS ad sets or adjust budgetscreate_ruleto automate future optimizations
A/B test creatives
- Create two ad sets with different creatives
create_experimentto set up the testget_experiment_resultsafter sufficient data
Build a lookalike audience
create_custom_audiencefrom customer listadd_users_to_audiencewith hashed emails/phonescreate_lookalike_audiencefrom the custom audience
Resources
ads://account— Account overview (status, balance, currency)ads://campaigns-overview— Active campaigns with budgetsads://spending-today— Today's spend, impressions, clicks, reach
Important Notes
- Ad account ID should be numeric without the
act_prefix - Use
exchange_tokento convert short-lived tokens to long-lived ones - Use
refresh_tokento extend a still-valid long-lived user token through the same documented exchange flow debug_tokenhelps diagnose permission issues- Async reports are needed for large date ranges or many breakdowns
- Insight
date_presetvalues are lowercase (for exampletodayandlast_30d) - All monetary values are in the account's currency (check with
get_ad_account)
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

