Analytics MCP
Provides access to Google Analytics 4 (GA4) data via BigQuery, enabling analysis and summarization of analytics events through the analytics agent.
Enables analytics and summarization of PayPal payment performance data through the analytics agent and automated workflows.
Provides analytics tools for Stripe payment data, enabling summarization and analysis of Stripe performance metrics through the analytics agent and workflows.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Analytics MCPshow me last month's revenue from Stripe and PayPal"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Analytics MCP
Mastra-based agents and workflows for weather insights and payment analytics. The project sets up two agents (weather and Stripe/PayPal analytics), automated workflows, and an MCP server that exposes analytics tools.
Features
Weather agent & workflow: uses OpenRouter LLM + Open-Meteo for weather-driven activity suggestions.
Analytics agent & workflow: summarizes Stripe, PayPal, and GA4 (BigQuery) performance with guardrails to avoid hallucinations.
MCP server: exports analytics tools (Stripe) and the analytics agent for integration with other MCP clients.
Utilities: currency conversion (exchangerate.host), time zone info, and LibSQL-backed memory.
Related MCP server: stripe-analytics-mcp
Prerequisites
Node.js >= 20.9
NPM
API credentials: OpenRouter, Stripe, PayPal, and a GCP service account with access to the BigQuery events table.
Environment setup
Copy the sample env:
cp .env.example .env.development(or.env.staging/.env.production).Fill the variables you need; the file
.env.<APP_ENV>is picked based onAPP_ENV(defaultdevelopment).Put
GOOGLE_CLOUD_CREDENTIALSas a single-line service account JSON; replace newline characters in the private key with\\n.
Key variables:
APP_ENV: selects.env.<APP_ENV>.OpenRouter:
OPENROUTER_API_KEY,OPENROUTER_MODEL_DEFAULT, optional overrides for agent/scorer.Stripe:
STRIPE_API_KEY,STRIPE_BASE_URL(optional; defaults to Stripe API).PayPal:
PAYPAL_CLIENT_ID,PAYPAL_CLIENT_SECRET,PAYPAL_BASE_URL(sandbox/production).FX:
FX_BASE_URL(default exchangerate.host).BigQuery GA4:
GOOGLE_CLOUD_PROJECT_ID,GOOGLE_CLOUD_CREDENTIALS,BIGQUERY_EVENTS_TABLE,BIGQUERY_DEV_EVENTS_TABLE.
Running
Install deps:
npm installMastra dev mode:
npm run devBuild:
npm run buildAfter build, start:
npm start
Note: observability storage defaults to :memory:; adjust in src/mastra/index.ts if you need persistence.
This server cannot be deployed
Maintenance
Related MCP Connectors
Read-only SaaS business intelligence from GA4, Stripe, and Google Search Console.
Ask questions across Shopify, Klaviyo, GA4 and 20+ e-commerce sources in plain English.
Connect your ads, shop, analytics, social, CRM and finance platforms once, then let Claude, ChatGPT, Cursor or any MCP client read, join and explain your numbers. Public statistics from the World Bank, IMF, Eurostat, OECD, WHO and SEC filings come as context, searchable and chartable from the same tools. Read-only by design, every number carries its source.
- mcp-serverOAuthco.flyweel
Access Google & Meta Ads data via AI. Analyse campaign performance in seconds.
Related MCP Servers
AlicenseNot gradedqualityDmaintenanceConnects e-commerce and marketing data sources like Shopify, GA4, Google Ads, and Meta Ads to AI assistants, enabling natural language queries about store performance, ad campaigns, and customer behavior.7 npm2MIT- AlicenseAqualityFmaintenanceProvides real-time Stripe subscription analytics including MRR, churn, failed payments, and expiring trials. Enables AI assistants to answer business health questions like 'How's my business doing?'8MIT

Prismofficial
AlicenseAqualityBmaintenanceIntelligence layer for AI that enables querying across revenue, errors, identity, and analytics layers in plain English, returning rendered charts and dashboards.1152 npmMIT- AlicenseNot gradedqualityCmaintenanceConnects to GA4, Mixpanel, PostHog and other analytics platforms, providing 9 tools for trend analysis, anomaly detection, funnel analysis, and more via natural language queries.1MIT