Connect via MCP

Use Media Ops inside Claude, ChatGPT, Cursor, Claude Code or n8n.

🇧🇷 Ler em português

The MCP server exposes Media Ops operations as tools for AI assistants. Address:

https://media.ops.infotrafego.com.br/api/mcp

Streamable HTTP transport (stateless, JSON responses). Authentication with OAuth 2.1 — the assistant opens the Media Ops sign-in screen and you approve — or with an API key in the header, for clients without OAuth.

Connect your client

  1. Settings → Connectors → Add custom connector.
  2. Name: Media Ops; URL: the address above.
  3. Click Connect, sign in to Media Ops and click Aprovar acesso (Approve access).

Tools

Tool names are in Portuguese; they are stable identifiers. Input fields, types and the REST equivalent of every tool are in the MCP tools reference.

ToolWhat it doesPermission
quem_sou_euUser, role, channel and permissions—
listar_clientesActive clientsclients:read
listar_bmsA client's Business Managers and assets (business_manager_id, ad accounts, pages, Instagram, pixels)clients:read
buscar_publicosCustom audiences, interests, suggestions, locations; audience validationmeta:read
buscar_formulariosThe page's lead formsmeta:read
buscar_publicacoesInstagram postsmeta:read
buscar_campanhas / buscar_conjuntosExisting campaigns and ad setsmeta:read
escanear_pasta_driveMedia in a Google Drive foldermeta:read
validar_campanhaSimulates the campaign with the web app's rules, creating nothingcampaigns:write
criar_campanhaCreates (or extends) the campaign — asynchronouscampaigns:write
status_execucao / detalhar_execucao / listar_execucoes / logs_execucaoTrackingcampaigns:read
reexecutar_execucao / reexecutar_logSmart retry / retry of a single callcampaigns:write
criar_publicos_engajamento / status_publicos / listar_execucoes_publicosEngagement audiencesaudiences:*
listar_modelos_segmentacao / criar_… / renomear_… / remover_…Targeting templatestemplates:*
listar_saldos / atualizar_saldosAd account balancesbalances:*
cadastrar_cliente / sincronizar_ativos_bm / ativar_desativar_conta / arquivar_clienteClients and Business Managersclients:write
listar_notificacoesNotifications—
listar_usuarios / criar_usuario / atualizar_usuario / remover_usuarioUsers (administrators)admin:users

On MCP, the assistant only sees the tools your permissions allow.

Sample conversation

"In client Acme, main ad account, create a traffic campaign for https://acme.com.br with R$ 80/day, using the creatives from Drive folder X, audience in São Paulo aged 25–45."

The assistant follows the flow: listar_clientes → listar_bms → buscar_publicos (location) → validar_campanha → criar_campanha → status_execucao. Errors come back per field, in Brazilian Portuguese, so the assistant can fix them itself.

Everything starts paused

Tools that create or change something ask for confirmation in the client (readOnlyHint/destructiveHint hints). Campaigns, ad sets and ads are always created PAUSED.


Did this page help you?