Facebook Ads MCP Server

Model Context Protocol server for Facebook Marketing API

Server Online

🔐 Connect Facebook Account

Connect your Facebook account to access the Marketing API. Enter a user ID and click Login.

🔗 API Endpoint

/.netlify/functions/mcp

🛠️ Available Tools

  • get_ad_accounts List all connected Facebook Ad accounts
  • get_campaigns Get campaigns for a specific ad account
  • get_campaign_performance Fetch detailed performance metrics for campaigns
  • get_account_summary Get aggregated performance for an account

📡 Example Request

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_campaign_performance",
    "arguments": {
      "ad_account_id": "123456789",
      "date_start": "2024-01-01",
      "date_end": "2024-01-31"
    }
  }
}