play-store-mcp

play-store-mcp

An MCP server that connects to the Google Play Developer API to deploy apps, manage releases, respond to reviews, and monitor app health through an AI assistant.

Category
访问服务器

README

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

  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

🔧 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

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

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

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

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选