← All resources Product

Connect Microsoft Copilot to Measurebase

Measurebase speaks MCP - the open protocol AI assistants use to reach external tools. Microsoft Copilot reaches MCP servers through an agent: you add Measurebase as a tool to an agent of your own, then ask your tracking questions in that agent. With Copilot Studio it takes no code.

What you can do with the MCP

The MCP answers questions about your data and your tracking, sets up Measurebase with you, and improves your tracking settings. Ask the way you would ask a colleague. These are starting points, not commands.

Ask about your Measurebase data

Ask about your tracking setup

Ask about your Google Tag Manager containers

Ask about your GA4 data

Ask about your Google Ads and Meta Ads data

Answers about GA4, Google Ads and Meta need that account linked to your domain in Measurebase.

Set up Measurebase

Improve your tracking settings

Tag Manager changes land in a workspace named Measurebase, and you preview and publish them yourself. Changes in GA4 and Google Ads go live at once, because those tools have no draft, so they need your confirmation first.

Manage alerts, clients and your team

Your agent answers with your live data: statistics, request types, browser and bot breakdowns, Consent Mode v2 signals, request logs, alerts, plan usage, and the ad-block detection status - across every account you're a member of.

Before you start

These routes use Microsoft's agent tools. Microsoft's documentation describes no way to add a server directly to the free Copilot app, or to Microsoft 365 Copilot chat without an agent. Using GitHub Copilot in your editor? Follow the VS Code guide instead.

Connect with Copilot Studio

The route without code, using Microsoft's MCP onboarding wizard.

  1. In Copilot Studio, create or open an agent and go to its Tools page.
  2. Select Add a tool, then New tool, then Model Context Protocol.
  3. Enter a Server name and a Server description, such as "Tracking health, traffic, alerts and audits for my Measurebase domains". As the Server URL, enter https://mcp.measurebase.com/mcp.
  4. Under authentication, choose OAuth 2.0 with the type Dynamic discovery. Select Create, then Next.
  5. In the Add tool dialog, select Create a new connection. Sign in with your Measurebase login and click Allow on the consent screen that spells out what the agent gets.
  6. Select Add to agent, then test the agent with a question.

To use the agent in Microsoft 365 Copilot or Teams, publish it, open Channels, select Teams and Microsoft 365 Copilot and choose Add channel. Sharing it across your organization needs an administrator's approval.

Connect with the Microsoft 365 Agents Toolkit

The route for developers, as a declarative agent in Visual Studio Code. It needs Agents Toolkit 6.12.0 or later.

  1. Open the Microsoft 365 Agents Toolkit and select Create a New Agent/App, Declarative Agent, Add an Action and then Start with an MCP Server.
  2. Enter the server address https://mcp.measurebase.com/mcp and choose OAuth (with dynamic registration). Press Enter at the scopes step, then choose a project location and an agent name.
  3. In the Accounts pane, sign in to Microsoft 365 and check that Custom App Upload Enabled and Copilot Access Enabled are shown. In the Lifecycle pane, select Provision and then Confirm.
  4. Open Microsoft 365 Copilot at m365.cloud.microsoft/chat and pick your agent under Agents. Ask a question, choose to sign in when asked, and click Allow on the Measurebase consent screen.

Microsoft updates these screens often. If a label looks different, see Microsoft's guides for Copilot Studio and the Agents Toolkit.

🔒 Read-only by design

New connections are read-only unless you explicitly tick read & write on the consent screen - and read-only means exactly that: it can never change anything, not your domains, not your settings, not your tokens. With write access the assistant can also toggle power-ups, verify DNS, generate tracking scripts, run a tracking audit, propose fixes and apply them into the Measurebase workspace in your Tag Manager container (it never publishes), and set up new accounts and domains (returning the exact DNS record to add) - never more than your own role on each account allows, and Auto Grant Consent is excluded permanently.

Prefer a token?

If sign-in is not an option in your setup, Copilot Studio can also use a personal API token. Create one in the dashboard under Settings → API tokens (read-only by default, valid until you revoke it). In step 4, choose API key with the type Header and the name Authorization, and enter Bearer YOUR_TOKEN as the value when you create the connection.

A connection with your token acts as you, so keep the token read-only unless you need more, and be careful who you share that agent with.

How access and privacy work

🤝 For agencies

Your connection follows your agency access too: clients who approved your link are queryable in the same conversation. "Which of my clients had alerts this week?" is one question instead of ten dashboard visits.

Continue reading

Ready to improve your tracking setup?

Start free, no credit card required. Live in about 15 minutes.

Start free