← All resources Product

Connect Windsurf to Measurebase

Measurebase speaks MCP - the open protocol AI assistants use to reach external tools - and Windsurf's Cascade speaks it too. Add Measurebase as a remote MCP server and your tracking answers arrive without leaving the file you're working in.

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

Cascade 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.

Connect in two minutes

  1. Open Windsurf Settings → Cascade → MCP servers, choose Manage MCPs and then View raw config - this opens ~/.codeium/windsurf/mcp_config.json.
  2. Add the server:
{
  "mcpServers": {
    "measurebase": {
      "serverUrl": "https://mcp.measurebase.com/mcp"
    }
  }
}
  1. Save and refresh the MCP list. Windsurf discovers the Measurebase authorization server on its own, opens your browser for the Measurebase login, and shows the consent screen that spells out what it gets.
  2. Click Allow. Cascade lists the Measurebase tools - ask away in the chat.

🔒 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?

You can skip the OAuth flow with a static header. Create a personal API token in the dashboard under Settings → API tokens (read-only by default, valid until you revoke it) and add it to the server entry:

"headers": { "Authorization": "Bearer YOUR_TOKEN" }

The config file is global, so a token there stays out of your projects' version control.

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