Install Google Analytics 4 MCP in Goose

What you need first

  • Goose, installed.
  • uv, which gives the uvx command the server starts with.
  • Your own value for YOUR_GOOGLE_APPLICATION_CREDENTIALS.

Steps

  1. Open ~/.config/goose/config.yaml. On Windows it is %APPDATA%\Block\goose\config\config.yaml.
  2. Add this entry. If the file already has extensions, add only the entry inside it.
extensions:
  "ga4-mcp":
    type: stdio
    name: "ga4-mcp"
    enabled: true
    cmd: "uvx"
    args: ["scalably-ga4-mcp==1.0.1"]
    env_keys: []
    envs: { "GOOGLE_APPLICATION_CREDENTIALS": "YOUR_GOOGLE_APPLICATION_CREDENTIALS" }
    timeout: 300
  1. Replace YOUR_GOOGLE_APPLICATION_CREDENTIALS with your own value.
  2. Save the file and start a new Goose session.

Check it worked

Ask Goose: List the tools of ga4-mcp.

If it does not start

spawn uvx ENOENT
uv is not on the PATH that Goose sees. Install it, or write the full path of uvx in the config.
The server starts, but its tools fail
A YOUR_… placeholder is still in the config, or its value is wrong.
Nothing changes after a restart
The file is not valid YAML any more. Check that the entry is indented like the lines around it.

Back to Google Analytics 4 MCP