
googleanalytics/google-analytics-mcp
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
このリポジトリには、Google AnalyticsのAPIと連携するローカルMCPサーバーのソースコードが含まれています。
概要
このリポジトリには、Google AnalyticsのAPIと連携するローカルMCPサーバーのソースコードが含まれています。 Discordの-analytics-mcpチャンネルで🤖ディスカッションに参加し、質問をしてください。 このサーバーはGoogle Analytics Admin APIおよびGoogle Analytics Data APIを使用し、LLMで使用するための複数のツールを提供しています。 - get_account_summaries:ユーザーのGoogle Analyticsアカウントやプロパティに関する情報を取得します。- get_property_details:プロパティの詳細を返します。- list_google_ads_links:物件のGoogle広告アカウントへのリンクリストを返します。 - run_report:Data APIを使ってGoogle Analyticsレポートを実行します。- run_funnel_report:Data APIを使ってGoogle Analyticsファネルレポートを実行します。- get_custom_dimensions_and_metrics:特定のプロパティのカスタム寸法と指標を取得します。 - run_realtime_report:Data APIを用いてGoogleアナリティクスのリアルタイムレポートを実行します。
概要(AI 翻訳)
このリポジトリにはローカルを実行するためのソースコードが含まれています 以下のAPIとやり取りするMCPサーバー Googleアナリティクス。
議論に参加して質問をしてください。 🤖 -analytics-mcp channel Discordで。
道具 🛠️
サーバーは Google Analytics 管理API および Google Analytics Data API いくつかの LLMで使うためのツール。
アカウントおよび不動産情報を🟠取得
get_account_summaries:ユーザーのGoogle情報を取得する 分析、アカウントやプロパティ。get_property_details:プロパティの詳細を返します。list_google_ads_links:Google広告アカウントへのリンク一覧を返します。 物件です。list_property_annotations:プロパティの注釈を返します。create_property_annotation:プロパティの注釈を作成する(必要)--allow-writeフラグとanalytics.editスコープを通過)。
コアレポート📙を実行しろ
run_report:Data APIを使ってGoogle Analyticsレポートを実行します。run_funnel_report:Data APIを使ってGoogleアナリティクスのファネルレポートを実行します。get_custom_dimensions_and_metrics:カスタム寸法を取得し、 特定の物件の指標です。
リアルタイムレポート⏳を実行
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
Google Analytics MCP Server (Experimental)
This repo contains the source code for running a local MCP server that interacts with APIs for Google Analytics.
Join the discussion and ask questions in the 🤖-analytics-mcp channel on Discord.
Tools 🛠️
The server uses the Google Analytics Admin API and Google Analytics Data API to provide several Tools for use with LLMs.
Retrieve account and property information 🟠
get_account_summaries: Retrieves information about the user’s Google Analytics accounts and properties.get_property_details: Returns details about a property.list_google_ads_links: Returns a list of links to Google Ads accounts for a property.list_property_annotations: Returns annotations for a property.create_property_annotation: Creates an annotation for a property (requires passing the--allow-writeflag and theanalytics.editscope).
Run core reports 📙
run_report: Runs a Google Analytics report using the Data API.run_funnel_report: Runs a Google Analytics funnel report using the Data API.get_custom_dimensions_and_metrics: Retrieves the custom dimensions and metrics for a specific property.
Run realtime reports ⏳
run_realtime_report: Runs a Google Analytics realtime report using the Data API.
Setup instructions 🔧
✨ Watch the Google Analytics MCP Setup Tutorial on YouTube for a step-by-step walkthrough of these instructions.
Setup involves the following steps:
- Configure Python.
インストール
This server does not publish a one-line install command.
Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →設定
{
"mcpServers": {
"analytics-mcp": {
"command": "pipx",
"args": ["run", "analytics-mcp"],
"env": {
"GOOGLE_APPLICATION_CREDENTIALS": "PATH_TO_CREDENTIALS_JSON",
"GOOGLE_CLOUD_PROJECT": "YOUR_PROJECT_ID"
}
}
}
}