Google Analytics Data API MCP Server
Model Context Protocol (MCP) サーバーを使用して、Google Analytics Data APIにアクセスするためのインターフェースを提供します。
機能
このMCPサーバーは、Google Analytics Data APIの主要な機能にアクセスするためのツールとリソースを提供します:
ツール
- get_report: 指定した日付範囲、メトリクス、ディメンションに基づいてレポートを取得します
- get_realtime_data: リアルタイムデータを取得します
リソース
- ga4://property/{propertyId}/metadata: Google Analyticsプロパティのメタデータにアクセスします
セットアップ
前提条件
- Google Cloudプロジェクトを作成し、Analytics Data APIを有効にします
- サービスアカウントを作成し、認証情報JSONファイルをダウンロードします
- サービスアカウントにGA4プロパティへの適切なアクセス権を付与します
詳細なセットアップ手順については、セットアップガイドを参照してください。
インストール
環境変数の設定
以下の環境変数を設定する必要があります:
使用方法
サーバーの起動
または、提供されているスクリプトを使用することもできます:
Claude Desktopでの設定
Claude Desktopの設定ファイルに以下を追加します:
詳細な設定例については、claude-desktop-config-sample.jsonを参照してください。
ツールの使用例
レポートの取得
リアルタイムデータの取得
リソースの使用例
使用例
Claudeでの使用例については、Claude使用例を参照してください。
ライセンス
MIT
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Provides an interface to access Google Analytics Data API through Model Context Protocol (MCP), allowing users to retrieve reports and realtime data from Google Analytics 4 properties.
Related MCP Servers
- -securityAlicense-qualityAn MCP server implementation for accessing Google Analytics 4 (GA4) data, built using the Model Context Protocol TypeScript SDK.Last updated -22TypeScriptMIT License
- -securityFlicense-qualityA specialized Model Context Protocol (MCP) server that integrates Google services (Gmail, Calendar, etc.) into your AI workflows. This server enables seamless access to Google services through MCP, allowing AI agents to interact with Gmail, Google Calendar, and other Google services.Last updated -103TypeScript
- AsecurityAlicenseAqualityA Model Context Protocol (MCP) server that provides real-time access to financial market data through the free Alpha Vantage API. This server implements a standardized interface for retrieving stock quotes and company information.Last updated -530PythonMIT License
- -securityAlicense-qualityA Model Context Protocol (MCP) server that provides intelligent access to PowerPlatform/Dataverse entities and records. This tool offers context-aware assistance, entity exploration and metadata access.Last updated -4661JavaScriptMIT License