MM

mathiaschu/meta-ads-analyzer

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

467 stars 63 forks 品質 57 トレンド 21MIT

mathiaschu/meta-ads-analyzerは、https://github.com/mathiaschu/meta-ads-analyzer.からインポートされたMCPサーバー候補です。

概要

mathiaschu/meta-ads-analyzerは、https://github.com/mathiaschu/meta-ads-analyzer.からインポートされたMCPサーバー候補です。

概要(AI 翻訳)

Claude Codeスキル+MCPサーバーを構築し、エキスパートレベルのMeta Adsキャンペーン分析を行います。Breakdown Effectフレームワーク、Learning Phase診断、Meta公式ドキュメントからの9つの参考文書が含まれています。

それが何をするのか

インストールすると、Claude Codeは以下の機能を持ちます:

  • キャンペーン、広告セット、広告レベルのパフォーマンスデータを分析する
  • Metaのシステムメカニクスを用いてパフォーマンス問題の根本原因を特定する
  • ブレイクダウン効果(なぜMetaが一見「悪い」セグメントに予算を割り当てるのか)を説明する
  • 学習フェーズの診断、オークションの重複、ペース配分、創造的疲労の問題
  • 実行可能な推奨事項を含む構造化分析レポートを生成する
  • MetaのAPIに直接接続し、ライブキャンペーンデータを取得(MCP経由)

構成要素

コンポーネント その役割
スキル(skill/) Claudeがコンテキストとして読み込む9つの参照ドキュメントを含む分析フレームワーク
MCPサーバー(mcp/) ClaudeコードをMetaのマーケティングAPIに接続し、ライブデータを提供します
スクリプト(scripts/) セットアップおよびトークンリフレッシュヘルパー

前提条件

  • クロードコードのインストール
  • Node.js v18+
  • マーケティングAPIアクセスを持つMetaアプリ(こちらで作成可能)

設置

1.スキルをインストールする

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

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
GitHub で README 全文を見る

インストール

This server does not publish a one-line install command.

Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →