QuerySail: Google Analytics

com.querysail由 querysail.com 發布官方發布者v1.0.0更新於 Oct 24, 2026

Hosted, read-only Google Analytics 4 MCP: reports, period comparisons, realtime, custom fields.

發布方自己的服務:QuerySail: Google Search Console

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

概覽

AI 產生的概覽

託管的唯讀 Google Analytics 4 MCP 伺服器,讓助理用自然語言列出資源並產生流量、比較與即時報表。

可以做什麼
  • 列出已連結帳號可讀取的 GA4 資源,以及某個資源可查詢的維度、指標、自訂欄位與關鍵事件
  • 依日期、管道、來源、頁面、國家或裝置等維度執行報表,涵蓋使用者、工作階段、瀏覽量、互動、事件、關鍵事件與收益,並支援篩選
  • 比較兩個期間,列出成長或衰退最多的管道、來源、頁面或國家
  • 查看最近 30 分鐘內的活躍使用者、瀏覽量與事件,可依國家、城市、裝置、頁面或事件細分
適用情境
適合想讓助理直接回答自家網站或應用程式分析問題(流量、互動、轉換、期間變化或即時活動),而不必自行撰寫 Google Analytics API 查詢的情況。
執行需求
遠端 Streamable HTTP 端點,使用 OAuth 2.1 登入;無需安裝、無需 Google Cloud 專案或 API 金鑰。需要 QuerySail 帳號並在 Account → Connections 連結 Google Analytics,7 天試用期後需付費訂閱。僅支援本機指令的用戶端需安裝 Node.js 以使用 mcp-remote 橋接。
安裝前請注意
需登入 QuerySail 並透過 analytics.readonly 範圍授予 Google Analytics 讀取權限,更新權杖由服務商加密儲存。報表向 Google 取得並最多快取 15 分鐘,分析資料會經過第三方託管服務。試用期後需付費訂閱。所有工具皆為唯讀,無法修改 GA4 設定;不支援 Universal Analytics,Google 可能對部分報表進行取樣或門檻處理。

安裝

在 SourceWeft 中

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

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

交給代理程式安裝

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

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

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

其他 MCP 客戶端

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

{
  "mcpServers": {
    "querysail-google-analytics": {
      "type": "http",
      "url": "https://mcp.querysail.com/ga4/mcp"
    }
  }
}

README

QuerySail: Google Analytics MCP server

[QuerySail logo]

QuerySail is a hosted MCP server for Google Analytics 4. Connect it to ChatGPT, Claude, Codex, Cursor or VS Code, sign in, connect your Google account once, and ask about your traffic, engagement and conversions in plain language. There is nothing to install, no Google Cloud project and no API key to paste.

This repository holds the public listing files (MCP Registry server.json, a Claude Code plugin, client configs). The service itself is hosted at querysail.com; its source is not published here.

Tools

All tools are read-only. QuerySail cannot create or edit properties, data streams, key events, audiences or any other Google Analytics setting.

ToolWhat it does
list_propertiesLists the Google Analytics 4 properties your connected Google accounts can read, with exact property IDs and their Analytics accounts.
list_fieldsLists the dimensions and metrics a property can report on, including its custom dimensions, custom metrics and key events.
run_reportUsers, sessions, views, engagement, events, key events, revenue and any other Data API metric, broken down by date, channel, source/medium, landing page, page, country, device, event and more, with filters.
compare_reportCompares two periods (previous period, same weekdays a year earlier, or custom dates) and lists the channels, sources, pages or countries that gained or lost the most.
run_realtime_reportActive users, views and events in the last 30 minutes, by country, city, device, page or event.

Example prompts

  • How many users and sessions did my site have in the last 28 days?
  • Which channels brought the most sessions last month, and how did that change from the month before?
  • What are my top landing pages by key events?
  • How many people are on the site right now, and from which countries?
  • Compare organic search sessions with the same weeks last year.

Setup

You need a QuerySail account with Google Analytics connected: sign up at https://querysail.com and choose Connect Google Analytics under Account → Connections. Each client below opens a browser window to sign in the first time.

Claude Code

bash
claude mcp add --transport http --scope user querysail-ga4 https://mcp.querysail.com/ga4/mcp

Then run /mcp, choose querysail-ga4 and sign in. Or install it as a plugin, which also adds a Google Analytics analysis skill:

text
/plugin marketplace add querysail/querysail-ga4/plugin install querysail-ga4@querysail-ga4

Claude Desktop and claude.ai

Open Customize → Connectors, select + Add → Add custom connector, name it QuerySail GA4 and paste https://mcp.querysail.com/ga4/mcp as the server URL.

ChatGPT

Turn on Developer mode under Settings → Security and login, go to chatgpt.com/plugins, select the plus button and paste the endpoint as the connection URL.

Codex

bash
codex mcp add querysail-ga4 --url https://mcp.querysail.com/ga4/mcpcodex mcp login querysail-ga4

Cursor

Add to ~/.cursor/mcp.json:

json
{  "mcpServers": {    "querysail-ga4": { "url": "https://mcp.querysail.com/ga4/mcp" }  }}

VS Code

Run MCP: Add Server, choose HTTP and paste the endpoint, or add to mcp.json:

json
{  "servers": {    "querysail-ga4": { "type": "http", "url": "https://mcp.querysail.com/ga4/mcp" }  }}

Cline

Open MCP Servers → Remote Servers, name it querysail-ga4, paste the endpoint, choose Streamable HTTP and click Add Server. Or add to cline_mcp_settings.json:

json
{  "mcpServers": {    "querysail-ga4": { "type": "streamableHttp", "url": "https://mcp.querysail.com/ga4/mcp" }  }}

Sign in with your QuerySail account when Cline asks.

Clients that only run local commands

Use the mcp-remote bridge (needs Node.js):

json
{  "mcpServers": {    "querysail-ga4": { "command": "npx", "args": ["mcp-remote", "https://mcp.querysail.com/ga4/mcp"] }  }}

Agent skill

The querysail-google-analytics skill tells coding agents such as Claude Code, Codex, Cursor and OpenCode which QuerySail tool to call for each question and how to report the numbers. Install it with the skills CLI (needs Node.js):

bash
npx skills add https://querysail.com --skill querysail-google-analytics

Data and limits

  • Google access uses the analytics.readonly scope, granted separately from Search Console. Refresh tokens are encrypted at rest. You can hide properties, disconnect Google or delete your account at any time.
  • Reports are fetched from Google when asked and cached for at most 15 minutes; realtime reports are not cached. Universal Analytics properties are not supported.
  • Google may apply thresholding or sampling to some reports; QuerySail passes those flags on to your assistant. Google's per-property API quotas apply.
  • Privacy: https://querysail.com/privacy · Terms: https://querysail.com/terms · Support: https://querysail.com/support

License

The files in this repository are MIT licensed. The QuerySail service is subject to its terms.

來源:README.md,提交 d496671

工具

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

版本歷史

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

評分

已滿足適用檢查項的 85%

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

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

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

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

其他 Querysail 整合