Skip to main content
Glama
Google Play Console MCP

Google Play Console MCP

by VSS-WEBLABS

Google Play Console MCP

Release and manage Android apps on Google Play by asking Claude. Every build is checked against Google's current rules before it uploads, and the AI can use the Play credential but never read it.

License: MIT Node.js 22+ TypeScript strict MCP server Claude Code skill

Setup guide · Features · How it works · Security · All 28 tools


Shipping an Android update means a lot of Play Console clicking. Google Play's requirements also change several times a year: target API levels, Billing Library versions, 16 KB memory pages, new permission declarations. Miss one, and the upload is rejected or the review fails.

This project hands that work to Claude Code. It's a local MCP server plus a Claude Code skill, built on the official Google Play Developer API v3 and Play Developer Reporting API. Two safeguards surround it:

  • every build is checked against Google's current rules before it leaves your machine;

  • the Play credential is isolated, so the AI can use it but never read it.

Setup guide

About 15 minutes, once per machine. After that, every app in your Play developer account works.

Step

Where

Time

0. Prerequisites

Terminal

0–5 min

1. Install

Terminal

2 min

2. Create a service account

Google Cloud Console

5 min

3. Invite it to Play Console

Play Console

2 min

4. Import the key

Terminal

1 min

5. Verify

Terminal, then Claude Code

1 min

6. Ship something

Claude Code

—

0. Prerequisites

