Skip to main content

Play Store MCP Server

CI codecov Security Rating Reliability Rating Maintainability Rating Vulnerabilities

PyPI version Docker Python 3.11+ Lines of Code License: MIT

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
  • 💳 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

  1. Google Cloud Project with the Google Play Developer API enabled
  2. Service Account with access to your Play Console
  3. 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

Read-Only Mode

To point the server at a live Play Console without any risk of mutating it, run in read-only mode. All write tools (deploy, promote, halt, rollout, reply to reviews, listing/tester updates) return an error instead of calling the API; read tools are unaffected.

play-store-mcp --read-only
# or
export PLAY_STORE_MCP_READ_ONLY=1

Code Mode (Experimental)

Opt in to the experimental code-mode transform to serve the tools as three meta-tools (search/get_schema/execute) instead of the full tool list, cutting per-request tool-list token overhead. It is off by default. Install the sandbox extra and set the environment variable (CODE_MODE is env-only — there is no CLI flag):

pip install "play-store-mcp[code-mode]"
export CODE_MODE=1

Under code mode one execute call can invoke up to 50 tool calls (including mutations) behind a single approval. Read-only enforcement still applies inside the sandbox, so pair it with --read-only / PLAY_STORE_MCP_READ_ONLY=1 unless you need writes.

🔧 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
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

📋 Google Cloud Setup

1. Create a Service Account

  1. Go to Google Cloud Console
  2. Create a new project or select an existing one
  3. Enable the Google Play Developer API
  4. Go to IAM & Admin > Service Accounts
  5. Create a new service account
  6. Download the JSON key file

2. Grant Play Console Access

  1. Go to Google Play Console
  2. Navigate to Users and permissions
  3. Click Invite new users
  4. Enter the service account email (from the JSON file)
  5. 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 app details and orders)

🔒 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)
PLAY_STORE_MCP_DISABLE_DNS_REBINDING Disable DNS rebinding protection (for cloud/reverse-proxy deployments) No
PLAY_STORE_MCP_ADMIN_TOKEN Require Authorization: Bearer <token> on the /credentials endpoint (for deployments behind a reverse proxy) No
PLAY_STORE_MCP_READ_ONLY Disable all write operations (deploy, promote, rollout, reply, listing/tester updates) No (default: off)
PLAY_STORE_MCP_DOWNLOAD_DIR Directory that APK/AAB downloads are confined to (path-traversal / arbitrary-write protection). Downloads are always confined; defaults to the working directory when unset No (defaults to cwd); recommended for network/hosted deployments — the server warns if unset
CODE_MODE Enable the experimental code-mode transform (opt-in; requires the play-store-mcp[code-mode] extra) No (default: off)

🧪 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

🤖 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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

play_store_mcp-0.5.1.tar.gz (118.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

play_store_mcp-0.5.1-py3-none-any.whl (55.9 kB view details)

Uploaded Python 3

File details

Details for the file play_store_mcp-0.5.1.tar.gz.

File metadata

  • Download URL: play_store_mcp-0.5.1.tar.gz
  • Upload date:
  • Size: 118.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for play_store_mcp-0.5.1.tar.gz
Algorithm Hash digest
SHA256 7a2393fd1c6c621e417c08a46e9bfe968a3a9c2c7a01af064efd9cec576e1de6
MD5 8272d69ad77751df3e188c87d9be3fb5
BLAKE2b-256 a4d0079ae03f015922c49c7b521fd523c5237b1d82e3c2417594d43292f33b45

See more details on using hashes here.

Provenance

The following attestation bundles were made for play_store_mcp-0.5.1.tar.gz:

Publisher: release.yml on lusky3/play-store-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file play_store_mcp-0.5.1-py3-none-any.whl.

File metadata

  • Download URL: play_store_mcp-0.5.1-py3-none-any.whl
  • Upload date:
  • Size: 55.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for play_store_mcp-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c4e5d4f804453fa4847b692e38e5ebc338f517d873ad7a97c0bb3f54525d796b
MD5 0f46e39fdad83851d21b022ff6bb7915
BLAKE2b-256 86f4e0d06f22c4bc832fbf355c083d33c6098d90cfca635eb2e6c9243e9631c9

See more details on using hashes here.

Provenance

The following attestation bundles were made for play_store_mcp-0.5.1-py3-none-any.whl:

Publisher: release.yml on lusky3/play-store-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.6.1

2 files

0.6.0

2 files

This release

0.5.1 This release

2 files

0.5.0

2 files

0.3.0

2 files

0.2.0

2 files

0.1.1

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page