Google Analytics (unofficial)

com.safe-mcp由 safe-mcp.com 发布官方发布者v1.0.0更新于 Oct 24, 2026

Connect Google Analytics to ChatGPT. Query GA4 data in plain English and get instant insights.

已验证Streamable HTTP可网页运行数据与分析商业与电商

概览

AI 生成的概览

非官方远程 MCP 服务器,让助手用自然语言查询 GA4、Google Search Console 和 Bing Webmaster 数据,生成报表与漏斗分析。

可以做什么
列出已连接和缺失的 GA4 媒体资源、数据流、Search Console 与 Bing Webmaster 站点及当前分析面映射,并查看或更新网站/应用分析面的持久化选择器(marketing_get_sources、marketing_manage_surface)。发现标准营销报表图、可用数据源、支持的指标与维度,以及当前已启用的连接器(marketing_get_catalog)。针对 GA4 网站与应用分析、Search Console 和 Bing Webmaster 生成总计、趋势和按维度拆分的报表(marketing_get_report)。分析有序转化步骤漏斗和跨数据源落地页漏斗,包括各步骤流失(marketing_get_funnel)。
适用场景
适合需要从 GA4、Search Console 和 Bing Webmaster 获取营销或流量报表而无需手写查询的场景,例如近 30 天汇总、收入、会话和转化漏斗。当媒体资源或站点选择器未知时,先查询数据源。
运行要求
远程 streamable HTTP 端点 api.safe-mcp.com;未声明任何软件包、环境变量或请求头。它依赖已连接的 GA4 媒体资源、Google Search Console 站点和 Bing Webmaster 站点,这些账号需已关联到该服务。
安装前请注意
该服务器为非官方,且未声明身份验证,需考虑其可访问的分析数据范围及端点运营方。marketing_manage_surface 使用 action='update' 会持久化修改选择器,影响后续分析映射。报表会暴露已连接媒体资源的流量、收入和转化数据。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Google Analytics (unofficial),将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/com.safe-mcp%2Fgoogle-analytics-unofficial/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "google-analytics-unofficial": {
      "type": "http",
      "url": "https://api.safe-mcp.com/mcp"
    }
  }
}

工具

5

marketing_get_sources

Discover marketing data sources

Lists connected and missing GA4, Google Analytics properties, property IDs, web streams, app streams, measurement IDs, Firebase app IDs, Google Search Console sites, Bing Webmaster sites, and current analysis surface mappings. Use this before reporting when property/site selectors are unknown.

输入参数sourcessurfaceId

marketing_get_catalog

List supported marketing reporting sources, metrics, and dimensions

Use this when the user wants to discover the canonical marketing reporting graph, available sources, supported metrics, supported dimensions, or which connectors are live today. Each source also reports a `passthrough` field describing whether native fields beyond the curated list are accepted (GA4 accepts any native dimension/metric; Search Console accepts any native dimension; Bing is limited to the curated fields). Do not use this for GA4 account discovery or data retrieval.

输入参数source

marketing_get_report

Get holistic marketing report data

Primary reporting tool for a given GA4 property or site. Use for totals, trends, and breakdowns by dimension across GA4 website traffic and app analytics, Google Search Console site traffic, and Bing Webmaster — including last-30-days summaries, revenue, leads, sessions, users, engagement/time-on-page (average_session_duration, user_engagement_duration), and period-over-period comparisons. Drill deep: GA4 supports up to 9 grouped dimensions (date/hour, geo, device/browser/OS, source/medium/channel, landing_page/page_path, etc.). Defaults to all mapped connected sources merged into one standardized view, aligned on the shared grain (typically landing_page) so a page row blends GA4 sessions+engagement with Search Console/Bing clicks/impressions/CTR/position; per-source detail (e.g. full query lists) stays in sourceSections. Note GA4 has no `query` dimension and Search Console/Bing have no sessions/engagement, so those cannot share one row — query is a Search Console/Bing breakdown. Narrow with sources or sourceMode='single'. Any GA4 dimension/metric name not in the catalog is passed through to the GA4 API automatically; metricMode='source_native' forces a pure GA4-native report. Pass one date range for a single window or two date ranges for period-over-period comparison.

输入参数appsitelimitoffsetsourcemaxRowsmetrics必填siteUrlsourcesorderByspageSizeproperty另有 15 个

marketing_get_funnel

Get marketing funnel data

Use for ordered conversion-step analysis: GA4 ordered_steps step funnels (e.g. session_start → add_to_cart → purchase) and cross-source holistic_bundle landing-page funnels joining GA4, Google Search Console, and Bing Webmaster. Covers funnel drop-off between steps (e.g. from landing on the site to adding to cart to purchasing), conversion paths, and acquisition-to-conversion context. Pass one date range for a single window or two date ranges for period-over-period comparison.

输入参数apptype必填limitfunnelpropertysurfaceIddateRanges必填propertyIdappStreamIdbingSiteUrlga4PropertyIdfunnelBreakdown另有 4 个

marketing_manage_surface

Get or update analysis surface mappings

Gets or updates persisted selectors for a website/app analysis surface. Use action='get' to inspect mappings and action='update' to persist GA4, Search Console, or Bing Webmaster selectors.

输入参数nameaction必填selectorssurfaceIdmainDomainselectorSets

版本历史

1
  1. v1.0.0最新Sep 16, 2026

评分

已满足适用检查项的 83%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分

    请声明包含 README 的 GitHub 仓库,或在 OAuth 受保护资源元数据中提供 resource_documentation。

  • 许可证不适用

    托管服务按其提供方的条款使用,因此这里不要求许可证。此检查项不计入百分比。

其他 Safe-Mcp 集成