
GA4的MCP服务器,搜索控制台,工作表,标签管理器和PageSpeed. 44个工具,浏览器 OAuth——没有服务账户,没有JSON文件.
概览
将克洛德(和其他AI助手)直接连接到你的Google营销数据. 用简单的英语提问,并从GA4,Search Console,Google Sheets,Tag Manager,和PageSpeed那里得到真正的答案——没有仪表板,没有输出,没有SQL. 一个模型上下文协议服务器,将5个Google API包成44个工具,你的AI助理可以直接调用——一个Google Analytics MCP,Google Search Console MCP,Google Tag 管理器 MCP,以及一个包中的PageSpeed Insights MCP. 从那时起,你可以向克洛德询问你的谷歌营销数据, 并获得一个真正的答案—— 不是幻觉,也不是猜测,你账户中的实际数据。 导出 CSV,通过仪表板点击,写自定义报告,请您的开发者调取数据. 无码仪表板、报告产品或管理服务。 它运行在你的机器上,使用自己的Google证书,你的数据从不触及任何第三方服务器. - 检查节点 - 转换。 下载于 nodejs.org.
概述(AI 翻译)
将克洛德(和其他AI助手)直接连接到你的Google营销数据. 用简单的英语提问,并从GA4,Search Console,Google Sheets,Tag Manager,和PageSpeed那里得到真正的答案——没有仪表板,没有输出,没有SQL.
– – . . .
∮这是什么∮
一个模型上下文协议服务器,将5个Google API包成44个工具,你的AI助理可以直接调用——一个Google Analytics MCP,Google Search Console MCP,Google Tag 管理器 MCP,以及一个包中的PageSpeed Insights MCP. 从那时起,你可以向克洛德询问你的谷歌营销数据, 并获得一个真正的答案—— 不是幻觉,也不是猜测,你账户中的实际数据。
** 它替换什么:** 输出 CSV,通过仪表板点击,写自定义报告,请开发者调取数据.
** 不是:** 无码仪表板、报告产品或管理服务。 它运行在你的机器上,使用自己的Google证书,你的数据从不触及任何第三方服务器.
– – . . .
□ 先决条件
在你开始之前,确保你有:
- Node.js 18或以后——核对
node --version。 下载于 nodejs.org.
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Google Marketing Stack MCP
Connect Claude (and other AI assistants) directly to your Google marketing data. Ask questions in plain English and get real answers from GA4, Search Console, Google Sheets, Tag Manager, and PageSpeed — no dashboards, no exports, no SQL.
"What were our top 10 landing pages last month and which had the worst bounce rate?"
"Which GSC queries are ranking between position 4 and 10 that we could push to page 1?"
"Run a GTM audit — are there any orphaned triggers or unused variables?"
"Compare example.com performance on mobile vs desktop and tell me what to fix first."
What this is
A Model Context Protocol server that wraps five Google APIs into 44 tools your AI assistant can call directly — a Google Analytics MCP, Google Search Console MCP, Google Tag Manager MCP, and PageSpeed Insights MCP in one package. You connect it once, and from then on you can ask Claude anything about your Google marketing data and get a real answer — not a hallucination, not a guess, actual data from your accounts.
What it replaces: exporting CSVs, clicking through dashboards, writing custom reports, asking your developer to pull data.
What it is not: a no-code dashboard, a reporting product, or a managed service. It runs on your machine, uses your own Google credentials, and your data never touches any third-party server.
Prerequisites
Before you start, make sure you have:
- Node.js 18 or later — check with
node --version. Download at nodejs.org. - A Google account with access to the properties you want to query (GA4, Search Console, etc.)
- A Google Cloud project — ideally one that already has the APIs enabled (see GCP setup below)
- Claude Code, Claude Desktop, Cursor, or Windsurf — any MCP-compatible client works
GCP setup
This is the part where most people get stuck. Read this section before touching the Google Cloud Console.
Step 1 — Use the right GCP project
If you already have a GCP project that manages your Google Analytics or other Google services, use that one. Go to console.cloud.google.com, switch between projects, and look for one that has APIs & Services → Enabled APIs showing Analytics Data API, Search Console API, etc.
If you don’t have a GCP project yet, create one: go to console.cloud.google.com, click the project selector in the top nav, click New Project, give it any name (e.g. “Marketing MCP”), and click Create. Then continue to Step 2 to enable the APIs.
The most common mistake: creating a new GCP project when you already have one that works. If you have an existing project with these APIs enabled, use it — you’ll skip most of Step 2.
Step 2 — Enable all four APIs
安装
npx -y @generalist-club/google-marketing-stack-mcp配置
{
"mcpServers": {
"google-marketing-stack": {
"command": "node",
"args": ["/absolute/path/to/google-marketing-stack-mcp/src/index.js"],
"env": {
"GOOGLE_CLIENT_ID": "your_client_id",
"GOOGLE_CLIENT_SECRET": "your_client_secret",
"GA4_PROPERTY_ID": "123456789",
"GSC_SITE_URL": "sc-domain:yourdomain.com",
"GTM_ACCOUNT_ID": "12345678",
"GTM_CONTAINER_ID": "98765432"
}
}
}
}