Skip to content
VS Code

GA4 + Google Search Console + Bing for VS Code

com.kkvlabs/ga4-gsc-mcp

Google Analytics 4 (GA4), Google Search Console (GSC) and Bing Webmaster Tools. Local, read only.

client:VS Code transport:stdio runtime:npm

Install GA4 + Google Search Console + Bing in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "google-application-credentials",
      "description": "GOOGLE_APPLICATION_CREDENTIALS",
      "password": true
    },
    {
      "type": "promptString",
      "id": "ga4-property-id",
      "description": "GA4_PROPERTY_ID",
      "password": true
    },
    {
      "type": "promptString",
      "id": "gsc-site-url",
      "description": "GSC_SITE_URL",
      "password": true
    },
    {
      "type": "promptString",
      "id": "bing-webmaster-api-key",
      "description": "BING_WEBMASTER_API_KEY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "pagespeed-api-key",
      "description": "PAGESPEED_API_KEY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "brand-terms",
      "description": "BRAND_TERMS",
      "password": true
    },
    {
      "type": "promptString",
      "id": "ga4-gsc-mcp-no-hints",
      "description": "GA4_GSC_MCP_NO_HINTS",
      "password": true
    }
  ],
  "servers": {
    "ga4-gsc-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "ga4-gsc-mcp"
      ],
      "env": {
        "GOOGLE_APPLICATION_CREDENTIALS": "${input:google-application-credentials}",
        "GA4_PROPERTY_ID": "${input:ga4-property-id}",
        "GSC_SITE_URL": "${input:gsc-site-url}",
        "BING_WEBMASTER_API_KEY": "${input:bing-webmaster-api-key}",
        "PAGESPEED_API_KEY": "${input:pagespeed-api-key}",
        "BRAND_TERMS": "${input:brand-terms}",
        "GA4_GSC_MCP_NO_HINTS": "${input:ga4-gsc-mcp-no-hints}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

GA4 + Google Search Console + Bing in other clients