TagSpy

MCP server

Let an AI assistant list your watched properties, scan them and inspect any GA4, Firebase or Tag Manager setup in plain language. Available on Spy and Agency.

Endpoint

https://tagspy.io/api/mcp. Streamable HTTP, JSON-RPC 2.0 over POST. Methods: initialize, tools/list, tools/call, ping. There is no SSE and no session: each request is complete on its own.

Authenticate with an API key from My alerts → Developer access as Authorization: Bearer <key>. It is the same key as the REST API.

Connecting without a key (OAuth)

Clients that support OAuth can connect without pasting a key: add the server URL and approve the request on the consent screen. The server implements OAuth 2.1 for public clients: authorization code with PKCE (S256), dynamic client registration and rotating refresh tokens. Metadata is published at /.well-known/oauth-protected-resource and /.well-known/oauth-authorization-server. Access tokens last one hour and are refreshed by the client; you can disconnect a client at any time from My alerts → Connected apps.

If your client shows 401 after you approve, it is usually holding an expired token: remove the server from the client and add it again.

Tools

ToolParametersWhat it does
list_propertiesnoneLists the properties you watch, with cadence and last scan.
resolve_urlurlFinds the GA4 measurement IDs and GTM containers a web page loads.
scan_propertyid | url, createIfMissing?Scans now, stores a snapshot if something changed and returns a one-line-per-change summary.
inspect_propertyid | urlReads a GA4, Firebase or Tag Manager configuration without tracking it.
inspect_gtm_containercontainerId | urlReads a Tag Manager container: tags, triggers, variables, vendors.

Try: “Which of my properties changed this week?” or “Inspect example.com and tell me which ad pixels it fires.”

Client setup

Claude Code:

claude mcp add --transport http tagspy https://tagspy.io/api/mcp --header "Authorization: Bearer <key>"

Claude Desktop, Cursor and other clients that read a JSON config (use the remote/HTTP server form your client supports, or the mcp-remote bridge):

mcp.json
{
  "mcpServers": {
    "tagspy": {
      "url": "https://tagspy.io/api/mcp",
      "headers": { "Authorization": "Bearer <key>" }
    }
  }
}
Bridge for clients without HTTP headers
{
  "mcpServers": {
    "tagspy": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://tagspy.io/api/mcp", "--header", "Authorization: Bearer <key>"]
    }
  }
}

Test it by hand:

curl -X POST https://tagspy.io/api/mcp \
  -H "Authorization: Bearer <key>" -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'

Limits

MCP shares the account budget with the REST API: 60 requests per minute, 2,000 per day and 60 real scans per hour. Plans without MCP receive a payment-required error.

Security notes

  • Treat the key as a password. Put it in your client's secret store, not in a repository. Revoke it from My alerts if it leaks.
  • Tools act as you: scan_property can add a property and use up your plan allowance, so review tool calls in clients that ask for approval.
  • Content returned by tools comes from third-party sites' public configuration (custom HTML, event names). Treat it as untrusted data, never as instructions.
  • TagSpy only ever reads public files. It has no access to your Google accounts.