Skip to main content
Glama
pipelinica-mcp
by pipelinica

Pipelinica MCP: one MCP server for Facebook Ads, Google Ads, GA4 and 7 more marketing platforms

Pipelinica MCP lets your AI read your ad platforms and change your campaigns, and every change waits for your approval first. Ask Claude, ChatGPT, Cursor or any other MCP client "which campaigns lost money last week?" and it answers with numbers straight from your accounts.

This repository holds the source code of the connectors and the MCP tools behind Pipelinica, so you can see exactly what the server does with your accounts before you connect them. You can also run it on your own computer with your own platform apps.

The quickest way: Pipelinica, hosted for you

Running the server yourself means creating your own app on every platform, getting API access approved and keeping the logins fresh. If you'd rather skip all of that, use the hosted server at pipelinica.com:

  • Nothing to install. Add https://app.pipelinica.com/mcp to Claude, ChatGPT or another AI client, sign in, and connect your ad accounts in a few clicks.

  • Your AI works like a marketing expert. It follows the steps an expert takes for an account audit, a new campaign or a performance report, so it asks the right questions and checks your conversion tracking before it suggests anything.

  • You decide what it may touch. Choose Reporting or Editing for each platform and ad account, and see every change your AI made in one list.

  • Your team works together. Share the account with colleagues, and send the same data to Google Sheets or BigQuery on a schedule.

Every account starts free, with no card. Start free at pipelinica.com.

Related MCP server: PaidSync (Ads analysis & Management)

Platforms

Your AI can read reports on every platform below. Changes stay off until you allow them, and your AI shows you a preview of each one before it makes it.

Platform

What your AI can read

What your AI can change

Facebook Ads (Meta Ads)

Reports on campaigns, ad sets and ads, with breakdowns

Pause or enable, daily budgets, conversion events, and more through Meta's API

Google Ads

Reports on campaigns, ad groups, keywords and search terms

Pause or enable, daily budgets, negative keywords, and more through Google's API

Google Analytics 4

Reports on traffic, events and conversions, and the property's settings

Create, update or remove key events and custom dimensions

Google Search Console

Reports on search queries and pages

Submit or delete sitemaps, add or remove sites

Google Tag Manager

Tags, triggers, variables, versions and workspaces

Create, update or delete tags, triggers and variables, preview, and publish versions

LinkedIn Ads

Reports on campaign groups, campaigns and creatives

Pause or enable, daily budgets, and more through LinkedIn's API

Microsoft Advertising (Bing Ads)

Reports on campaigns, ad groups, keywords and search terms

Pause or enable, daily budgets, negative keywords, and more through Microsoft's API

TikTok Ads

Reports on campaigns, ad groups and ads

Reports only for now

ChatGPT Ads

Reports on campaigns, ad groups and ads

Pause or enable, daily budgets, and more through OpenAI's API

RTB House

Reports on advertisers and campaigns

Pause or enable advertisers and campaigns

Run it on your own computer

You need Python 3.13 and uv.

  1. Clone this repository and run uv sync.

  2. Copy pipelinica-mcp.example.yaml to pipelinica-mcp.yaml.

  3. Add your own platform apps under apps, for example a Google Cloud OAuth client with Google Ads API access, or a Meta app.

  4. Add your logins under connections, for example a Google refresh token or a Meta access token.

  5. Add the server to your AI client as a stdio server: uv --directory /path/to/pipelinica-mcp run pipelinica-mcp --config /path/to/pipelinica-mcp.yaml.

To serve it over HTTP instead, set token in the file to a random value of at least 32 characters, then run uv run pipelinica-mcp --http --port 8000. Your client then sends that token as a bearer token to http://127.0.0.1:8000/mcp.

Keep pipelinica-mcp.yaml private, because it holds your logins. The server writes a refreshed login back to it, since some platforms replace the token each time they refresh it.

How the code is organised

  • src/pipelinica/connectors/: one folder per platform with its manifest, its field catalog and its code, built on the shared framework in the same folder.

  • src/pipelinica/mcp/: the MCP tools, the server and the self-hosted runner (selfhost.py).

Licence

The Functional Source License 1.1 (FSL-1.1-ALv2). You may use, change and share the code for anything except a competing commercial service. Two years after each release, that release becomes available under the Apache License 2.0.

Available Tools

9 tools
apply_changeApply a changeA
Destructive

