Google Analytics 4 MCP by InsightfulPipe

com.insightfulpipe由 insightfulpipe.com 發布v1.0.0更新於 Nov 4, 2026

Hosted Google Analytics 4 MCP server, with each action switched on or off per account.

已驗證Streamable HTTP可網頁執行資料與分析商業與電商

概覽

AI 產生的概覽

託管的 Google Analytics 4 MCP 伺服器,讓助理查詢 GA4 流量、使用者行為與電商資料,並管理資源、資料串流和設定。

可以做什麼
  • 查詢流量來源、頁面、事件、電商、地理、技術和使用者客層等報表,並執行自訂 runReport 查詢
  • 讀取資源設定:資源、資料串流、自訂維度與指標、關鍵事件、目標對象、管道群組、BigQuery 與 Google Ads 連結、資料保留和加強型評估設定
  • 建立和更新資源、資料串流、自訂維度與指標、關鍵事件、目標對象、管道群組、各類連結及保留設定
  • 刪除或封存資料串流、連結、關鍵事件、管道群組和自訂維度,並將資源移至垃圾桶
  • 管理 Measurement Protocol 密鑰,包括讀取密鑰值以及建立或撤銷密鑰
適用情境
適合行銷人員、網站經營者與分析人員用自然語言詢問 GA4 的流量、轉換和營收狀況,或讓助理在不開啟 GA4 介面的情況下調整資源設定。
執行需求
遠端 streamable HTTP 端點,不需本機套件。需要 InsightfulPipe 帳號並透過 OAuth 以 Google 登入,且需付費的 InsightfulPipe 方案(提供試用)。可在 Claude、ChatGPT 開發人員模式、Claude Code 或 Cursor 中作為自訂連接器加入。
安裝前請注意
此連線為讀寫模式:62 個動作中有 36 個會變更或刪除 GA4 設定,包括刪除資料串流、連結、關鍵事件以及將資源移至垃圾桶。破壞性動作預設關閉,可依帳號開啟,因此除非確實需要寫入,建議維持唯讀。有一個動作會回傳 Measurement Protocol 密鑰值,可用來向資料串流傳送事件。分析資料會經過第三方託管服務。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Google Analytics 4 MCP by InsightfulPipe,將其新增到工作區。
  2. 連接 所需的 憑證。它們會被私密儲存,絕不會在公開頁面上展示。
  3. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/com.insightfulpipe%2Fgoogle-analytics/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。 客戶端會在首次連接時完成 OAuth 登入。

{
  "mcpServers": {
    "google-analytics-4-by-insightfulpipe": {
      "type": "http",
      "url": "https://google-analytics.insightfulmcp.com/"
    }
  }
}

README

Google Analytics 4 MCP Server (GA4) by Insightful Pipe

[MCP Compatible] [Insightful Pipe] [License]

Connect Google Analytics 4 to AI assistants for website analytics and property management.

Part of the Insightful Pipe MCP Server Collection — Connect Google Analytics 4 to Claude, ChatGPT, Cursor, and other AI assistants using the Model Context Protocol. Query website traffic, analyze user behavior, and get AI-driven insights conversationally.

[Explore All MCP Servers]

[Google Analytics MCP Server]

MCP Server URL

https://google-analytics.insightfulmcp.com/

What is Google Analytics 4 MCP?

Google Analytics 4 MCP is a remote Model Context Protocol server that enables AI assistants to query and analyze your GA4 data. This powerful integration allows you to:

  • Ask questions about website traffic in natural language
  • Analyze user behavior, conversions, and engagement
  • Generate custom reports through conversation
  • Get AI-powered insights and recommendations
  • Access traffic sources, pages, events, and demographics

Installation

Claude

  1. Copy the MCP Server URL: https://google-analytics.insightfulmcp.com/
  2. Open Claude Connectors Settings
  3. Scroll to the bottom and click Add custom connector
  4. Paste the URL and click Add
  5. Click Connect and sign in to InsightfulPipe if asked. Claude then lists the connector as connected.

ChatGPT

