@principle-c/mcp-googleanalytics4
v0.3.1
Published
Google Analytics 4の管理を行うためのMCPサーバー
Readme
mcp-googleanalytics4 MCP Server
Google Analytics 4の管理を行うためのMCPサーバー。アカウント・プロパティ一覧の表示と、標準レポートの出力、アカウント・プロパティのユーザー管理を行うことができます。
An MCP server for managing Google Analytics 4. It allows you to display account and property lists, generate standard reports, and manage users for accounts and properties.
Features
Resources
This implementation uses the Google Analytics Admin API and Data API. You need to enable the corresponding API in the API Console and obtain an OAuth2 authentication token.
The required scopes are as follows:
- https://www.googleapis.com/auth/analytics
- https://www.googleapis.com/auth/analytics.readonly
- https://www.googleapis.com/auth/analytics.edit
- https://www.googleapis.com/auth/analytics.manage.users
- https://www.googleapis.com/auth/analytics.manage.users.readonly
Also, Node.js must be installed on the computer where you will run this. Please refer to here for Node.js installation instructions.
Tools
listAccountSummariesTool- List google analytics account summaries with paginationlistPropertyAccessBindingsTool- List google analytics property permission with paginationlistAccountAccessBindingsTool- List google analytics account permission with paginationcreatePropertyAccessBindingTool- Create google analytics property permissioncreateAccountAccessBindingTool- Create google analytics account permissiondeletePropertyAccessBindingTool- Delete google analytics property permissiondeleteAccountAccessBindingTool- Delete google analytics account permissiongetPropertyDetailTool- Get a google analytics property descriptionrunReportTool- Get a report data on a google analytics property
MCP Server Setting
{
"mcpServers": {
"mcp-googleanalytics4": {
"command": "npx",
"args": [
"-y",
"@principle-c/mcp-googleanalytics4"
],
"env": {
"GOOGLE_CLIENT_ID": "[[REPLACE_WITH_YOUR_CLIENT_ID]]",
"GOOGLE_CLIENT_SECRET": "[[REPLACE_WITH_YOUR_CLIENT_SECRET]]",
"GOOGLE_REDIRECT_URI": "[[REPLACE_WITH_YOUR_REDIRECT_URI]]",
"GOOGLE_REFRESH_TOKEN": "[[REPLACE_WITH_YOUR_REFRESH_TOKEN]]"
}
}
}
}