google-play-vitals-mcp
This MCP server lets AI assistants query Google Play Android Vitals for releases, crashes/ANRs, stack traces, metrics, anomalies, and version comparisons.
Discover accessible apps and active release tracks/versionCodes.
Search CRASH, ANR, or NON_FATAL issue clusters with AIP-160 filters.
Retrieve de-obfuscated stack traces, multi-device reports, and top ANR summaries.
Query ANR, crash, and startup trends; compare two versions and calculate improvement.
List metric anomalies and regression spikes.
Check credentials, dependencies, and environment readiness.
Use built-in prompts/resources for ANR triage, Baseline Profile verification, weekly reports, and status.
Enables analysis of Android app performance and stability data from Google Play, including crash and ANR tracking, release comparisons, anomaly detection, and metric trends.
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., "@google-play-vitals-mcp Get top ANR summary for the latest production version"
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.
Google Play Vitals MCP Server
Google Play Vitals MCP is a high-performance, token-efficient Model Context Protocol (MCP) server for the Google Play Developer Reporting API (Android Vitals).
Designed specifically for AI coding assistants and autonomous agents (Cursor, Claude Desktop, Claude Code, Codex, Windsurf, and Cline), it empowers AI to analyze Android production stability, diagnose ANRs (Application Not Responding), track crash trends, inspect de-obfuscated call stacks, and verify startup optimizations (such as AndroidX Baseline Profiles) with minimal context token consumption.
🌟 Key Highlights
Full-Spectrum Atomic Architecture: Complete, orthogonal coverage of Google Play Developer Reporting API endpoints (Viewer scope) — release track discovery, AIP-160 error cluster search, stack drilldown, and anomaly monitoring.
Autonomous Chained Workflows: Empowers AI agents to autonomously identify the active production release, retrieve top Crash/ANR issues, and drill down into de-obfuscated stack traces in a natural chain without hardcoded assumptions.
Token Economy by Design (Token Saver): Upstream Google Developer Reporting APIs return deeply nested, verbose Protobuf responses. Our built-in compression engine strips 80%+ redundant metadata and automatically reassembles raw frame data into clean, single-line standard Java stack traces (
at com.example.Foo.bar(Foo.java:42)).Version Comparative Analysis (
play_compare_versions): Quantifies release optimizations. Compare before-and-after versions (e.g. verifying ANR governance or Baseline Profile cold-start acceleration) with automated delta calculation and percentage improvement reporting.Universal & Production Decoupled: Zero proprietary hardcoding. Supports any Android package, dynamic runtime parameters, environment variables, Service Account JSON files, JSON strings, or Google Application Default Credentials (ADC).
Zero-Latency In-Memory Hot Cache: Built-in 5-minute LRU cache prevents accidental quota exhaustion during multi-step AI reasoning.
Broad Agent Compatibility: Works out of the box with Cursor, Claude Desktop, Claude Code, Windsurf, Codex, and standard MCP JSON-RPC 2.0 stdio clients.
Related MCP server: play-console-mcp
🛠️ MCP Tools Overview
1. Release & App Discovery
Tool Name | Type | Description |
| Release Discovery | Fetches active release tracks ( |
| App Discovery | Lists all Google Play applications accessible by the configured GCP Service Account. |
2. Error Issues & Stack Traces
Tool Name | Type | Description |
| Issue Search | Searches error clusters ( |
| Deep Drilldown | Fetches multi-device environmental samples and cleaned, de-obfuscated stack traces for an issue ID or resource name. |
| Quick Triage | One-shot aggregator for top ANR clusters and sample main-thread stack traces. |
| Raw Reports | Retrieves raw error reports and multi-device environment samples for an issue. |
3. Vitals Metrics & Analytics
Tool Name | Type | Description |
| Metrics | Queries historical daily trends and overall averages for |
| Analytics | Compares metrics between two app versions (e.g. baseline |
4. Monitoring & Diagnostics
Tool Name | Type | Description |
| Anomaly Monitor | Retrieves sudden metric spikes and regression alerts detected by Google Play algorithms. |
| Diagnostics | Self-tests Python dependencies, GCP Service Account key presence, and environment readiness. |
📝 MCP Prompts & Resources
Capability | Name / URI | Purpose |
Prompt |
| Interactive prompt guiding AI to perform root-cause triage and generate architectural fixes. |
Prompt |
| Automated audit prompt comparing release versions to quantify cold-start acceleration and ANR reductions. |
Prompt |
| Executive prompt generating a weekly Android stability markdown dashboard. |
Resource |
| Read-only JSON resource reporting connection health, credentials presence, and active configuration. |
🚀 Quick Start
1. Installation
Option A: Install via pip or uv
pip install google-play-vitals-mcp
# or
uv pip install google-play-vitals-mcpOption B: One-click Install via Smithery (Cursor / Windsurf / Claude)
npx -y @smithery/cli install google-play-vitals-mcp --client cursorOption C: Docker Container
docker run -i --rm -v ~/.config/gcp:/gcp -e GOOGLE_APPLICATION_CREDENTIALS=/gcp/key.json google-play-vitals-mcp2. Authentication & Credentials
Google Play Developer Reporting API requires enterprise authentication via a Google Cloud Service Account authorized with "View app quality data" read-only permission:
Option A: Google Cloud Service Account JSON Key (Standard)
Ask your Google Play Console administrator (Account Owner) for a Service Account JSON key with "View app quality data" read-only permission.
Set the environment variable:
export GOOGLE_APPLICATION_CREDENTIALS="/path/to/play_service_account.json"
Option B: CI/CD Plaintext JSON
export GOOGLE_PLAY_CREDENTIALS_JSON='{"type": "service_account", "project_id": "..."}'🤖 AI Client Integration Guides
1. Cursor
Add to your project's .cursor/mcp.json or global Cursor settings:
{
"mcpServers": {
"google-play-vitals": {
"command": "google-play-vitals-mcp",
"args": [],
"env": {
"GOOGLE_APPLICATION_CREDENTIALS": "/path/to/play_service_account.json",
"GOOGLE_PLAY_PACKAGE_NAME": "com.yourcompany.app"
}
}
}
}Note: You can also run with python -m google_play_vitals_mcp if installed in a specific virtual environment.
2. Claude Desktop
Add to your claude_desktop_config.json:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"google-play-vitals": {
"command": "google-play-vitals-mcp",
"env": {
"GOOGLE_APPLICATION_CREDENTIALS": "/path/to/play_service_account.json",
"GOOGLE_PLAY_PACKAGE_NAME": "com.yourcompany.app"
}
}
}
}3. Claude Code CLI
Add the MCP server directly via CLI:
claude mcp add google-play-vitals -- \
google-play-vitals-mcp \
--package-name com.yourcompany.app \
--credentials /path/to/play_service_account.json4. Windsurf
Add to ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"google-play-vitals": {
"command": "google-play-vitals-mcp",
"env": {
"GOOGLE_APPLICATION_CREDENTIALS": "/path/to/play_service_account.json",
"GOOGLE_PLAY_PACKAGE_NAME": "com.yourcompany.app"
}
}
}
}💡 Prompt Examples
Once configured, simply talk to your AI assistant:
"Find the top 10 Crashes and ANRs for our latest production release, along with de-obfuscated stack traces."
"Check Google Play Vitals connection status."
"Analyze the top ANR clusters in production right now and show me the problematic stack traces."
"Show me the daily ANR rate and slow startup rate for the last 14 days."
"Compare version 204000 against version 203000 to verify if our Baseline Profile and ANR fixes improved cold startup and reduced ANRs."
"Inspect issue apps/com.example/errorIssues/123456 and retrieve the raw device reports."
💻 CLI Commands
The package includes a built-in CLI:
# Check configuration and credentials readiness
google-play-vitals-mcp check -p com.example.app -c /path/to/key.json
# Launch MCP stdio server manually
google-play-vitals-mcp run -p com.example.app
# Check version
google-play-vitals-mcp --version🔧 Environment Variables
Variable | Description |
| Path to Google Cloud Service Account JSON key file. |
| Raw JSON string of Service Account credentials (useful for CI/CD or Cloud runtimes). |
| Default Android application package name (e.g. |
| Cache duration in seconds (default: |
🧪 Development & Testing
# Clone repository
git clone https://github.com/folay-git/google-play-vitals-mcp.git
cd google-play-vitals-mcp
# Install in editable mode with dev dependencies
pip install -e ".[dev]"
# Run unit tests
pytest -v
# Run linting
ruff check .
ruff format --check .📄 License
This project is licensed under the MIT License.
Available Tools
10 toolsplay_check_statusC
Verify Google Play API dependencies, GCP Service Account credentials, and environment readiness.
Inputs: package_name, credentials_path.
play_compare_versionsA
[Version Comparison] Compare metrics between two app versions (e.g., before and after Baseline Profile / ANR fixes). Automatically calculates delta and percentage improvement.
Inputs: target_version (required), baseline_version (required), days, metric_type, +2 more.
play_get_error_reportsB
[Atomic Error Reports & Stack Traces] Fetch detailed multi-device sample reports and cleaned de-obfuscated stack traces for a given error issue ID or resource name.
Inputs: issue_id (required), page_size, page_token, package_name, +1 more.
play_get_metric_trendsB
[Token-efficient Metrics] Query trends and daily averages for ANR rate, slow cold start rate (Baseline Profile verification), or Crash rate. Redundant Protobuf metadata is stripped.
Inputs: metric_type (required), days, package_name, version_code, +1 more.
play_get_raw_error_reportsA
[Deep-dive Drilldown] Fetch multi-device environmental samples and full stack traces for a specific error issue ID.
Inputs: issue_name (required), page_size, credentials_path.
play_get_release_tracksA
[Release Discovery] Fetch Google Play release tracks (PRODUCTION, BETA, ALPHA, INTERNAL) and active serving releases with their release names and versionCodes. Essential for automatically discovering the latest production version.
Inputs: package_name, credentials_path.
play_get_top_anr_summaryA
[One-shot Diagnosis] Retrieve top ANR error clusters along with affected user counts, occurrence rates, and representative cleaned main-thread stack traces. Eliminates back-and-forth round trips.
Inputs: limit, package_name, credentials_path.
play_list_accessible_appsB
[Account Apps Discovery] List all Google Play applications accessible by the configured GCP Service Account.
Inputs: page_size, page_token, credentials_path.
play_list_anomaliesA
[Anomaly Detection] List production metric anomalies and sudden regression spikes detected by Google Play algorithms for the application.
Inputs: page_size, page_token, package_name, credentials_path.
play_search_error_issuesB
[Atomic Issue Cluster Search] Search Google Play error clusters (CRASH, ANR, or NON_FATAL) with full AIP-160 filter support. Filter by specific versionCode, user-perceived state, or process state (FOREGROUND/BACKGROUND). Sorted by user impact and occurrences.
Inputs: error_type (required), page_size, page_token, package_name, +5 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 10 tools
Tools are largely distinct, each targeting a specific aspect of Google Play Vitals (status, releases, errors, anomalies, metrics, versions). The only potential confusion is between play_get_error_reports and play_get_raw_error_reports, but the descriptions clarify different levels of detail (cleaned vs. raw).
All tools follow a consistent 'play_' prefix with snake_case verb_noun patterns (e.g., list_anomalies, compare_versions, get_metric_trends). There are no mixed conventions or ambiguous verbs, making the naming highly predictable.
With 10 tools, the server is well-scoped for its purpose. Each tool adds value—covering discovery, error analysis, metrics, and anomaly detection—without redundancy or overwhelming bloat. The count fits comfortably within the ideal 3-15 range.
The tool set covers the main workflows for monitoring Google Play Vitals: release tracking, error cluster search, detailed reports, ANR summaries, metric trends, and version comparisons. Minor gaps exist (e.g., no dedicated tool for fetching specific version metrics), but agents can work around them using existing tools.
Maintenance
Related MCP Connectors
Production runtime data for Android and KMP apps (startup, ANRs, slow screens) for coding agents
Releases, reviews and stability for your Android apps
Read-only Google Search Console and Google Analytics for AI agents.
Google Search Console for AI assistants: traffic, rankings, indexing and page checks. Read-only.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to automate Android release workflows via the Google Play Android Publisher API, including deploying builds, managing listings, and replying to reviews.40MIT
- AlicenseAqualityBmaintenanceEnables AI agents to manage Google Play Console reviews and Android app releases, including replying to reviews, promoting releases, managing staged rollouts, and checking crash/ANR vitals.34550 npm2MIT
- AlicenseBqualityCmaintenanceEnables managing releases, monitoring Android vitals, analyzing earnings and search terms, optimizing ASO, and preflighting store assets through natural language, with a confirmation gate before destructive writes.1702Apache 2.0
- AlicenseAqualityBmaintenanceEnables AI assistants to query the Google Play Developer Reporting API for Android production stability data, including crash and ANR issue clusters, de-obfuscated stack traces, release track discovery, startup and crash metric trends, version-to-version comparisons, and anomaly alerts. It also provides guided prompts for incident triage, baseline profile verification, and weekly stability reporting with built-in token compression and caching.10MIT