Ahrefs
Ahrefs
Backlinks, keywords and rankings from Ahrefs.
api.ahrefs.com/mcp/mcpRun GA4 reports and look up properties in plain language.
mcpServers (merge with any servers you already have).
/path/to/application_default_credentials.json, your-project-id with your own values (path to the Application Default Credentials file printed by gcloud; your Google Cloud project ID).
{ "mcpServers": { "google-analytics": { "command": "pipx", "args": [ "run", "analytics-mcp" ], "env": { "GOOGLE_APPLICATION_CREDENTIALS": "/path/to/application_default_credentials.json", "GOOGLE_CLOUD_PROJECT": "your-project-id" } } }}
First enable the Analytics Admin and Data APIs and run gcloud auth application-default login with the analytics.readonly scope. Add --allow-write to the args (and the analytics.edit scope) for write tools.
--scope user for every project, or --scope project to share it via .mcp.json.
/path/to/application_default_credentials.json, your-project-id with your own values (path to the Application Default Credentials file printed by gcloud; your Google Cloud project ID).
claude and run /mcp to confirm the server is connected.
claude mcp add --env GOOGLE_APPLICATION_CREDENTIALS=/path/to/application_default_credentials.json --env GOOGLE_CLOUD_PROJECT=your-project-id --transport stdio google-analytics -- pipx run analytics-mcp
{ "mcpServers": { "google-analytics": { "command": "pipx", "args": [ "run", "analytics-mcp" ], "env": { "GOOGLE_APPLICATION_CREDENTIALS": "${GOOGLE_APPLICATION_CREDENTIALS}", "GOOGLE_CLOUD_PROJECT": "${GOOGLE_CLOUD_PROJECT}" } } }}
First enable the Analytics Admin and Data APIs and run gcloud auth application-default login with the analytics.readonly scope. Add --allow-write to the args (and the analytics.edit scope) for write tools.
ChatGPT only connects to remote MCP servers over HTTPS, and Google Analytics runs locally. Use a client that can launch local servers, such as Claude Desktop, Claude Code, Cursor or VS Code.
~/.codex/config.toml.
/path/to/application_default_credentials.json, your-project-id with your own values (path to the Application Default Credentials file printed by gcloud; your Google Cloud project ID).
codex and type /mcp to see the server's tools.
codex mcp add google-analytics --env GOOGLE_APPLICATION_CREDENTIALS=/path/to/application_default_credentials.json --env GOOGLE_CLOUD_PROJECT=your-project-id -- pipx run analytics-mcp
[mcp_servers.google-analytics]command = "pipx"args = ["run", "analytics-mcp"]env = { GOOGLE_APPLICATION_CREDENTIALS = "/path/to/application_default_credentials.json", GOOGLE_CLOUD_PROJECT = "your-project-id" }
First enable the Analytics Admin and Data APIs and run gcloud auth application-default login with the analytics.readonly scope. Add --allow-write to the args (and the analytics.edit scope) for write tools.
-s user makes it global), or edit ~/.gemini/settings.json.
/path/to/application_default_credentials.json, your-project-id with your own values (path to the Application Default Credentials file printed by gcloud; your Google Cloud project ID).
/mcp inside Gemini CLI to confirm it's connected.
gemini mcp add -s user -e GOOGLE_APPLICATION_CREDENTIALS=/path/to/application_default_credentials.json -e GOOGLE_CLOUD_PROJECT=your-project-id google-analytics pipx run analytics-mcp
{ "mcpServers": { "google-analytics": { "command": "pipx", "args": [ "run", "analytics-mcp" ], "env": { "GOOGLE_APPLICATION_CREDENTIALS": "$GOOGLE_APPLICATION_CREDENTIALS", "GOOGLE_CLOUD_PROJECT": "$GOOGLE_CLOUD_PROJECT" } } }}
First enable the Analytics Admin and Data APIs and run gcloud auth application-default login with the analytics.readonly scope. Add --allow-write to the args (and the analytics.edit scope) for write tools.
~/.cursor/mcp.json (global) or .cursor/mcp.json (this project).
/path/to/application_default_credentials.json, your-project-id with your own values (path to the Application Default Credentials file printed by gcloud; your Google Cloud project ID).
{ "mcpServers": { "google-analytics": { "type": "stdio", "command": "pipx", "args": [ "run", "analytics-mcp" ], "env": { "GOOGLE_APPLICATION_CREDENTIALS": "/path/to/application_default_credentials.json", "GOOGLE_CLOUD_PROJECT": "your-project-id" } } }}
First enable the Analytics Admin and Data APIs and run gcloud auth application-default login with the analytics.readonly scope. Add --allow-write to the args (and the analytics.edit scope) for write tools.
.vscode/mcp.json in your project (or run MCP: Open User Configuration) and paste the JSON.
{ "inputs": [ { "type": "promptString", "id": "google-application-credentials", "description": "Path to the Application Default Credentials file printed by gcloud" }, { "type": "promptString", "id": "google-cloud-project", "description": "Your Google Cloud project ID" } ], "servers": { "google-analytics": { "type": "stdio", "command": "pipx", "args": [ "run", "analytics-mcp" ], "env": { "GOOGLE_APPLICATION_CREDENTIALS": "${input:google-application-credentials}", "GOOGLE_CLOUD_PROJECT": "${input:google-cloud-project}" } } }}
First enable the Analytics Admin and Data APIs and run gcloud auth application-default login with the analytics.readonly scope. Add --allow-write to the args (and the analytics.edit scope) for write tools.
mcp_config.json).
mcpServers and save.
/path/to/application_default_credentials.json, your-project-id with your own values (path to the Application Default Credentials file printed by gcloud; your Google Cloud project ID).
{ "mcpServers": { "google-analytics": { "command": "pipx", "args": [ "run", "analytics-mcp" ], "env": { "GOOGLE_APPLICATION_CREDENTIALS": "/path/to/application_default_credentials.json", "GOOGLE_CLOUD_PROJECT": "your-project-id" } } }}
First enable the Analytics Admin and Data APIs and run gcloud auth application-default login with the analytics.readonly scope. Add --allow-write to the args (and the analytics.edit scope) for write tools.
context_servers.
/path/to/application_default_credentials.json, your-project-id with your own values (path to the Application Default Credentials file printed by gcloud; your Google Cloud project ID).
{ "context_servers": { "google-analytics": { "command": "pipx", "args": [ "run", "analytics-mcp" ], "env": { "GOOGLE_APPLICATION_CREDENTIALS": "/path/to/application_default_credentials.json", "GOOGLE_CLOUD_PROJECT": "your-project-id" } } }}
First enable the Analytics Admin and Data APIs and run gcloud auth application-default login with the analytics.readonly scope. Add --allow-write to the args (and the analytics.edit scope) for write tools.
Ahrefs
Backlinks, keywords and rankings from Ahrefs.
api.ahrefs.com/mcp/mcpSemrush
Keyword, domain, backlink and traffic data from Semrush.
mcp.semrush.com/v2/mcpSimilarweb
Website traffic, rankings and audience data.
mcp.similarweb.com