appstore-connect-mcp
by blakecrosley
README.md
# appstore-connect-mcp
A read-only [MCP](https://modelcontextprotocol.io) server for the App Store
Connect API. It lets a coding agent answer the questions you open App Store
Connect to answer: did the build get approved, what is waiting on review,
what are testers saying, which TestFlight build is about to expire.
```
You Did 2.4 get through review? Anything else I should know about?
Agent → team_status()
2.4 was approved and is waiting for you to release it. Nothing is
rejected. One thing: Example Timer's last TestFlight build in
testing expires in 3 days. Give testers a new one or they lose
access.
```
It has fourteen tools and no way to change anything. It is unofficial and is
not affiliated with Apple.
## Why this one
There are many App Store Connect MCP servers, and several expose hundreds of
tools that can submit builds and edit prices. This one is small on purpose.
- **It only reads.** The client has no method but GET, refuses any host but
Apple's, and follows no redirects. There is no setting that turns writing
on.
- **It fits in a context window.** The whole tool list costs about 2,300
tokens. Each answer keeps the fields a decision needs: on a real account
the five answers measured were 5 to 84 times smaller than Apple's
responses to the same requests.
- **It says when an answer is incomplete.** A list cut short carries
`truncated: true` and Apple's own total, so the agent can say "20 of 72"
and not "that is all of them". A tool that needs "the newest" of something
reads all of it first, because Apple sorts neither versions nor review
submissions, and fails when it cannot: a guess at the newest is worse than
no answer.
- **Its tools leave out the fields that identify people.** No tool returns
the name or email address Apple stores for a tester, or App Review's
demo-account password, and no tool parameter can ask for them.
- **It can run without an agent.** `appstore-connect-mcp pulse` compares
App Store Connect with the last run and exits 1 when something needs you.
## Install
You need [uv](https://docs.astral.sh/uv/) and an App Store Connect API
**team key** (an individual key has no issuer ID and cannot read sales).
```bash
# Claude Code
claude mcp add appstore -- uvx --from git+https://github.com/blakecrosley/appstore-connect-mcp@v1.0.0 appstore-connect-mcp
# Codex
codex mcp add appstore -- uvx --from git+https://github.com/blakecrosley/appstore-connect-mcp@v1.0.0 appstore-connect-mcp
```
Any other MCP host takes the same command:
```json
{
"mcpServers": {
"appstore": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/blakecrosley/appstore-connect-mcp@v1.0.0",
"appstore-connect-mcp"
]
}
}
}
```
The install line names a release tag. This process holds a signing key, so
it should run code you chose and not whatever the default branch holds today.
The tag fixes this project's code. Its dependencies are resolved when you
install, within the ranges in `pyproject.toml`; `uv.lock` records the exact
versions the tests ran against.
To use `doctor`, `pulse` and `get` from a terminal, install the command:
```bash
uv tool install git+https://github.com/blakecrosley/appstore-connect-mcp@v1.0.0
```
## Credentials
Create a team key in App Store Connect under Users and Access, Integrations,
App Store Connect API. Download the `.p8` file once and put it where Apple's
own tools look:
```
~/.appstoreconnect/private_keys/AuthKey_<KEY ID>.p8
~/.appstoreconnect/issuer_id one line: the issuer ID shown above the key list
```
With one key in that folder, that is all the setup there is. Every value can
also come from the environment, which wins over the files:
| Value | Environment variable | File under `~/.appstoreconnect/` |
|---|---|---|
| Private key | `ASC_KEY_PATH` | `private_keys/AuthKey_<KEY ID>.p8` |
| Key ID | `ASC_KEY_ID` | `key_id`, or read from the key's file name |
| Issuer ID | `ASC_ISSUER_ID` | `issuer_id` |
| Vendor number, for sales only | `ASC_VENDOR_NUMBER` | `vendor_number` |
If the folder holds several keys, set `ASC_KEY_ID`. The server refuses to
guess, because the wrong guess signs requests for the wrong team.
Then check it:
```
$ appstore-connect-mcp doctor
ok key file: /Users/you/.appstoreconnect/private_keys/AuthKey_ABC123DEFG.p8
ok key ID: ABC123DEFG
ok issuer ID: ...9f5e
ok App Store Connect answered: 12 app(s) visible to this key
ok the key can read builds, versions and customer reviews
ok rate limit: 3599 of 3600 requests left this hour
ok vendor number: set, and the sales report for 2026-11-21 was read with it
```
`doctor` asks for one build, one version and one review, because a key can
list apps and still be refused those. It reads the newest sales report when
a vendor number is set, so "was read" is something it saw. When Apple has no
report for the last two days it says sales access is unconfirmed, because an
absent report proves nothing.
## Security
**Read-only describes this code, not your key.** An App Store Connect key can
do whatever its role allows, in anyone's hands. Make a key for this server
with the lowest role that can read what you want, and do not reuse the key
your release scripts sign with. `doctor` tells you if the key file is
readable by other users.
**The key is read when a token is signed and at no other time.** It is not
kept in memory, logged, or included in an error message. Tokens go only to
`api.appstoreconnect.apple.com` over HTTPS. A response that points anywhere
else is refused before a request is made, and a redirect is treated as a
failure and not followed.
**Reviews and tester comments are written by strangers.** Anyone can post an
App Store review. The server removes characters a person cannot see from
that text (control and format characters, including the Unicode tag block
used to smuggle hidden ASCII), marks every result that carries it as
third-party content, and tells the agent to treat it as data. That lowers
the risk of a review steering your agent; it does not remove it. If your
agent can also run commands or send data somewhere, keep a person in the
loop for what it does after reading reviews.
**What the tools leave out, and what they cannot.** The tools never return
the name or email address Apple stores for a tester. `beta_testers` asks
Apple for each tester's state and nothing else, and `testflight_feedback`
asks only for the fields it returns, so those fields never reach this
process. A comment is quoted as written: a tester who types their own
address into feedback has put it in the text.
**Nothing an agent passes can widen what a tool reads.** IDs are checked
before they are placed in a request path, numbers are bounded in the
published schema, and there is no `raw` parameter.
**`get` is for you, not the agent.** `appstore-connect-mcp get /v1/apps`
prints Apple's full response in a terminal, and Apple's full responses
include what the tools leave out: tester email addresses, and the demo
account's password on a version's review detail. An agent that can run shell
commands can run `get` too. It can also read the key file, so this adds
nothing to what such an agent can already reach, and it is one more reason to
give this server a key with a low role.
**A tag can be moved.** To pin harder, replace `@v1.0.0` in the install line
with the full commit hash the tag points to.
## Tools
| Tool | What it answers |
|---|---|
| `team_status` | Where every app stands: needs attention (rejected, removed from sale, blocked), marked for review but not submitted, with App Review, approved and awaiting release, about to lose its last TestFlight build in testing, ready for distribution, and still a draft. |
| `list_apps` | Every app, with the `app_id` the other tools take. |
| `app_overview` | One app at a glance: newest versions, latest builds, a summary of recent reviews. |
| `app_store_versions` | An app's versions, newest first, with review states and the day a phased release has reached. |
| `review_submission_status` | What is with App Review, in which state, since when, with a submission not yet sent first. |
| `submission_readiness` | What the newest version still lacks: a build, complete review contact details, empty required fields, and screenshots, per locale and device family. |
| `builds` | Recent builds with processing state, TestFlight state and expiry. |
| `beta_groups` | TestFlight groups, with tester counts for the first ten. |
| `beta_testers` | Tester counts by state. No names. |
| `testflight_feedback` | What testers wrote on screenshots and crash reports, with build, device and OS. |
| `customer_reviews` | Recent reviews, optionally only the low-rated ones, with a summary labeled as a sample. |
| `in_app_products` | Subscriptions and in-app purchases: each product's state, and the review state of its newest names, descriptions and images. |
| `xcode_cloud_builds` | Recent Xcode Cloud runs: result, workflow, commit, and error, warning and test-failure counts. |
| `sales_summary` | The newest posted day's first-time downloads, redownloads, updates, refunds and proceeds per app, per currency. |
`team_status` takes a handful of requests for most teams: one for up to 200
apps with their versions, one for up to 200 unexpired builds, and then the
TestFlight state of each app's newest build. An app whose internal and
external testers both have that build is settled there. For the others the
next five builds are asked about, and then the rest, 50 builds to a
request. A large team takes more: a request per further page of apps or
builds, a full read of any app with 50 or more versions, and, past 1,200
unexpired builds, each app's builds read on their own.
### What "ready for distribution" means
`team_status` reports Apple's own states and does not call anything "live"
or "released". Apple's page says a version that is Ready for Distribution
was accepted, and that distributing it also needs your agreements in effect.
Whether a given country can buy the app is a separate availability status
that App Store Connect shows and this server does not read.
## The daily pulse
```
$ appstore-connect-mcp pulse
PASS review-states: Example Notes IOS 2.4: WAITING_FOR_REVIEW -> PENDING_DEVELOPER_RELEASE
PASS new-reviews: 2 new, lowest 4 stars (Example Notes)
FAIL expiring-builds: Example Timer: last build in testing 13 expires in 3d
PASS units: 40 downloads, 120 updates on 2026-11-21 (top: Example Notes 25, Example Timer 9)
$ echo $?
1
```
`FAIL` means a person should look:
- a version was rejected, removed from sale, or is blocked (Apple's
`ACCEPTED` state means another item in the same submission was rejected),
- an app is no longer visible to the key,
- a review of two stars or fewer arrived,
- an app's internal or external testers are about to lose, or just lost,
their last TestFlight build,
- or part of the team could not be read, so a pass always means the whole
team was looked at. An app with more than 10,000 new reviews since the
last run is one such case: the run reports what it read and names the
time at or before which reviews were not all read.
An older build that a newer one has replaced running out is not reported.
A newer upload does not count as a replacement until testers have it: one
that failed review, lacks export compliance, or is ready and assigned to
nobody keeps nobody testing. Internal and external testers are followed
separately, because an upload that reaches your internal testers at once
does nothing for external testers still on an older build. The line says
whose build it is: `last build with external testers 11 expires in 2d`.
The first run saves a snapshot. With nothing to compare against, it reports
only versions that already need attention, plus expiring builds and
downloads. The snapshot is one file per team under
`~/.local/state/appstore-connect-mcp/`, readable only by you; `--state`
moves it and `--json` prints findings as JSON. Two runs cannot use one
snapshot at the same time, and a snapshot that is damaged or belongs to
another team fails the run instead of being quietly replaced.
No model runs, so a scheduled pulse costs nothing:
```
0 9 * * * $HOME/.local/bin/appstore-connect-mcp pulse >> $HOME/asc-pulse.log 2>&1 || osascript -e 'display notification "See ~/asc-pulse.log" with title "App Store Connect needs a look"'
```
Keep the output. A change is reported on the run that finds it and not
again, so a notification that only says "something failed" has thrown the
finding away by the time you look. The line above appends every run to a
log and points the notification at it. An expiring build is the exception:
it is reported on every run until it is replaced or gone.
Apple posts each day's sales report the following day, generally by 8 a.m.
Pacific. A pulse that runs earlier reports the day before's and says which
day it is reporting; it never announces the same day twice.
Downloads count first-time downloads only. Apple's daily report mixes them
with redownloads and updates, and adding those together reports every update
a person installs as a sale. Refunds are counted separately and never
subtracted from downloads.
## What it does not do
It does not upload builds, edit metadata, upload screenshots, change prices,
answer reviews or submit for review. Use [fastlane](https://fastlane.tools)
or Xcode for those. The two fit together: `submission_readiness` tells an
agent what a version is missing, and fastlane's `deliver` is what fills it
in.
It cannot tell you why App Review rejected a version. The tools read no
rejection message; in App Store Connect, open the app, follow the link about
unresolved issues, and read the submission's messages under App Review.
It does not tell you which screenshot sizes your app is required to have.
That depends on the devices the app runs on. `submission_readiness` reports
the screenshots each language has, by device family, and Apple's Screenshot
specifications page says which are required.
It leaves crash reports and field performance to Xcode. The MCP server in
Xcode 27 has tools for both.
## How it is tested
```bash
git clone https://github.com/blakecrosley/appstore-connect-mcp
cd appstore-connect-mcp
uv sync --locked --extra dev
uv run pytest --cov=appstore_connect_mcp # 464 tests, no network
uv run ruff check .
```
The tests replay responses recorded from the live API, so the formatters are
checked against the shapes Apple returns today. `scripts/capture_fixtures.py`
records them and keeps only their structure, their counts, ratings and small
ordinals, and Apple's own vocabulary: every ID, name, address, timestamp,
other number and free-text value is replaced, and a test fails if a string or number that its field does not
allow gets through. The set is recorded whole or not at all, and replaces
the old one only when every file is on disk.
Three shapes could not be recorded because the recording account had no such
data: Xcode Cloud build runs, an Xcode Cloud product, and a version in
phased release. Those fixtures are written from Apple's documentation and
listed in [tests/fixtures/documented](tests/fixtures/documented/README.md).
The reasoning behind the design is in [docs/DESIGN.md](docs/DESIGN.md).
## License
MIT. App Store, App Store Connect, TestFlight and Xcode are trademarks of
Apple Inc.