Makes a change that preview_change showed, through the ad platform's own API (such as the Google Ads API or Meta's Marketing API). A high-risk change (spends money, goes live, can't be undone) is refused unless confirmed is true. Refused when the state moved since the preview. The change is recorded in Pipelinica under AI access.

Inputs: action (required), params (required), platform (required), settings (required), +3 more. Returns: What a change does (preview) or did (apply), in words the person reads.

describe_actionsDescribe the changesA
Read-onlyIdempotent

The reads (run_read) and the changes (preview_change, apply_change) this AI client can make on a platform, each with its parameters' schema, and where it has Editing: all accounts, some or none. Without Editing on an account, a change says where the user turns it on.

Inputs: platform (required). Returns: reads, actions, editing, platform

describe_fieldsDescribe the fieldsB
Read-onlyIdempotent

The fields a report can ask at a level: dimensions and metrics (with descriptions when searching), the ones every row has (always), and calculated ratios with their formulas, which compute them from the sums of their inputs.

Inputs: platform (required), level, search. Returns: level, always, fields, platform, +4 more

describe_sourceDescribe a platformB
Read-onlyIdempotent

A platform's settings (choices such as the ad account, which list_options lists), report levels, presets (ready field lists), the periods one row can cover, and how far back it keeps data.

Inputs: platform (required). Returns: name, dated, levels, periods, +6 more

list_optionsList the choices of a settingB
Read-onlyIdempotent

The choices of one setting, such as the ad accounts a connection can read. Each option has the settings that run_report takes as they are.

Inputs: setting (required), platform (required), connection (required), chosen. Returns: options, setting

list_platformsList platformsA
Read-onlyIdempotent

The ad platforms this AI client may read, each with the user's connections to it (a connection is one login to the platform; it can reach several ad accounts).

Inputs: no named parameters. Returns: platforms

preview_changePreview a changeA
Read-onlyIdempotent

What a change would do, before and after, with notes on its effects, checked by the platform and not made. apply_change makes it by its change_id.

Inputs: action (required), params (required), platform (required), settings (required), +1 more. Returns: ask, risk, lines, notes, +3 more

run_readRead settingsA
Read-onlyIdempotent

One of a platform's reads (describe_actions) through the platform's own API (such as the Google Ads API or Meta's Marketing API): its settings as that API's JSON, such as Google Tag Manager's tags, triggers and versions. About 30,000 characters at most: a longer list is cut and more_items counts the rest (a narrower read gets them).

Inputs: read (required), platform (required), settings (required), connection (required), +1 more. Returns: data, read, platform, more_items

run_reportRun a reportB
Read-onlyIdempotent

The platform's rows for the fields over the dates, as a table: at most 1,000 rows and about 30,000 characters (more_rows counts the rest; fewer days, fewer fields or a longer period fit more). descriptions says what each column means (currency, attribution, caveats). Every row has the always fields. A week, month or year row counts its whole period and is dated by its first day. A refusal says what to change.

Inputs: fields (required), platform (required), connection (required), level, +4 more. Returns: rows, period, columns, end_date, +4 more

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 9 tools

    Disambiguation4/5

    The tools mostly have distinct roles: list_* enumerate, describe_* explain metadata, run_* execute reads/reports, and preview/apply_change pair clearly. Minor potential confusion exists between describe_source and list_options (both expose settings/choices), and between run_report and run_read (both return data), but descriptions help distinguish them.

    Naming Consistency5/5

    All names follow a consistent snake_case verb_noun pattern: list_platforms, describe_source, list_options, describe_fields, run_report, describe_actions, run_read, preview_change, apply_change. Verb choices are predictable and align with tool purpose.

    Tool Count5/5

    Nine tools is well-scoped for an ad platform reporting and change-management server. Each tool has a distinct place in the workflow, with no obviously redundant or filler tools.

    Completeness4/5

    The surface covers platform discovery, schema introspection, reporting, arbitrary reads, and a safe preview/apply change lifecycle. Minor gaps remain, such as no explicit change history, rollback, or connection-management tool, but core workflows are complete.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      F
      maintenance
      MCP server for managing Google Ads, Meta Ads, LinkedIn Ads, and TikTok Ads via AI. 210+ tools including account audits, wasted spend detection, and PMax insights.
      2
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Unified MCP server for managing Meta Ads, LinkedIn Ads, Google Ads, GA4, and Search Console with 89 read/write tools, multi-account support, OAuth setup, and safe dry-run mutations.
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      A universal marketing MCP server that lets AI clients manage 20+ ad and marketing platforms (Google Ads, Meta, TikTok, etc.) with 500+ operations, including write actions with user approval.
      58
      MIT