MCP server for Google Play Developer API - deploy apps, manage releases, reviews, and more
Project description
Play Store MCP Server
An MCP (Model Context Protocol) server that connects to the Google Play Developer API. Deploy apps, manage releases, respond to reviews, and monitor app health โ all through your AI assistant.
๐ Full Documentation
โจ Features
- ๐ App Deployment โ Deploy APK/AAB files to any track (internal, alpha, beta, production)
- โก Batch Operations โ Deploy to multiple tracks simultaneously
- ๐ Multi-Language Support โ Deploy with release notes in multiple languages
- โ Input Validation โ Validate package names, tracks, and text before API calls
- ๐ Automatic Retries โ Built-in retry logic with exponential backoff for transient failures
- ๐ Store Listings โ Update app titles, descriptions, and videos for any language
- ๐ Release Management โ Promote releases between tracks, manage staged rollouts
- ๐ฅ Tester Management โ Add and manage testers for testing tracks
- โญ Review Management โ Fetch and reply to user reviews
- ๐ Android Vitals โ Monitor crashes, ANRs, and app health metrics
- ๐ณ Subscription Management โ List subscriptions and check purchase status
- ๐ In-App Products โ List and manage in-app products
- ๐ฆ Expansion Files โ Manage APK expansion files for large apps
- ๐งพ Orders โ Retrieve detailed transaction information
- ๐ณ Docker Support โ Run as a container with health checks
- ๐ Per-Request Credentials โ Bring-your-own-credentials for multi-tenant deployments
- ๐ Secure โ Google Cloud service account authentication
๐ Quick Start
Prerequisites
- Google Cloud Project with the Google Play Developer API enabled
- Service Account with access to your Play Console
- Python 3.11+,
uvx, or Docker installed
Installation
Using uvx (Recommended)
# Run directly without installation
uvx play-store-mcp
Using pip
pip install play-store-mcp
play-store-mcp
Using Docker
docker run -e GOOGLE_APPLICATION_CREDENTIALS=/creds/key.json \
-v /path/to/service-account.json:/creds/key.json:ro \
ghcr.io/lusky3/play-store-mcp:latest
From source
git clone https://github.com/lusky3/play-store-mcp.git
cd play-store-mcp
pip install -e .
play-store-mcp
Configuration
Set the path to your service account key:
export GOOGLE_APPLICATION_CREDENTIALS=/path/to/service-account.json
Running with HTTP Transport
For remote access or public deployments, run the server with streamable-http transport:
play-store-mcp --transport streamable-http --host 0.0.0.0 --port 8000
The server exposes a /health endpoint for monitoring.
Per-Request Credentials (Recommended for Public Instances)
For public deployments where users bring their own credentials, configure your MCP client to pass credentials in headers:
{
"mcpServers": {
"play-store": {
"url": "https://your-server.com/mcp",
"transport": "http",
"headers": {
"X-Google-Credentials-Base64": "YOUR_BASE64_ENCODED_CREDENTIALS"
}
}
}
}
To get your base64-encoded credentials:
base64 -w 0 < service-account.json
Per-request credentials are isolated โ each request uses only the credentials provided in its headers. No credentials are stored server-side or shared between requests.
Server-Side Credentials (For Private/Trusted Deployments)
For private deployments, set credentials via environment variable at server startup:
export GOOGLE_PLAY_STORE_CREDENTIALS='{"type":"service_account",...}'
# or
export GOOGLE_APPLICATION_CREDENTIALS=/path/to/service-account.json
play-store-mcp --transport streamable-http --host 0.0.0.0 --port 8000
๐ง MCP Client Configuration
Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"play-store": {
"command": "uvx",
"args": ["play-store-mcp"],
"env": {
"GOOGLE_APPLICATION_CREDENTIALS": "/path/to/service-account.json"
}
}
}
}
Kiro
Add to .kiro/settings/mcp.json:
{
"mcpServers": {
"play-store": {
"command": "uvx",
"args": ["play-store-mcp"],
"env": {
"GOOGLE_APPLICATION_CREDENTIALS": "/path/to/service-account.json"
}
}
}
}
Gemini CLI / Other MCP Clients
{
"mcpServers": {
"play-store": {
"command": "uvx",
"args": ["play-store-mcp"],
"env": {
"GOOGLE_APPLICATION_CREDENTIALS": "/path/to/service-account.json"
}
}
}
}
๐ ๏ธ Available Tools
Publishing Tools
| Tool | Description |
|---|---|
deploy_app |
Deploy an APK/AAB to a track with optional staged rollout and single-language release notes |
deploy_app_multilang |
Deploy an APK/AAB with multi-language release notes |
promote_release |
Promote a release from one track to another |
get_releases |
Get release status for all tracks |
halt_release |
Halt a staged rollout |
update_rollout |
Update rollout percentage for a staged release |
list_apps |
List all apps in the developer account (limited by API) |
get_app_details |
Get app metadata (title, description, etc.) |
Store Listings Tools
| Tool | Description |
|---|---|
get_listing |
Get store listing for a specific language |
update_listing |
Update store listing (title, descriptions, video) |
list_all_listings |
List all store listings for all languages |
Review Tools
| Tool | Description |
|---|---|
get_reviews |
Fetch recent reviews with optional filters |
reply_to_review |
Reply to a user review |
Subscription Tools
| Tool | Description |
|---|---|
list_subscriptions |
List subscription products for an app |
get_subscription_status |
Check subscription purchase status |
list_voided_purchases |
List voided purchases |
In-App Products Tools
| Tool | Description |
|---|---|
list_in_app_products |
List all in-app products for an app |
get_in_app_product |
Get details of a specific in-app product |
Testers Management Tools
| Tool | Description |
|---|---|
get_testers |
Get testers for a specific testing track |
update_testers |
Update testers for a testing track |
Orders Tools
| Tool | Description |
|---|---|
get_order |
Get detailed order/transaction information |
Expansion Files Tools
| Tool | Description |
|---|---|
get_expansion_file |
Get APK expansion file information |
Validation Tools
| Tool | Description |
|---|---|
validate_package_name |
Validate package name format |
validate_track |
Validate track name |
validate_listing_text |
Validate store listing text lengths |
Batch Operations Tools
| Tool | Description |
|---|---|
batch_deploy |
Deploy to multiple tracks simultaneously |
Vitals Tools
| Tool | Description |
|---|---|
get_vitals_overview |
Get Android Vitals overview (crashes, ANRs) |
get_vitals_metrics |
Get specific vitals metrics |
๐ Google Cloud Setup
1. Create a Service Account
- Go to Google Cloud Console
- Create a new project or select an existing one
- Enable the Google Play Developer API
- Go to IAM & Admin > Service Accounts
- Create a new service account
- Download the JSON key file
2. Grant Play Console Access
- Go to Google Play Console
- Navigate to Users and permissions
- Click Invite new users
- Enter the service account email (from the JSON file)
- Grant the following permissions:
- Release apps to testing tracks (for internal/alpha/beta)
- Release apps to production (for production releases)
- Reply to reviews (for review management)
- View app information and download bulk reports (for vitals)
๐ Environment Variables
| Variable | Description | Required |
|---|---|---|
GOOGLE_APPLICATION_CREDENTIALS |
Path to service account JSON key | Yes (or use per-request credentials) |
GOOGLE_PLAY_STORE_CREDENTIALS |
Inline JSON credentials string | Alternative to file path |
PLAY_STORE_MCP_LOG_LEVEL |
Log level (DEBUG, INFO, WARNING, ERROR) | No (default: INFO) |
๐งช Development
Setup
git clone https://github.com/lusky3/play-store-mcp.git
cd play-store-mcp
uv sync --dev
Running Tests
uv run pytest -v --cov=src/play_store_mcp
Linting
ruff check src/ tests/
ruff format src/ tests/
Type Checking
mypy src/
๐ Troubleshooting
Error: "Service account key not found"
Ensure GOOGLE_APPLICATION_CREDENTIALS points to a valid JSON file:
ls -la $GOOGLE_APPLICATION_CREDENTIALS
Error: "The caller does not have permission"
Verify the service account has been granted access in Play Console with the required permissions.
Error: "Package name not found"
Ensure the app exists in Play Console and the service account has access to it.
๐ License
MIT License โ see LICENSE for details.
๐ Acknowledgments
- Inspired by antoniolg/play-store-mcp (Kotlin)
- Built with the MCP Python SDK
- Uses the Google Play Developer API
๐ค AI Usage Disclaimer
Portions of this codebase were generated with the assistance of Large Language Models (LLMs). All AI-generated code has been reviewed and tested to ensure quality and correctness.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file play_store_mcp-0.2.0.tar.gz.
File metadata
- Download URL: play_store_mcp-0.2.0.tar.gz
- Upload date:
- Size: 47.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d5fdcd931e64a040f71cae1209c03965d3026e5db25c9e72ee60e3f48696e479
|
|
| MD5 |
94dbe234ecb2ee602f36d8f468591bae
|
|
| BLAKE2b-256 |
f0787d6b94762e71d6608310180b1fd2c9caf2934e190ad1a8c546cc33b981ae
|
Provenance
The following attestation bundles were made for play_store_mcp-0.2.0.tar.gz:
Publisher:
release.yml on lusky3/play-store-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
play_store_mcp-0.2.0.tar.gz -
Subject digest:
d5fdcd931e64a040f71cae1209c03965d3026e5db25c9e72ee60e3f48696e479 - Sigstore transparency entry: 1361376102
- Sigstore integration time:
-
Permalink:
lusky3/play-store-mcp@7d4f07b83f866b365e966fd0fb895b7d81d35792 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/lusky3
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@7d4f07b83f866b365e966fd0fb895b7d81d35792 -
Trigger Event:
push
-
Statement type:
File details
Details for the file play_store_mcp-0.2.0-py3-none-any.whl.
File metadata
- Download URL: play_store_mcp-0.2.0-py3-none-any.whl
- Upload date:
- Size: 25.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
95572b66850790bcf2e2a9d0901ed1f720d058dd4a2338ed7113829e0b6b1a19
|
|
| MD5 |
5a2686b948f9c16bef831165905b51fd
|
|
| BLAKE2b-256 |
ee00a318a928f4e547e9e015e9e7ec758e5b52a3730e0f375a371a3be90f3e53
|
Provenance
The following attestation bundles were made for play_store_mcp-0.2.0-py3-none-any.whl:
Publisher:
release.yml on lusky3/play-store-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
play_store_mcp-0.2.0-py3-none-any.whl -
Subject digest:
95572b66850790bcf2e2a9d0901ed1f720d058dd4a2338ed7113829e0b6b1a19 - Sigstore transparency entry: 1361376104
- Sigstore integration time:
-
Permalink:
lusky3/play-store-mcp@7d4f07b83f866b365e966fd0fb895b7d81d35792 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/lusky3
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@7d4f07b83f866b365e966fd0fb895b7d81d35792 -
Trigger Event:
push
-
Statement type: