Meta Ads Analyzer

Marketing and SEO

Meta Ads Analyzer skill + MCP server for Claude Code. Breakdown Effect, Learning Phase, and expert-level campaign diagnosis.

Your AI app calls the Meta Ads Analyzer MCP server, which does the marketing and SEO work and sends the result back to the chat.

About Meta Ads Analyzer

Meta Ads Analyzer is a community MCP server from mathiaschu, filed in our directory under marketing and seo. Meta Ads Analyzer skill + MCP server for Claude Code. Breakdown Effect, Learning Phase, and expert-level campaign diagnosis.

At a glance

Publisher
mathiaschu (community)
Runs
See the README for setup
Written in
Shell
License
MIT
GitHub stars
479

How to set up Meta Ads Analyzer

  1. Follow the install steps in the Meta Ads Analyzer README; it is written in Shell, so have that toolchain ready.
  2. Check the Meta Ads Analyzer README for keys or settings; the registry lists none that Meta Ads Analyzer requires.
  3. Add Meta Ads Analyzer to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Meta Ads Analyzer tools to confirm the connection.
  5. Run one read-only task with Meta Ads Analyzer first, and keep your app asking before each tool call until the results look right.

Meta Ads Analyzer compared with similar servers

  • Caldrin Search Oss by ankurmans has fewer GitHub stars than Meta Ads Analyzer (366 against 479); both are community servers, and both run locally.
  • SEO Monster by avansaber has more GitHub stars than Meta Ads Analyzer (480 against 479); both are community servers, and both run locally.
  • Search Console by saurabhsharma2u has fewer GitHub stars than Meta Ads Analyzer (336 against 479); both are community servers, and both run locally.

Before you connect Meta Ads Analyzer

  • Give Meta Ads Analyzer its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Meta Ads Analyzer tool call until you trust what it does with them.
  • Treat text that Meta Ads Analyzer fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Meta Ads Analyzer on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Meta Ads Analyzer

How marketing and sales teams put Meta Ads Analyzer to work, by company size. Pick the size closest to yours and start Meta Ads Analyzer on one use case.

Small business

  • A small business can ask Meta Ads Analyzer which pages lost rankings this month and get a short fix list instead of a dashboard to interpret.
  • Owners writing their own content can use Meta Ads Analyzer to check keywords and competitors before drafting, so each post targets a search people make.
  • Meta Ads Analyzer runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Content teams can connect Meta Ads Analyzer to plan briefs from live keyword data, then track which published pages moved after a refresh.
  • Growth teams can use Meta Ads Analyzer to compare campaign performance across channels in one question, without exporting three reports.
  • Start Meta Ads Analyzer on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprise SEO teams can run Meta Ads Analyzer across many domains and markets to flag technical issues and cannibalized pages before a quarterly review.
  • Brand and AI search teams can use Meta Ads Analyzer to watch how the company shows up in search and AI answers, with findings fed into the content roadmap.
  • Meta Ads Analyzer is a community server, so have security review the code and pin a version before Meta Ads Analyzer touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Meta Ads Analyzer README

From mathiaschu/meta-ads-analyzer on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

Meta Ads Analyzer for Claude Code

A Claude Code skill + MCP server setup for expert-level Meta Ads campaign analysis. Includes the Breakdown Effect framework, Learning Phase diagnostics, and 9 reference documents from Meta's official documentation.

What It Does

When installed, Claude Code can:

  • Analyze campaign, ad set, and ad-level performance data
  • Identify root causes of performance issues using Meta's system mechanics
  • Explain the Breakdown Effect (why Meta allocates budget to seemingly "worse" segments)
  • Diagnose Learning Phase, Auction Overlap, Pacing, and Creative Fatigue issues
  • Generate structured analysis reports with actionable recommendations
  • Connect directly to Meta's API to pull live campaign data (via MCP)

Components

