Unified MCP server for Google Analytics 4 + Google Search Console
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
claude mcp add google-webtools --env GOOGLE_SERVICE_ACCOUNT_KEY='<GOOGLE_SERVICE_ACCOUNT_KEY>' -- docker run -i --rm -e GOOGLE_SERVICE_ACCOUNT_KEY ghcr.io/stufently/google-webtools-mcp:1.2.2~/.codex/config.toml
[mcp_servers.google-webtools]
command = "docker"
args = ["run", "-i", "--rm", "-e", "GOOGLE_SERVICE_ACCOUNT_KEY", "ghcr.io/stufently/google-webtools-mcp:1.2.2"]
env = { GOOGLE_SERVICE_ACCOUNT_KEY = "<GOOGLE_SERVICE_ACCOUNT_KEY>" }
# codex mcp add google-webtools --env GOOGLE_SERVICE_ACCOUNT_KEY='<GOOGLE_SERVICE_ACCOUNT_KEY>' -- docker run -i --rm -e GOOGLE_SERVICE_ACCOUNT_KEY ghcr.io/stufently/google-webtools-mcp:1.2.2~/.cursor/mcp.json
{
"mcpServers": {
"google-webtools": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"GOOGLE_SERVICE_ACCOUNT_KEY",
"ghcr.io/stufently/google-webtools-mcp:1.2.2"
],
"env": {
"GOOGLE_SERVICE_ACCOUNT_KEY": "<GOOGLE_SERVICE_ACCOUNT_KEY>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"google-webtools": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"GOOGLE_SERVICE_ACCOUNT_KEY",
"ghcr.io/stufently/google-webtools-mcp:1.2.2"
],
"env": {
"GOOGLE_SERVICE_ACCOUNT_KEY": "<GOOGLE_SERVICE_ACCOUNT_KEY>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"google-webtools": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"GOOGLE_SERVICE_ACCOUNT_KEY",
"ghcr.io/stufently/google-webtools-mcp:1.2.2"
],
"env": {
"GOOGLE_SERVICE_ACCOUNT_KEY": "<GOOGLE_SERVICE_ACCOUNT_KEY>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"google-webtools": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"GOOGLE_SERVICE_ACCOUNT_KEY",
"ghcr.io/stufently/google-webtools-mcp:1.2.2"
],
"env": {
"GOOGLE_SERVICE_ACCOUNT_KEY": "<GOOGLE_SERVICE_ACCOUNT_KEY>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"google-webtools": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"GOOGLE_SERVICE_ACCOUNT_KEY",
"ghcr.io/stufently/google-webtools-mcp:1.2.2"
],
"env": {
"GOOGLE_SERVICE_ACCOUNT_KEY": "<GOOGLE_SERVICE_ACCOUNT_KEY>"
}
}
}
}需要的环境变量
GOOGLE_SERVICE_ACCOUNT_KEY
把占位值换成你自己的密钥;不要把密钥提交到代码仓库。