MCP server or agent harness: what a marketing team needs
An MCP server gives an AI model tools for one service, such as Google Ads, Google Analytics 4 or Meta Ads. An agent harness is the code around the model, with its tool loop, a place to run code, memory and the rules for what may change. MCP leaves open how an app uses the model, so approvals, memory and the separation of clients come from the app or from you.
What MCP and a harness each are
The Model Context Protocol describes itself as "an open-source standard for connecting AI applications to external systems". In its architecture overview, the AI application is the host, the host opens one client for each server, and a server is "a program that provides context to MCP clients". A server can offer tools the model calls, resources with context data, and prompts that act as templates. For marketing work the tools matter most, such as running a report, listing accounts or creating a campaign. The same page says MCP "does not dictate how AI applications use LLMs or manage the provided context", so the rest is the host application's job.
The word harness has no single owner. LangChain's engineering blog defines it as "every piece of code, configuration, and execution logic that isn't the model itself" and lists system prompts, tools, skills and MCPs, a filesystem or sandbox, orchestration logic and hooks. By that definition an MCP server is one item inside a harness. Anthropic's engineering team calls the Claude Agent SDK an agent harness in its post on long-running agents, and names the problem a harness has to solve: "each new session begins with no memory of what came before."
What the official marketing servers do
As of November 2026 Google and Meta each document a server for their own data. The table is taken from their documentation pages.
| Server | Where it runs | Reads | Changes |
|---|---|---|---|
| Google Ads | You run it (pipx or Cloud Run) | GAQL search, field metadata, accessible customers | Creates assets and labels after a propose and confirm step. Cannot create, modify, pause or enable campaigns, ad groups, ads, budgets or bids |
| Google Analytics | You run it (pipx, or hosted as a shared HTTP service) | Account and property details, run_report, funnel, conversions and realtime reports | The README lists three write tools that need the --allow-write flag and the analytics.edit scope |
| Meta Ads | Meta hosts it at https://mcp.facebook.com/ads | Reporting, catalogs, signals, activity logs, Ad Library search | Creates and edits campaigns, ad sets, ads and custom audiences |
Google's Analytics page says the server is available for read requests only, while the README documents the write flag. The two pages disagree, so check the version you install. The Google Ads guide also says the server needs a Google Cloud project with Explorer, Basic or Standard access for production accounts, and the longer write-up is in Google Ads MCP server.
Meta's tool list shows where the approval step sits. Write tools create entities paused, "your AI client asks for confirmation before activation", and ads_activate_entity changes a paused campaign, ad set or ad to active, which "starts spending budget." The confirmation comes from the AI client. The MCP specification says there "SHOULD always be a human in the loop", and Google's guide says its confirmation checksum "does not replace access control."
Connecting a client takes one command each. These two come from the vendors' own pages, with placeholders left in:
claude mcp add analytics-mcp --scope user \
-e "GOOGLE_APPLICATION_CREDENTIALS=PATH_TO_CREDENTIALS_JSON" \
-e "GOOGLE_CLOUD_PROJECT=YOUR_PROJECT_ID" \
-- pipx run analytics-mcp
claude mcp add --transport http --client-id <META_APP_ID> meta-ads https://mcp.facebook.com/ads
A weekly report followed through both set-ups
The task is a weekly report on spend and conversions for one client, across Google Ads, Meta and GA4.
With MCP servers in a chat app, the work goes like this.
- You set up three servers with three sign-in methods. Application Default Credentials for Analytics, a Cloud project with an access level for Google Ads, and Facebook Login for Business, a user token or an Employee-role system user token for Meta, per Meta's get started page.
- The host opens one client per server. Anthropic's engineering team notes that most MCP clients load the tool definitions upfront, so the tool definitions of three servers take up context before the first question.
- The model calls each server's tools. Each result passes through the model, and Anthropic's example is a two-hour sales meeting transcript that "could mean processing an additional 50,000 tokens." A campaign table would pass through the model the same way.
- Next week the session starts empty. The specification says "MCP has no protocol-level session", so remembering last week's numbers, or the client's targets, is the app's job.
With a harness, the same task adds pieces around the calls. Code runs in a sandbox, so the arithmetic happens outside the model's context. Anthropic describes this pattern and adds that it needs "a secure execution environment" with sandboxing, resource limits and monitoring, which direct tool calls avoid. Memory carries last week's figures forward. The client's rules and the approval step sit in the harness, so each server does not need its own.
What a team has to add around MCP servers
The protocol leaves these to the app or to the team.
- Approval. List the tools that can move money, for example
ads_activate_entityon Meta, and confirm your client asks before it runs them. The specification lists "Prompt for user confirmation on sensitive operations" among the things clients should do. - Credentials per client. Claude's help center says a shared credential such as an API key "gives everyone who uses it that credential's access". Keeping one client's data apart from another's therefore takes a separate credential for each client.
- Memory. Decide where last week's report and the client's targets are stored, since the protocol has no session.
- Cost. The protocol does not say how an app uses the model, so a cap on model spend for each client has to come from the app.
- Audit. The specification tells clients to "Log tool usage for audit purposes", which leaves the record with the app. Meta's server also has an activity logs category that mirrors the Ads Manager campaign history page.
- Unattended runs. A weekly job cannot click a login. Issue 100 on the Google Ads server reports that in a Workspace organization with session control, the stdio setup fails with a 503 "Reauthentication is needed" and only an interactive login recovers it. It was still open on 26 November 2026.
- Where the server runs. Claude's help center says a custom connector must be reachable from Anthropic's IP ranges on port 443, and only Owners and Primary Owners can add one on a Team plan. A server that runs on your own machine, as the two Google ones do by default, needs a public address or Anthropic's IP addresses allowed through your firewall before it can be added that way.
MCP servers in a chat app versus a harness
Alpue Studio is a harness for marketing. It is not an MCP server, does not publish one and does not load third-party MCP servers. The table compares it with the servers above.
| Point | MCP servers in a chat app | Alpue Studio |
|---|---|---|
| Set-up | One server per service, each with its own sign-in | A web app. Google Ads connects by a read-only user or Google sign-in, Meta through the Business Manager |
| Queries | The tools each server exposes | The agent writes its own queries, and each opens under "See query" |
| Calculations | Depends on the client | Python in a cloud sandbox, shown with the result |
| Memory | No protocol-level session | Notes kept between conversations and forgotten when asked |
| Separate clients | Each connector has its own credential | A workspace for each client, with its own accounts, rules, memory and budget limits |
| Changes | Whatever the server allows, as in the table above | No tool that pushes. A person drags a slider, and new campaigns arrive paused |
Alpue Studio has limits as well. There is no self sign-up, so teams ask for access at /access/. Custom connections to other services are read-only. Shopping and Performance Max campaigns leave as a Google Ads Editor file, and there is no autopilot mode. Nothing in it can be called from Claude, since it has no MCP server. How it handles keys and roles is on the security page, and a worked example of the parts is in an agent harness example.
When MCP servers alone are enough
One person, one or two accounts, questions asked by hand and read-only credentials make a good fit. The job has no schedule and no second client, and whoever sets it up is comfortable with pipx and a Google Cloud project. Meta's own server is hosted by Meta at a fixed address, and Google publishes the code for its two servers on GitHub.
Questions
What does MCP mean in marketing?
MCP is the Model Context Protocol, an open standard for connecting AI applications to external systems. In marketing it is how a model such as Claude reads or changes data in Google Ads, GA4 or Meta Ads through a server, such as the three described above.
Is an MCP server an agent?
No. The architecture overview defines a server as a program that provides context to clients, and the host is the AI application that opens one client for each server. The loop that calls the model and picks the next tool is part of that application.
Do you need a harness if you have MCP servers?
Not for occasional questions on one account. You need something around the servers once you want approvals, memory between runs, separate credentials per client or a model budget, because the protocol leaves those to the app.
Which marketing tools have MCP servers?
Google documents one for Google Ads and one for Google Analytics, and Meta documents a hosted ads server. For a server outside those three, read its own documentation on access and write rules before connecting an account. The Google Analytics server has its own write-up.
Sources
- What is the Model Context Protocol, Model Context Protocol. Read 26 November 2026.
- MCP architecture overview, Model Context Protocol. Read 26 November 2026.
- MCP specification: tools, Model Context Protocol. Read 26 November 2026.
- The Anatomy of an Agent Harness, LangChain. Read 26 November 2026.
- Effective harnesses for long-running agents, Anthropic Engineering. Read 26 November 2026.
- Code execution with MCP, Anthropic Engineering. Read 26 November 2026.
- Google Ads MCP server: developer integration guide, Google. Read 26 November 2026.
- googleanalytics/google-analytics-mcp, GitHub, Google. Read 26 November 2026.
- Try the Google Analytics MCP server, Google. Read 26 November 2026.
- Ads MCP server overview, Meta for Developers. Read 26 November 2026.
- Ads MCP server: ad creation and management, Meta for Developers. Read 26 November 2026.
- Ads MCP server: get started, Meta for Developers. Read 26 November 2026.
- Get started with custom connectors using remote MCP, Claude Help Center, Anthropic. Read 26 November 2026.
- Issue 100: stdio reauthentication, GitHub. Read 26 November 2026.