Custom MCP servers are added through ChatGPT's Developer mode. Availability depends on your ChatGPT plan, and workspace admins may need to allow it.

  1. Turn on Developer mode in ChatGPT settings
  2. Create a new app for a remote MCP server and paste the URL: https://google-analytics.insightfulmcp.com/
  3. Sign in to InsightfulPipe if asked. The connection finishes as soon as you are signed in.

See OpenAI's guide: Developer mode and MCP apps in ChatGPT

Claude Code

bash
claude mcp add --transport http google-analytics https://google-analytics.insightfulmcp.com/

Cursor

Add the server to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (one project):

json
{  "mcpServers": {    "google-analytics": {      "url": "https://google-analytics.insightfulmcp.com/"    }  }}

When Cursor shows Needs authentication, click Connect and sign in to InsightfulPipe if asked.

Available Actions

62 actions: 26 read, 36 write.

Read Actions (26)

Show all 26 read actions
ActionDescription
ecommerceE-commerce performance data including transactions, revenue, and product metrics
eventsEvent tracking data including event names, counts, and user engagement
geoGeographic performance data including country, region, city, and language
get_audienceGet one audience, including its filter clauses
get_bigquery_linkGet one BigQuery export link
get_channel_groupGet one channel group, including its grouping rules
get_custom_dimensionGet a single GA4 custom dimension by id
get_custom_metricGet a single GA4 custom metric by id
get_data_retention_settingsRead a GA4 property's event and user data retention settings
get_data_streamFetch one data stream, including its Measurement ID
get_enhanced_measurement_settingsRead the enhanced measurement settings of a web data stream
get_key_eventGet a single GA4 key event by id
get_propertyFetch a GA4 property's settings (name, time zone, currency, industry)
get_reportExecute GA4 runReport with arbitrary metrics and dimensions
list_audiencesList the audiences on a property
list_bigquery_linksList the BigQuery export links on a property
list_channel_groupsList the channel groups on a property
list_custom_dimensionsList the GA4 custom dimensions on a property
list_custom_metricsList the GA4 custom metrics on a property
list_data_streamsList a GA4 property's data streams (web, Android, iOS)
list_google_ads_linksList the Google Ads accounts linked to a GA4 property
list_key_eventsList the GA4 key events (conversions) on a property
pagesPage-level performance data including views, engagement, and user behavior
techTechnology breakdown data including browser, device, OS, and platform
traffic_sourcesTraffic acquisition data including source, medium, campaign, and channel groupings
user_demographicsUser demographic data including age, gender, interests, and user type

Write Actions (36)

Show all 36 write actions
ActionDescription
acknowledge_user_data_collectionAttest the User Data Collection acknowledgement on a property, which GA4 requires before Measurement Protocol secrets can be created
archive_audienceArchive an audience so it stops collecting members
archive_custom_dimensionArchive a GA4 custom dimension (frees a slot; not a hard delete)
archive_custom_metricArchive a GA4 custom metric (frees a slot; not a hard delete)
create_audienceCreate an audience from a set of filter clauses
create_bigquery_linkLink a GA4 property to a BigQuery project for raw event export
create_channel_groupCreate a custom channel group from grouping rules
create_custom_dimensionCreate a GA4 custom dimension from an event parameter
create_custom_metricCreate a GA4 custom metric from an event parameter
create_data_streamCreate a web, Android or iOS data stream on a GA4 property
create_google_ads_linkLink a Google Ads account to a GA4 property
create_key_eventCreate a GA4 key event (conversion) for an event name
create_measurement_protocol_secretCreate a Measurement Protocol secret so server-side events can be sent to a stream
create_propertyCreate a new GA4 property under an account
delete_bigquery_linkRemove a BigQuery export link
delete_channel_groupDelete a custom channel group
delete_data_streamDelete a data stream from a GA4 property
delete_google_ads_linkUnlink a Google Ads account from a GA4 property
delete_key_eventDelete a GA4 key event (conversion)
delete_measurement_protocol_secretDelete a Measurement Protocol secret, revoking server-side sends that use it
delete_propertySoft-delete (trash) the connected GA4 property
get_measurement_protocol_secretGet one Measurement Protocol secret, including its secret value
list_accountsList the GA4 accounts this connection can administer
list_measurement_protocol_secretsList the Measurement Protocol secrets on a data stream
update_audienceRename an audience or change its description
update_bigquery_linkChange what a BigQuery export link exports
update_channel_groupChange a channel group's name, description, rules, or primary flag
update_custom_dimensionUpdate a GA4 custom dimension's display name / description
update_custom_metricUpdate a GA4 custom metric's display name / description
update_data_retention_settingsSet how long a GA4 property retains event and user data
update_data_streamUpdate a data stream's display name or default URI
update_enhanced_measurement_settingsTurn enhanced measurement events (scrolls, outbound clicks, site search, video, downloads) on or off
update_google_ads_linkUpdate a Google Ads link's personalized-advertising setting
update_key_eventUpdate a GA4 key event's counting method or default value
update_measurement_protocol_secretRename a Measurement Protocol secret
update_propertyUpdate a GA4 property's display name, time zone, currency or industry

