MadgicxMCP Docs

Introduction

Connect any AI assistant or agentic framework to your Madgicx account and manage Facebook ads through natural language.

Madgicx MCP Documentation

Madgicx MCP lets you manage your Facebook advertising through AI assistants like Claude and ChatGPT — using plain English. Ask questions about your campaigns, adjust budgets, duplicate ads, pull performance reports, and more, all from a single conversation.

What is MCP?

The Model Context Protocol (MCP) is an open standard that gives AI assistants secure, authenticated access to external services. Madgicx runs a remote MCP server that any compatible client can connect to over OAuth 2.0.

This means you can:

  • Read your account structure — campaigns, ad sets, ads, and creatives
  • Act on your ads — pause, start, adjust budgets and bids
  • Analyze performance — pull insights with breakdowns by age, gender, placement, and more
  • Automate naming and organization — bulk rename, add prefixes, replace text across entities

Quick Start

Pick a client

Madgicx MCP works with Claude (Web, Desktop, Mobile, Code), ChatGPT (Web, API), n8n, and agentic frameworks like OpenAI Agents, LangGraph, Google ADK, and CrewAI. Any MCP-compatible client can connect via OAuth or client credentials.

Add the connector

Point your client at the Madgicx MCP server:

https://mcp.madgicx.com/mcp

Each client has a slightly different setup flow — see the guides below.

Authorize

You'll be redirected to Madgicx to log in and select a team. OAuth 2.0 with PKCE keeps your tokens safe — no secrets are stored in the client.

Start asking

Show me my active campaigns and their spend this week
Pause campaign "Summer Sale"
Set the daily budget of ad set "Retargeting US" to $50

Supported Clients

Available Tools

CategoryExamples
IdentityCheck your connection, team, and token status
Ad AccountsList accounts, get details, view activity logs
CampaignsStart, pause, set budgets, rename
Ad SetsStart, pause, manage budgets, bids, spending limits, rename
AdsStart, pause, rename
CreativesInspect and batch-retrieve creatives
InsightsPerformance metrics at account, campaign, ad set, and ad level with breakdowns

See the Tools section for full parameter documentation on every tool.

Next Steps

On this page