Account, Security & Privacy

Where your data goes

What your AI client does with the answers is up to that client and its terms.

What is stored where

What Where
Your Tag Pilot API key Your AI client's MCP config (TAGPILOT_API_KEY)
Google refresh and access token On your computer: ~/.config/tagpilot/ga4-mcp/<id>.json
Key label, created and last used time Your Tag Pilot account

Google permission

The only permission requested is https://www.googleapis.com/auth/analytics.readonly, shown by Google as See and download your Google Analytics data. It covers listing accounts and properties, reading settings and running reports. None of the tools can create, change or delete anything in GA4.

The GA4 MCP can only see what the signed-in Google account can see: properties where it has at least the Viewer role.

Revoking access

Any of these steps works on its own; do all three to remove everything.

  1. Revoke the key on the GA4 MCP page. Token refreshes stop, so the GA4 MCP stops working within the hour (when the current access token expires).

  2. Delete the local token:

    npx -y @tagpilot/ga4-mcp logout
    

    This removes every saved Google sign-in on this computer. To remove only one key's, put the key in front: TAGPILOT_API_KEY=tpk_your_key npx -y @tagpilot/ga4-mcp logout. You can also delete the files in ~/.config/tagpilot/ga4-mcp/ yourself. (Version 0.1.1 and later; 0.1.0 always needs the key.)

  3. Remove the access at Google on myaccount.google.com/permissions. This invalidates the refresh token everywhere.

Removing the server from your AI client stops it from running, but leaves the token file and the key in place.

Several Google accounts

Each key signs in to one Google account. To see properties from another Google account:

claude mcp add ga4-client --env TAGPILOT_API_KEY=tpk_second_key -- npx -y @tagpilot/ga4-mcp

Often simpler: ask the client's admin to add your own Google account as a Viewer on their GA4 property.

Several computers

Create one key per computer (the GA4 MCP page suggests a label like Work laptop). Each computer signs in to Google on its own and keeps its token locally, and you can revoke one computer's key without affecting the others. The Last used column shows which keys are still in use.

Don't copy token files between computers.

Keeping the key safe

Open source

The package is open source under Apache 2.0, so you can check exactly what it does: source on GitHub, package on npm.