Meta Ads Analyzer logo

Meta Ads Analyzer

Community
mathiaschu

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

Publishermathiaschu
Repositorymeta-ads-analyzer
LanguageShell
Forks
62
Stars
436
Available tools
0
Transport typestdio
LicenseMIT
Links
  • Connect tools to AI workflows

    Meta Ads Analyzer exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    436 stars and 62 forks from the linked repository.

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

ComponentWhat 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:

bash
# 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
bash scripts/setup.sh

c) Configure Claude Code

Copy the MCP config template and add your credentials:

bash
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
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

DocumentCovers
breakdown_effect.mdWhy Meta allocates budget to "expensive" segments
core_concepts.mdAd Auction, Pacing, Learning Phase overview
learning_phase.mdHow learning works, when it resets
ad_relevance_diagnostics.mdQuality, Engagement, Conversion rankings
auction_overlap.mdWhen your ads compete against each other
pacing.mdBudget and bid pacing mechanics
bid_strategies.mdSpend-based, goal-based, manual bidding
ad_auctions.mdHow auction winners are determined
performance_fluctuations.mdNormal vs. concerning performance changes

License

MIT

Use Meta Ads Analyzer MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once Meta Ads Analyzer is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add Meta Ads Analyzer as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the Meta Ads Analyzer MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "meta-ads-analyzer": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the Meta Ads Analyzer MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the Meta Ads Analyzer MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use Meta Ads Analyzer to help me with this task?
Meta Ads Analyzer
Sure. I read it.
Here is what I found using Meta Ads Analyzer.

Frequently asked questions

What is the Meta Ads Analyzer MCP server used for?

Meta Ads Analyzer is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use Meta Ads Analyzer MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use Meta Ads Analyzer with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use Meta Ads Analyzer MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With Meta Ads Analyzer connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect Meta Ads Analyzer MCP to TypingMind?

Meta Ads Analyzer runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does Meta Ads Analyzer MCP provide in TypingMind?

Meta Ads Analyzer exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use Meta Ads Analyzer MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If Meta Ads Analyzer requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