---
title: "Google Analytics MCP server for SEO | SEO Skill"
description: "Connect Google Analytics to Claude, ChatGPT, Codex or any AI agent with a free MCP server. Search sessions beside Search Console clicks, landing pages and visits from AI assistants."
canonical: "https://seoskill.dev/integrations/google-analytics"
language: "en"
---

# Google Analytics MCP for SEO

Your agent sees what happens after the click: sessions from search, the pages people land on, and visits from AI assistants, for the same dates as your Search Console data.

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

Run it in a terminal, then sign in with Google.

Or run it on your machine

Installs the CLI, signs you in and adds the skill to your agents. Site crawls and Bing data run this way, on your own machine. A crawl fetches many pages, and Bing blocks our hosted server.

## Questions you can ask it

Ask the way you would ask a colleague. Your agent picks the tool and reads your Google Analytics data before it answers.

-   ### 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.

## Tools your agent gets

The SEO Skill tools that read Google Analytics. Your agent calls them for you.

-   ### Organic Search sessions from Google, from every search engine and from all channels, beside the site's clicks.

    `seo_report`
-   ### Sessions before and after a date, including visits from AI assistants.

    `seo_compare`
-   ### Landing pages from search with sessions, users, engaged sessions and key events.

    `seo_data`

## Connect Google Analytics

What you need, and how to read what comes back.

[Analytics docs](https://seoskill.dev/docs/analytics)

-   ### What you need

    Viewer access to a Google Analytics property for the site, on the same Google account you sign in with.

-   ### Connect

    Add the server to your agent and sign in with Google when it asks. Access is read only. Add more Google accounts, such as a client's, on your account page.

-   ### Read it with its limits

    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.

## Google Analytics in your AI client

Setup steps for Google Analytics in each client.

[

### 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)[

### VS Code

The Add Server command, or one entry in .mcp.json.

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

### 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)

## Questions about the Google Analytics MCP
