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 freeRun 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_reportSessions before and after a date, including visits from AI assistants.
seo_compareLanding pages from search with sessions, users, engaged sessions and key events.
seo_data
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 CodeClaude
A custom connector, added once for web, desktop and mobile.
Google Analytics in ClaudeChatGPT
A custom MCP server added from Plugins.
Google Analytics in ChatGPTCodex
Two commands in your terminal.
Google Analytics in CodexCursor
One entry in mcp.json.
Google Analytics in CursorVS Code
The Add Server command, or one entry in .mcp.json.
Google Analytics in VS CodeGemini CLI
One command in your terminal.
Google Analytics in Gemini CLIWindsurf
Two commands, or one entry in mcp_config.json.
Google Analytics in WindsurfLe Chat
A custom MCP connector.
Google Analytics in Le Chat