https://analytics-mcp.moonstream.xyz/sse
https://analytics-mcp.moonstream.xyz/mcp
https://analytics-mcp.moonstream.xyz/health
# Download and install nvm:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash
# in lieu of restarting the shell
\. "$HOME/.nvm/nvm.sh"
# Download and install Node.js:
nvm install 22
# Verify the Node.js version:
node -v # Should print "v22.18.0".
nvm current # Should print "v22.18.0".
# Verify npm version:
npm -v # Should print "10.9.3".
{
"mcpServers": {
"analytics": {
"command": "npx",
"args": ["mcp-remote", "https://analytics-mcp.moonstream.xyz/sse"]
}
}
}
Replace all REPLACE_WITH_* placeholders with your actual values:
<property>
<property-info>
<project-name>REPLACE_WITH_PROJECT_NAME</project-name>
<ga4-property-id>REPLACE_WITH_GA4_PROPERTY_ID</ga4-property-id>
<search-console-url>REPLACE_WITH_SEARCH_CONSOLE_URL</search-console-url>
</property-info>
<service-key type="analytics">
{
"type": "service_account",
"project_id": "REPLACE_WITH_GCP_PROJECT_ID",
"private_key_id": "REPLACE_WITH_PRIVATE_KEY_ID",
"private_key": "-----BEGIN PRIVATE KEY-----\nREPLACE_WITH_PRIVATE_KEY_CONTENT\n-----END PRIVATE KEY-----\n",
"client_email": "REPLACE_WITH_SERVICE_ACCOUNT_EMAIL",
"client_id": "REPLACE_WITH_CLIENT_ID",
"auth_uri": "https://accounts.google.com/o/oauth2/auth",
"token_uri": "https://oauth2.googleapis.com/token",
"auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
"client_x509_cert_url": "REPLACE_WITH_CLIENT_CERT_URL",
"universe_domain": "googleapis.com"
}
</service-key>
<service-key type="search-console">
{
"type": "service_account",
"project_id": "REPLACE_WITH_GCP_PROJECT_ID",
"private_key_id": "REPLACE_WITH_PRIVATE_KEY_ID",
"private_key": "-----BEGIN PRIVATE KEY-----\nREPLACE_WITH_PRIVATE_KEY_CONTENT\n-----END PRIVATE KEY-----\n",
"client_email": "REPLACE_WITH_SERVICE_ACCOUNT_EMAIL",
"client_id": "REPLACE_WITH_CLIENT_ID",
"auth_uri": "https://accounts.google.com/o/oauth2/auth",
"token_uri": "https://oauth2.googleapis.com/token",
"auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
"client_x509_cert_url": "REPLACE_WITH_CLIENT_CERT_URL",
"universe_domain": "googleapis.com"
}
</service-key>
</property>
Before using this template, ensure you have completed these steps:
REPLACE_WITH_* placeholders with actual valuesFirst, have Claude show you what tools and features are available for Google Analytics and Search Console integration. This helps you understand what data you can access and what operations are supported.
Example Prompt:
Can you please explore your available Google Search Console and Analytics tools? I would like to get a sense of their capabilities.
Provide Claude with completed XML templates containing your service account credentials and property information. You can configure multiple properties at once by providing multiple <property> blocks.
Example Prompt:
Please configure the following properties for me:
<property>
<property-info>
<project-name>My Website Name</project-name>
<ga4-property-id>123456789</ga4-property-id>
<search-console-url>sc-domain:mywebsite.com</search-console-url>
</property-info>
<service-key type="analytics">
{
[Paste your GA4 service account JSON here]
}
</service-key>
<service-key type="search-console">
{
[Paste your Search Console service account JSON here]
}
</service-key>
</property>
After configuration, Claude should report which properties were successfully added and which (if any) failed. Address any permission or setup issues before proceeding.
Example Prompt (if needed):
Can you check which properties were successfully configured and list any that failed with their error messages?
Once properties are configured, have Claude demonstrate the available data by running test queries. This verifies the integration is working and shows you what metrics and dimensions are accessible.
Example Prompt:
Please explore the available Analytics and Search Console data sources for [Your Property Name]. Can you show me some sample data from the last 30 days to verify everything is working?
After setup verification, you can request specific data analyses, comparisons, or custom date ranges.
Example Prompts:
Show me the top 20 search queries driving traffic to my site in the last 7 days.
What are my top performing pages by sessions this month, and what's their average engagement time?
Compare organic search performance between this month and last month.
Before starting, ensure you have:
<property> blocks for each website/domainThis server provides the following MCP tools for Google Analytics integration:
https://analytics-mcp.moonstream.xyz/sse{
"mcpServers": {
"analytics": {
"command": "npx",
"args": ["mcp-remote", "https://analytics-mcp.moonstream.xyz/sse"]
}
}
}