Component What it does
Skill (skill/) Analysis framework with 9 reference docs that Claude loads as context
MCP Server (mcp/) Connects Claude Code to Meta's Marketing API for live data
Scripts (scripts/) Setup and token refresh helpers

Prerequisites

Installation

1. Install the Skill

Copy the skill/ folder into your Claude Code project:

# From your Claude Code project root
mkdir -p .claude/skills/meta-ads-analyzer
cp -r skill/* .claude/skills/meta-ads-analyzer/

The skill is now active. Claude will automatically use it when you ask about Meta Ads analysis.

2. Set Up the MCP Server (optional, for live data)

The MCP server lets Claude pull live campaign data from Meta's API. Skip this if you only want to analyze exported data (CSV, screenshots).

a) Create a Meta App
  1. Go to developers.facebook.com
  2. Create a new app (type: Business)
  3. Add the Marketing API product
  4. Note your App ID and App Secret
b) Generate an Access Token
  1. Go to Graph API Explorer
  2. Select your app
  3. Add permissions: ads_read, ads_management, business_management
  4. Click Generate Access Token and authorize
  5. Exchange for a long-lived token (60 days) using the setup script:
bash scripts/setup.sh
c) Configure Claude Code

Copy the MCP config template and add your credentials:

cp mcp/mcp.json.example .mcp.json

Edit .mcp.json and replace the placeholders with your actual token and app secret.

Then restart Claude Code for the MCP server to connect.

3. Verify

Ask Claude: "Analyze my Meta Ads campaigns", it should connect to your ad account and start analyzing.

Token Refresh

Meta long-lived tokens expire after ~60 days. To refresh:

bash scripts/refresh_token.sh

If the token already expired, generate a new one from the Graph API Explorer and run scripts/setup.sh again.

Usage Examples

Once installed, you can ask Claude things like:

  • "Analyze my campaigns from the last 7 days"
  • "Why is my CPA increasing on this campaign?"
  • "Compare performance across placements"
  • "Diagnose why this ad set is in Learning Limited"
  • "Export a full analysis report for [campaign name]"

You can also paste CSV exports or screenshots from Meta Ads Manager, the skill works with any data format.

What's in the Reference Docs

Document Covers
breakdown_effect.md Why Meta allocates budget to "expensive" segments
core_concepts.md Ad Auction, Pacing, Learning Phase overview
learning_phase.md How learning works, when it resets
ad_relevance_diagnostics.md Quality, Engagement, Conversion rankings
auction_overlap.md When your ads compete against each other
pacing.md Budget and bid pacing mechanics
bid_strategies.md Spend-based, goal-based, manual bidding
ad_auctions.md How auction winners are determined
performance_fluctuations.md Normal vs. concerning performance changes

License

MIT

Questions about Meta Ads Analyzer

What is the Meta Ads Analyzer MCP server?

Meta Ads Analyzer skill + MCP server for Claude Code. Breakdown Effect, Learning Phase, and expert-level campaign diagnosis. Meta Ads Analyzer is maintained by mathiaschu on GitHub at mathiaschu/meta-ads-analyzer, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Meta Ads Analyzer MCP server?

Meta Ads Analyzer doesn't publish a one-line install in the MCP registry, so follow the setup steps in its README on GitHub (mathiaschu/meta-ads-analyzer). Like most servers, Meta Ads Analyzer ends with a command or URL you paste into your AI app's MCP config.

Does Meta Ads Analyzer need an API key?

The registry lists no required keys for Meta Ads Analyzer. Check the Meta Ads Analyzer README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is Meta Ads Analyzer an official MCP server?

No. Meta Ads Analyzer is a community server maintained by mathiaschu. Community servers can be excellent; read the code and the open issues before you give Meta Ads Analyzer access to company data.

What license is Meta Ads Analyzer under?

Meta Ads Analyzer is released under the MIT license, according to its GitHub repository. The license covers the code of Meta Ads Analyzer; the service it connects to has its own terms.