Google Analytics MCP for Gemini CLI
Ask Gemini CLI 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- 1
Run this in a terminal. The user scope makes it available in every project:
gemini mcp add --transport http --scope user seoskill https://seoskill.dev/mcp - 2
Start Gemini CLI and sign in when it asks. If it does not ask, run /mcp auth seoskill.
Gemini CLI opens the Google sign-in in your browser and keeps the token.
Prompts to try in Gemini CLI
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 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 CodeWindsurf
Two commands, or one entry in mcp_config.json.
Google Analytics in WindsurfLe Chat
A custom MCP connector.
Google Analytics in Le ChatMore data for Gemini CLI
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 Gemini CLIDataForSEO
Keyword metrics, rankings, SERPs, competitors, backlinks and AI answer checks with your own login.
DataForSEO in Gemini CLIAhrefs
Keyword metrics, ranked keywords, SERPs, competitors and backlinks with your own key.
Ahrefs in Gemini CLIClicky
Visits by landing page, with the traffic sources and search engines that sent them.
Clicky in Gemini CLI