devexpert-io/play-store-mcp
If you are the rightful owner of play-store-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
An MCP server for managing Android app deployments via Google Play Console.
Play Store MCP Server
An MCP (Model Context Protocol) server that enables interaction with Google Play Console to deploy and manage Android applications.
⚠️ Development Status
Although it's currently functional, this MCP server is under development. Please use with caution and thoroughly test in non-production environments first.
If you encounter any issues or have feature requests, please open an issue on GitHub. Your feedback is valuable for improving this project.
What is this?
This MCP server provides tools to:
- Deploy new versions of Android applications
- Promote releases between tracks (internal → alpha → beta → production)
- Query the status of existing releases
Available Tools
1. deploy_app
Deploys a new version of an application to the Play Store.
Parameters:
packageName
(string): App package name (e.g., com.example.myapp)track
(string): Release track (internal, alpha, beta, production)apkPath
(string): Path to APK or AAB fileversionCode
(integer): Version code (must be higher than current)releaseNotes
(string, optional): Release notesrolloutPercentage
(number, optional): Rollout percentage (0.0 to 1.0, default: 1.0 for full rollout)
2. promote_release
Promotes an existing version from one track to another.
Parameters:
packageName
(string): App package namefromTrack
(string): Source track (internal, alpha, beta)toTrack
(string): Target track (alpha, beta, production)versionCode
(integer): Version code to promote
3. get_releases
Gets the current status of app releases and deployments for a specific package.
Parameters:
packageName
(string): App package name (e.g., com.example.myapp)
Setup
1. Google Cloud and Play Console Setup
Step 1: Create a Google Cloud Console project
- Go to Google Cloud Console
- Create a new project or select an existing one
- Enable the Google Play Android Developer API:
- Go to "APIs & Services" → "Library"
- Search for "Google Play Android Developer API"
- Click "Enable"
Step 2: Create a service account
- In Google Cloud Console, go to "IAM & Admin" → "Service Accounts"
- Click "Create Service Account"
- Fill in the details:
- Name:
play-store-mcp
- Description:
Service account for Play Store MCP operations
- Name:
- Click "Create and Continue"
- In "Grant this service account access to project", you don't need to assign specific roles
- Click "Done"
Step 3: Generate the service account key
- In the service accounts list, find the one you just created
- Click on the service account email
- Go to the "Keys" tab
- Click "Add Key" → "Create new key"
- Select "JSON" as the key type
- Click "Create"
- A JSON file will download - this is your
service-account-key.json
Step 4: Configure permissions in Google Play Console
- Go to Google Play Console
- Select your developer account
- Go to "Users and Permssions"
- Click "Invite new users"
- Add the email of the service account
- Click "Invite User"
- Configure the necessary permissions:
- App permissions: Select the apps it can manage
- Account permissions: Grant "View app information" and the permissions aunder "Versions"
More permissions may be required when new features are released.
2. MCP Client Configuration
Add the following configuration to your MCP configuration file:
{
"mcpServers": {
"play-store-mcp": {
"command": "java",
"args": [
"-jar",
"/path/to/play-store-mcp-all.jar"
],
"env": {
"PLAY_STORE_SERVICE_ACCOUNT_KEY_PATH": "/path/to/service-account-key.json",
"PLAY_STORE_DEFAULT_TRACK": "internal"
}
}
}
}
Environment Variables
PLAY_STORE_SERVICE_ACCOUNT_KEY_PATH
: Path to the service account JSON file (required)PLAY_STORE_DEFAULT_TRACK
: Default track for deployments (optional, default: "internal")
Building
To build the project:
./gradlew clean build -x test
This will generate the JAR file at build/libs/play-store-mcp-all.jar
.
You can also download the jar
from the latest release.
Usage
Once configured, you can use the tools from any compatible MCP client.
Some samples of prompts are:
If you want to get the current releases of the App:
Let me know what versions of com.example.myapp are released in the Play Store.
To release a new version of the App to the alpha channel, you can say:
Upgrade the version of the App, build the AAB, and upload it to the alpha channel.
To deploy with a gradual rollout (e.g., 50% of users):
Update the App version, compile the AAB, and publish it to the Play Store on the alpha channel with a 50% rollout, using the @release_notes.txt.
Requirements
- Java 8 or higher
- Google Play Console developer account
- Google Cloud project with Play Developer API enabled
- Applications already published in Play Console (at least as drafts)
Limitations
- Only supports APK and AAB files
- Requires applications to be already configured in Play Console
- Service account permissions must be configured manually in Play Console
Troubleshooting
Error: "Service account key not found"
Verify that the path in PLAY_STORE_SERVICE_ACCOUNT_KEY_PATH
is correct and the file exists.
Error: "The caller does not have permission"
Ensure the service account is properly configured in Google Play Console with the necessary permissions.
Error: "Package name not found"
Verify that the package name is correct and the application is configured in Play Console.
License
This project is licensed under the MIT License - see the file for details.