---
title: "Google Analytics MCP for VS Code | SEO Skill"
description: "Connect Google Analytics to VS Code with the free SEO Skill MCP server. Search sessions beside your clicks, landing pages and visits from AI assistants. Setup steps and prompts to try."
canonical: "https://seoskill.dev/integrations/google-analytics/vs-code"
language: "en"
---

# Google Analytics MCP for VS Code

Ask VS Code about your Google Analytics data in plain words. Add one server, sign in with Google, and it reads your own numbers on each request.

[Get started free](https://seoskill.dev/account)

1.  1

    Open the Command Palette, run MCP: Add Server and choose HTTP. Enter the server URL and the name seoskill:

    ```
    https://seoskill.dev/mcp
    ```

2.  2

    Or add it to .mcp.json at the root of your workspace:

    ```
    {
      "mcpServers": {
        "seoskill": { "type": "http", "url": "https://seoskill.dev/mcp" }
      }
    }
    ```

3.  3

    Sign in with Google when VS Code opens the browser.

VS Code opens the Google sign-in the first time the server connects, then keeps the token.

## Prompts to try in VS Code

Ask in plain words and your agent picks the tool. Only visits that pass a referrer or tag count as coming from an AI assistant. An AI app that sends neither shows up as Direct.

-   ### Did search traffic drop, or all traffic?

    The report puts Organic Search sessions next to sessions from all channels, so a sitewide drop looks different from a search drop.

-   ### Which landing pages does search send people to?

    seo\_data with Google Analytics as the source: each landing page with sessions, users, engaged sessions and key events.

-   ### How many visits come from ChatGPT and Perplexity?

    The AI assistants rows: visits from ChatGPT, Perplexity, Claude, Gemini and Copilot, and the pages they land on.

-   ### Do clicks and sessions agree for my blog?

    Clicks from Search Console beside Organic Search sessions for the same dates. They count different things, so expect a gap.

## Google Analytics in other AI clients

The same server and sign-in, with each client's own setup steps.

[

### Claude Code

One command in your terminal.

Google Analytics in Claude Code](https://seoskill.dev/integrations/google-analytics/claude-code)[

### Claude

A custom connector, added once for web, desktop and mobile.

Google Analytics in Claude](https://seoskill.dev/integrations/google-analytics/claude)[

### ChatGPT

A custom MCP server added from Plugins.

Google Analytics in ChatGPT](https://seoskill.dev/integrations/google-analytics/chatgpt)[

### Codex

Two commands in your terminal.

Google Analytics in Codex](https://seoskill.dev/integrations/google-analytics/codex)[

### Cursor

One entry in mcp.json.

Google Analytics in Cursor](https://seoskill.dev/integrations/google-analytics/cursor)[

### Gemini CLI

One command in your terminal.

Google Analytics in Gemini CLI](https://seoskill.dev/integrations/google-analytics/gemini-cli)[

### Windsurf

Two commands, or one entry in mcp\_config.json.

Google Analytics in Windsurf](https://seoskill.dev/integrations/google-analytics/windsurf)[

### Le Chat

A custom MCP connector.

Google Analytics in Le Chat](https://seoskill.dev/integrations/google-analytics/le-chat)

## More data for VS Code

One server reads all of these. Add a key or a site and your agent can use it.

[

### Google Search Console

Clicks, impressions, CTR, positions, queries, pages and URL Inspection.

Google Search Console in VS Code](https://seoskill.dev/integrations/google-search-console/vs-code)[

### DataForSEO

Keyword metrics, rankings, SERPs, competitors, backlinks and AI answer checks with your own login.

DataForSEO in VS Code](https://seoskill.dev/integrations/dataforseo/vs-code)[

### Ahrefs

Keyword metrics, ranked keywords, SERPs, competitors and backlinks with your own key.

Ahrefs in VS Code](https://seoskill.dev/integrations/ahrefs/vs-code)[

### Clicky

Visits by landing page, with the traffic sources and search engines that sent them.

Clicky in VS Code](https://seoskill.dev/integrations/clicky/vs-code)

## Questions about Google Analytics in VS Code
