营销MCP向导
设置营销分析的交互式CLI MCP服务器 为了 克劳德代码.
通过一个命令将Google Analytics、Microsoft Clarity、搜索控制台、元广告和Google广告连接到Claude Code。
快速开始
npx marketing-mcp-wizard ┌──────────────────────────────────────────────────────────┐
│ Marketing MCP Wizard │
│ Connect your marketing tools to Claude — no coding needed│
└──────────────────────────────────────────────────────────┘
? Which tools would you like to connect?
◉ Google Analytics — Website traffic, user behavior, real-time visitors
◉ Microsoft Clarity — See what users do — clicks, scrolls, session recordings
◉ Google Search Console — How people find you on Google — rankings, clicks, keywords
◉ Meta Ads — Facebook & Instagram ad campaigns, spend, performance
◯ Google Ads — Ad spend & performance (works through Google Analytics)支持的服务器
| 服务器 | 包 | 身份验证类型 |
|---|---|---|
| 谷歌分析 | analytics-mcp | 服务帐户JSON |
| 微软清晰度 | @anthropic-ai/mcp-server-clarity | API密钥 |
| 谷歌搜索控制台 | mcp-server-gsc | 服务帐户JSON |
| 元广告 | meta-ads-mcp | 访问令牌 |
| 谷歌广告 | 通过GA4 | GA4链接 |
它的作用
- 选择 连接哪些营销工具
- 进入 带有引导提示和有用链接的凭据
- 测试 每个连接都是自动的
- 保存 配置到
~/.mcp.json(全球)或.mcp.json(本地) - 完成 --重新启动Claude Code,您的营销数据即可访问
选项
npx marketing-mcp-wizard # Interactive setup
npx marketing-mcp-wizard --list # List supported servers
npx marketing-mcp-wizard --status # Show which servers are configured
npx marketing-mcp-wizard --skip-tests # Skip connection tests
npx marketing-mcp-wizard --global # Save to ~/.mcp.json directly安装后可以做什么
配置后,问Claude以下问题:
- 谷歌分析 --“分析我过去30天的网站流量”
- 微软清晰度 --“显示本周愤怒点击的会话”
- 搜索控制台 --“我对哪些关键词进行了排名,但点击率很低?”
- 元广告 --“我的脸书广告本周表现如何?”
- Google广告 --“我这个月的广告支出和ROAS是多少?”(通过GA4)
输出
向导生成 .mcp.json 与Claude Code兼容的文件:
{
"mcpServers": {
"google-analytics": {
"command": "pipx",
"args": ["run", "analytics-mcp"],
"env": {
"GA4_PROPERTY_ID": "123456789",
"GOOGLE_PROJECT_ID": "my-project",
"GOOGLE_APPLICATION_CREDENTIALS": "/path/to/credentials.json"
}
},
"clarity": {
"command": "npx",
"args": ["-y", "@anthropic-ai/mcp-server-clarity", "--project-id", "123", "--api-key", "xxx"]
},
"search-console": {
"command": "npx",
"args": ["-y", "mcp-server-gsc"],
"env": {
"GOOGLE_APPLICATION_CREDENTIALS": "/path/to/credentials.json"
}
},
"meta-ads": {
"command": "npx",
"args": ["-y", "meta-ads-mcp"],
"env": {
"META_ACCESS_TOKEN": "your_access_token"
}
}
}
}先决条件
- Node.js 18+
- pipx --仅适用于谷歌分析(安装)
许可证
麻省理工学院