Control What Your AI Can Do

You decide what AI agents can do with each connected account:

  • Turn individual actions on or off for every connected account, so agents only see the actions you allow.
  • Connect as Read-only or Read & Write. A read-only connection can only enable read actions.
  • Destructive actions stay off by default. Actions such as deletes are disabled until an admin enables them.
  • Team access per account. Restricted team members only use the accounts they are granted, with the read actions enabled on them.

Usage Examples

Traffic Analysis

"Show me website traffic for the last 30 days compared to the previous period"

Acquisition Insights

"Which traffic sources have the highest conversion rate?"

Page Performance

"What are my top 10 landing pages by engagement rate?"

E-commerce Analytics

"What's our revenue trend this quarter and which products are selling best?"

User Behavior

"How do mobile users behave differently from desktop users?"

Custom Reports

"Run a report showing sessions by country and device category"

Supported Metrics

MetricDescription
UsersUnique visitors to your site
SessionsTotal website visits
PageviewsTotal page views
Engagement RatePercentage of engaged sessions
Average Session DurationTime spent on site
Bounce RateSingle-page sessions
ConversionsGoal completions
RevenueE-commerce revenue (if applicable)

Why Google Analytics 4 MCP?

For Digital Marketers

  • Instant answers - No more complex report building
  • Natural language - Ask questions like you're talking to an analyst
  • Cross-channel insights - Combine with ad platform data

For Website Owners

  • Understand your audience - Deep user behavior insights
  • Track goals - Monitor what matters to your business
  • Identify opportunities - AI-powered recommendations

For Analysts

  • Faster exploration - Query data conversationally
  • Automated insights - AI surfaces important patterns
  • Flexible reporting - Generate any report through chat

Security & Privacy

  • Official Google Analytics API - Direct integration with Google's API
  • OAuth 2.0 - Secure Google authentication
  • Data encryption - Secure data transmission

Pricing

The Google Analytics 4 MCP server is included in every InsightfulPipe plan, together with all other MCP servers and the CLI. Plans start at $29.99/month, and you can try it for 7 days. See insightfulpipe.com/pricing for current plans.

Ready-Made Skills and Prompts

Explore More MCP Servers by Insightful Pipe

Visit insightfulpipe.com/mcp-servers to discover our full collection of MCP servers for marketing and analytics.

Google MCP Servers

SEO & Performance MCP Servers

View All MCP Servers →

Resources

Support


Insightful Pipe — AI-powered marketing analytics through MCP servers. Explore all integrations →

License

MIT License - see LICENSE for details.

來源:README.md,提交 3b64f49

工具

0
該伺服器需要登入,因此 SourceWeft 無法在沒有帳號的情況下讀取其工具,也未收錄。已連接帳號所能看到的內容可能因帳號及其權限而異。

版本歷史

1
  1. v1.0.0最新Oct 21, 2026

評分

已滿足適用檢查項的 85%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分