You need:

  • macOS or Linux (Windows isn't supported yet)

  • a Google Play developer account with at least one app, and the right to invite users to it

  • a Google account that can create a Google Cloud project (free)

  • these tools, each of which should print a version:

Tool

Check

Install if missing

git

git --version

macOS: xcode-select --install · Linux: your package manager

Node.js 22+

node --version

nvm, then nvm install 22

Claude Code

claude --version

claude.com/claude-code

If you use nvm, setup finds Node 22+ by itself even when your default Node is older.

1. Install (2 min)

Run this in a terminal, not inside Claude:

git clone https://github.com/VSS-WEBLABS/play-console-mcp.git
cd play-console-mcp
npm run setup

This builds the server, registers it with Claude Code, links the skill and installs the key guard.

IMPORTANT

Setup turns on Claude Code's sandbox in strict mode and adds a guard hook. Both apply toevery project, not just this one. Read What setup changes first if you already use sandbox settings.

✅ It ends with Done. Restart Claude Code. Restart Claude Code now if it's open.

Optional shortcut for the commands below:

alias play-console=~/.claude/skills/play-console/bin/play-console

2. Create a service account in Google Cloud (5 min)

  1. Create a project, for example play-console-mcp, and keep it selected.

  2. Enable both APIs in it:

  3. Open Service accounts and click Create service account.

    • Name it play-console-mcp and click Create and continue.

    • Skip the roles and click Done. It needs no Cloud roles.

  4. Open the new service account and go to Keys › Add key › Create new key › JSON.

    • A .json key file downloads to ~/Downloads. Treat it like a password: don't commit it, email it, or paste it into a chat.

  5. Copy the service account's email, which looks like play-console-mcp@<project-id>.iam.gserviceaccount.com.

✅ You have the key file and the service-account email.

NOTE

"Service account key creation is disabled" means your Google Cloud organization blocks key creation (the iam.disableServiceAccountKeyCreation policy). An org admin has to allow it for this project. Personal accounts without an organization aren't affected.

3. Invite the service account in Play Console (2 min)

  1. In Play Console, open Users and permissions › Invite new users.

  2. Paste the service-account email.

  3. Open the Account permissions tab and tick the permissions for what you want Claude to do. Account permissions cover all your current and future apps. To limit access to some apps, use App permissions instead.

  4. Click Invite user. A service account doesn't need to accept the invite.

✅ Access usually works within minutes; occasionally it takes up to a day.

4. Import the key (1 min)

Run this yourself, either in a terminal or in the Claude Code prompt with a leading !:

~/.claude/skills/play-console/bin/play-console import-key ~/Downloads/<your-key>.json --move

It checks the file and stores it as ~/.play-console/creds/play-service-account.json (mode 0600, outside every project). It prints only the service-account email, and --move deletes the downloaded copy. Claude can't do this step for you: its shell isn't allowed to write to the key folder.

✅ Imported service-account key. The server picks the key up immediately, with no restart.

5. Verify (1 min)

In a terminal:

~/.claude/skills/play-console/bin/play-console status

✅ You should see key guard : complete, mcp server : registered (play-console) and google auth : key accepted.

Then ask Claude Code:

Check my Play Console connection.

✅ Claude lists every app the service account can see. You never need to type a package name.

6. Ship something

Release app-release.aab to internal testing.

Claude checks the build against Google's current requirements and confirms its versionCode is higher than anything already on Play. It then uploads the build with your release notes and reports the result. You can also run /play-console to load the skill directly.

Related MCP server: play-console-mcp

Highlights

  • Every build is checked before upload. The project has its own ZIP64, protobuf, Android binary-XML and ELF parsers, so it inspects AABs and APKs without the Android SDK. It checks:

    • the target API level for the app's form factor, and the Billing Library version;

    • 16 KB page alignment (ELF PT_LOAD, GNU_RELRO, zip alignment and the bundle config) and 64-bit ABIs;

    • debug or missing signatures, in both JAR signatures and the APK Signing Block;

    • android:exported, and 35+ sensitive permissions mapped to the Play Console declaration or policy each one triggers.

    Any blocker stops the upload.

  • Rules can't go stale without anyone noticing. The server re-reads five official Google pages at most every 12 hours. Deadlines take effect on their date even offline. A parsed value that would weaken a minimum is rejected in favor of a hand-verified baseline. Every answer is labeled live, cache or baseline, and drift and new policy announcements are flagged.

  • Claude can use the credential but never read it. Four layers protect it: an OS sandbox, permission deny rules, a PreToolUse hook, and the server itself.

    • The hook resolves shell quoting, ~, $HOME and globs before checking paths, and blocks decode/eval, debugger and settings-tampering tricks.

    • The server never returns token material.

    • The guard has its own suite of bypass tests.

  • Changes are safe by default.

    • Play edits are transactional: each one is validated or committed, deleted if anything fails, and run one at a time per app.

    • Every Play edit (releases, rollouts, listings, images, testers) supports a validateOnly dry run.

    • Production releases, rollout changes, deletions and public replies need your confirmation.

    • Staged rollouts keep the current release serving everyone else.

  • Errors come with the fix. Play's most common rejection messages are mapped to their fix, quoting numbers from the live rules.

  • It maintains itself. play-console update upgrades the Google and MCP libraries, rebuilds, runs the tests, smoke-starts the server, and rolls back if anything fails.

See it catch problems

Real output on test/fixtures/bad.aab, a deliberately broken test bundle. The rules were verified live in November 2026, and the output is trimmed:

$ play-console preflight test/fixtures/bad.aab
rules: verified against Google at 2026-11-25T23:16:49.716Z

AAB com.example.preflight versionCode 42 targetSdk 34: BLOCKED
  [blocker] targetSdk: targetSdkVersion 34 is below the Play minimum of 36 for phone apps (required for new apps and updates since 2026-08-31). …
      fix: Set targetSdkVersion and compileSdk to 36+ and test that API level's behavior changes …
  [blocker] debuggable: android:debuggable="true" — Play rejects debuggable builds.
  [blocker] exported: Components with intent filters but no android:exported: activity .Main.
  [blocker] billingLibrary: Play Billing Library 7.1.1 is no longer accepted for new apps/updates (minimum 8).
  [blocker] signing: The app bundle is signed with the Android debug key.
  [declaration] permission:ACCESS_BACKGROUND_LOCATION: Location permissions declaration + demo video; …
  [declaration] permission:FOREGROUND_SERVICE_LOCATION: Foreground service permissions declaration (with demo video) …
  [declaration] permission:READ_MEDIA_IMAGES: Photo & video permissions declaration: …
  [declaration] permission:com.google.android.gms.permission.AD_ID: Advertising ID declaration (App content) …
  [warning] 16kbPageSize: 1 64-bit native libraries are not 16 KB ELF-aligned: base/lib/arm64-v8a/libbad4k.so (align 4096). …
  [warning] 16kbZipAlign: BundleConfig asks for 4 KB zip alignment of uncompressed native libraries, so APKs Play generates won't be 16 KB aligned.

A blocked build exits with code 2, so the same check can gate a CI pipeline.

What you can ask Claude

Ask

What happens

"Will this build be accepted by Play?"

Checks the build locally against Google's live rules: target API, Billing Library, 16 KB page size, signing, and permissions that need declarations

"Release this build to internal testing."

Compliance check, versionCode check, then upload with mapping file and release notes

"Roll out to 10% of production."

Dry run, your confirmation, then a staged rollout; checks vitals by version before each increase

"Halt the rollout."

Immediate halt

"Is the update approved yet?"

Review state per track: in review, approved, rejected or live

"Fix the Hindi description and replace the screenshots."

Text limits enforced; old images deleted only after you confirm

"Reply to this week's reviews."

Drafts in each review's language, posted only after you approve them

"How is the new version's crash rate?"

Daily crash and ANR rates by version, device or country, plus the top crash clusters

"What do our subscriptions cost in India?"

Exact prices per base plan and region

"Is this purchase token valid?"

Verified with Google

CAPABILITY.md lists all 28 tools and their parameters. Anything else in the two Google APIs can be reached through the general-purpose play_api_request tool.

Play Console permissions

Grant only what you need:

To let Claude…

Tick

Read app data, see vitals, list your apps

View app information and download bulk reports

Release to internal, closed and open testing

Release apps to testing tracks

Release to production and change rollouts

Release to production, exclude devices, and use Play App Signing

Edit the store listing, images and contact details

Manage store presence

Manage tester groups and use internal app sharing

Manage testing tracks and edit tester lists

Reply to reviews

Reply to reviews

Look up purchases, list refunds, issue refunds

View financial data, and Manage orders and subscriptions

If a permission is missing, the error names the one to grant.

How it works

flowchart LR
    you(["You"]) -- "plain-English requests" --> cc["Claude Code<br/>+ play-console skill"]
    cc -- "MCP over stdio" --> mcp["play-console MCP server<br/>28 tools"]
    mcp -- "service-account OAuth" --> gp["Google Play Developer API v3<br/>Play Developer Reporting API"]
    mcp -- "re-read at most every 12 h" --> pages[["Google's official<br/>policy pages"]]
    mcp -- "before every upload" --> pre["Build inspector<br/>ZIP · protobuf · binary XML · ELF"]
    key[("Service-account key<br/>~/.play-console/creds")] -- "read only by the server" --> mcp
    cc -.-x|"blocked: OS sandbox · deny rules · guard hook"| key

Component

Where

What it does

MCP server

src/index.ts, src/tools/

The 28 tools, over the Play Developer API v3 and Reporting API

Edit manager

src/edits.ts

Transactional Play edits, run one at a time per app, with validate-only dry runs

Build inspector

src/preflight/

ZIP64 reader, aapt2-protobuf and binary-XML manifest decoders, ELF program headers, signature blocks

Live rules

src/rules.ts, src/preflight/requirements.ts

Parses Google's pages, applies deadlines by date, enforces the verified baseline, detects drift

Key guard

scripts/guard-creds.mjs

The PreToolUse hook: path normalization, glob expansion, anti-obfuscation and tamper checks

Installer

scripts/setup.mjs

Picks Node 22+, registers the server and skill, installs the guard; also updates (with rollback) and uninstalls

Skill

skills/play-console/

The workflows and safety rules Claude follows

How the key is protected

Claude's tools can't read the key: not with file tools, not from the shell, not through another tool. play-console status checks each layer.

Layer

What it does

Location

The key sits in ~/.play-console/creds/, outside every project, so committing, zipping or deploying a repo can't carry it along.

OS sandbox

Shell commands, and everything they start, can't read ~/.play-console/creds or write to ~/.play-console. The MCP server is started by Claude Code itself, outside the sandbox, so it can read the key.

Deny rules

Claude's Read, Edit, Write, Grep and Glob tools, and @ mentions, are denied the key folder in every project.

Guard hook

Runs before every tool call. It blocks references to the key folder (including ~, $HOME, split quotes and globs), unsandboxed retries, decode/eval tricks, debugger attachment, downloaded key files in ~/Downloads, and edits that would weaken the guard.

MCP server

Never returns key or token material, refuses to upload files from ~/.play-console, and sends requests only to Google's API hosts.

Setup, key import and uninstall write to protected folders, so you run them, not Claude.

Not covered: programs that aren't Claude Code tools (your editor, backups), and any other MCP server you add that can read arbitrary files. A project's .claude/settings.json could loosen the sandbox. The hook stops Claude from writing one, but to rule it out completely, put the sandbox block in managed settings (on macOS, /Library/Application Support/ClaudeCode/managed-settings.json; needs sudo).

What setup changes on your machine

  • In the repo: runs npm install, builds to dist/, and records the chosen Node binary in .runtime/.

  • Key folder: creates ~/.play-console/creds/ (mode 0700, excluded from Spotlight) with a harmless canary.txt for testing the guard, and installs the guard hook as ~/.play-console/guard.mjs.

  • Claude Code, for every project:

    • registers the MCP server play-console at user scope;

    • symlinks the skill to ~/.claude/skills/play-console;

    • edits ~/.claude/settings.json, keeping a backup at settings.json.bak-play-console. It adds deny rules for the key folder and for mcp__ide__executeCode, and a PreToolUse hook that runs on every tool call.

    • turns on Claude Code's sandbox in strict mode (allowUnsandboxedCommands: false), with the key folder blocked. If you had no sandbox settings, it also allows writes to common tool caches (~/.npm, ~/.gradle, …) and leaves network access open.

    • writes ~/.claude/play-console-mcp.json, so uninstall knows exactly what to remove.

Effect: in every project, the shell commands Claude runs are sandboxed. A command that needs to write outside the project fails instead of re-running without the sandbox.

play-console uninstall reverses all of this except the key folder.

Commands

play-console is ~/.claude/skills/play-console/bin/play-console.

play-console status [--package com.your.app]   # key, MCP, skill, guard, Node, rules freshness, Google auth, app access
play-console requirements [--refresh]          # Google's current Play rules, verified live
play-console preflight app.aab [--package id]  # check a build; exits with code 2 if blocked (usable in CI)
play-console import-key <file.json> [--move]   # validate and install a key; --move deletes the download
play-console remove-key                        # delete the installed key
play-console setup | update | uninstall        # install, upgrade libraries (with rollback), or remove
  • Update: run git pull, then play-console setup. Setup also refreshes the installed guard copy. play-console update upgrades the Google and MCP libraries, runs the tests, and rolls back if anything fails.

  • Remove everything:

    1. play-console remove-key, then play-console uninstall.

    2. Delete the key in Google Cloud (Service accounts › Keys).

    3. Remove the service account from Play Console.

Troubleshooting

Symptom

Fix

Node.js 22+ is required

Install it (nvm install 22) and run npm run setup again.

claude CLI not found on PATH

Run the claude mcp add … command that setup printed, or fix your PATH and run setup again.

No play_* tools in Claude

Restart Claude Code, or run /mcp.

setup failed … sandbox blocked a write

Claude tried to run setup. Run it yourself in a terminal.

No apps listed, or a 403 error for an app

The service account isn't invited or lacks a permission (step 3). Wait a few minutes; rarely, up to a day.

An error mentioning the Reporting API

Enable the Play Developer Reporting API in the key's Cloud project (step 2).

Package not found for a brand-new app

Create the app and upload its first AAB in Play Console once. The API can't make the very first upload.

Only releases with status draft may be created on draft app

The app has never been published. Release as draft, then roll out the first release in Play Console.

cannot be sent for review automatically

Claude retries with changesNotSentForReview: true. Then press Send for review in Play Console.

Shell commands fail with Operation not permitted

The sandbox blocked a write outside the project. Add the path to sandbox.filesystem.allowWrite in ~/.claude/settings.json, or run the command yourself.

status shows key guard : INCOMPLETE

Run play-console setup again, then restart Claude Code.

Limits

Google's API doesn't offer these, so do them in Play Console:

  • create an app, or upload a brand-new app's first AAB

  • the App content forms, except Data safety (which can be uploaded as a CSV through play_api_request): content rating, target audience, ads, privacy policy, app access and account deletion

  • paid-app pricing and country distribution

  • email-list testers (the API supports only Google Groups)

  • custom store listings, store listing experiments, pre-registration, promo codes and pre-launch reports

Google's API only returns reviews with text from about the last week.

Not built in yet: install, revenue and full review-history reports (see Roadmap).

Testing

36 automated tests run on Node's built-in test runner (npm test):

Suite

Covers

guard.test.mjs (15)

Bypass attempts on the key guard: quoted, split and globbed paths, ~ and $HOME expansion, base64/eval/printf decoding, debuggers, inode access, settings tampering

rules.test.mjs (7)

Parsing Google's wording, deadlines that advance by date alone, misparsed values that must not weaken a rule, staleness that must be reported

preflight.test.mjs (5)

Real AAB and APK fixtures built with aapt2, the NDK and apksigner: every blocker, both manifest formats, APK v2 signatures, zip alignment

raw.test.mjs (5)

Raw API requests can't leave Google's API hosts (absolute URLs, dot segments, encoded escapes)

monetization.test.mjs (4)

Exact-decimal prices and per-region filtering

The server has also been checked end to end against a live Play developer account. Every read tool ran for real. The main write tools (listing text, app details, image upload and deletion, track releases, promotion) ran as validateOnly dry runs.

Development

npm run build                          # compile TypeScript to dist/
npm test                               # the suites above
npm run smoke -- <tool> '<json args>'  # call one MCP tool over stdio

When Google changes a requirement, status or requirements reports drift or a new announcement. Then:

  1. Update src/preflight/requirements.ts and skills/play-console/reference/compliance.md.

  2. Run npm test.

  3. Run play-console setup.

Roadmap

  • Install, revenue and full review-history reports, from Play's Cloud Storage exports

  • Every Android vitals metric (slow start, slow rendering, wake locks, memory), plus crash stack traces and anomaly alerts

  • Guarded tools for app recovery, refunds and subscription actions

Contributing

Issues and pull requests are welcome.

  • Run npm test before opening a pull request.

  • Any Play requirement you add or change must cite Google's source page (see the Sources list in skills/play-console/reference/compliance.md).

License

MIT

Not affiliated with or endorsed by Google. Google Play is a trademark of Google LLC.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers