appstoreconnect-mcp

v0.3.1
@davidneyra2804/appstoreconnect-mcp Checked 1 hour ago Published 13 days ago

Read-only MCP stdio server for the Apple App Store Connect API, with 12 read-only tools for apps, TestFlight, reviews, sales, pricing and analytics

A read-only MCP (Model Context Protocol) server for Apple's App Store Connect API, with 12 tools that only read. The local stdio transport connects to Claude Desktop, Cursor, Windsurf, or any other MCP client. The server sends only GET requests to the API. πŸ“¦ npm: @davidneyra2804/appstoreconnect-mcp 🍎 Data: apps, App Store versions, TestFlight builds, beta groups, reviews, sales reports, app information, pricing, availability, in-app purchases, and analytics πŸ”‘ Credentials: App Store Connect API key (.p8), pasted inline as APPLE_PRIVATE_KEY πŸ“„ License: MIT β€” LICENSE and NOTICE 1.

Summary extracted from the README.

🍎 appstoreconnect-mcp

npm License: MIT Node.js

A read-only MCP (Model Context Protocol) server for Apple's App Store Connect API, with 12 tools that only read. The local stdio transport connects to Claude Desktop, Cursor, Windsurf, or any other MCP client. The server sends only GET requests to the API.

πŸ“¦ npm: @davidneyra2804/appstoreconnect-mcp 🍎 Data: apps, App Store versions, TestFlight builds, beta groups, reviews, sales reports, app information, pricing, availability, in-app purchases, and analytics πŸ”‘ Credentials: App Store Connect API key (.p8), pasted inline as APPLE_PRIVATE_KEY πŸ“„ License: MIT β€” LICENSE and NOTICE


πŸ’‘ Quick start

1. Generate an API key

  1. Go to App Store Connect β†’ Users and Access β†’ Integrations β†’ App Store Connect API.
  2. Create a .p8 key and record its Key ID and Issuer ID. The contents of the downloaded file are what goes into APPLE_PRIVATE_KEY.

2. Add the server to your MCP client

{
  "mcpServers": {
    "appstoreconnect": {
      "command": "npx",
      "args": ["-y", "@davidneyra2804/appstoreconnect-mcp"],
      "env": {
        "APPLE_KEY_ID": "TU_KEY_ID",
        "APPLE_ISSUER_ID": "TU_ISSUER_ID",
        "APPLE_PRIVATE_KEY": "-----BEGIN PRIVATE KEY-----\n...\n-----END PRIVATE KEY-----"
      }
    }
  }
}

Configuration file locations: Claude Desktop ~/Library/Application Support/Claude/claude_desktop_config.json, Cursor ~/.cursor/mcp.json, Windsurf ~/.codeium/windsurf/mcp_config.json, VS Code .vscode/mcp.json.

APPLE_PRIVATE_KEY takes the PEM text of the .p8 key. Three forms are accepted: the PEM with real line breaks, the same PEM with the line breaks escaped as \n (the form above, the one that survives a JSON file), and the base64 of the whole PEM. Inline is the recommended form, because a client that runs in another environment may not be able to read a path on your disk.

If the client runs on the same machine as the .p8 file, APPLE_PRIVATE_KEY_PATH is an alternative to APPLE_PRIVATE_KEY:

"env": {
  "APPLE_KEY_ID": "TU_KEY_ID",
  "APPLE_ISSUER_ID": "TU_ISSUER_ID",
  "APPLE_PRIVATE_KEY_PATH": "/ruta/a/la/clave.p8"
}

If both are set, APPLE_PRIVATE_KEY takes precedence.

The server exchanges JSON-RPC messages over stdin and stdout. An idle terminal is expected.


πŸ› οΈ Tools

All 12 tools are read-only.

Tool Arguments Returns
list_apps β€” Apps visible to the account: ID, name, bundle ID, SKU, and status
get_app appId One app
list_app_store_versions appId App Store versions, newest first
list_builds appId TestFlight builds, newest first
list_beta_groups appId TestFlight beta groups
list_customer_reviews appId, limit (1–200, default 50) Customer reviews
get_sales_report appId, date (YYYY-MM-DD, defaults to yesterday) Units and proceeds by currency
get_app_info_details appId App information: status, age rating, categories, and name, subtitle, and privacy policy by language
get_app_pricing appId Pricing by territory: customer price, developer proceeds, and currency
get_app_availability appId Availability by territory: whether the app is available, release date, pre-order details, and content statuses
get_in_app_purchases appId In-app purchases: name, product ID, type, and status
get_analytics appId App analytics report requests and the reports they produced

πŸ’¬ Example prompts

  • "Show me my app's latest TestFlight builds and their processing status."
  • "What themes recur in last week's one-star reviews?"
  • "Give me yesterday's sales report, broken down by currency."
  • "Which App Store versions has my app published, and what status is each one in?"
  • "In which countries is my app available, and how much does it cost in each?"
  • "What in-app purchases does my app currently have, and what status is each one in?"
  • "What is my app's age rating in each country?"

πŸ”‘ Environment variables

Variable Required Description
APPLE_KEY_ID Yes Key ID of the .p8 key
APPLE_ISSUER_ID Yes App Store Connect Issuer ID (team ID)
APPLE_PRIVATE_KEY Yes* PEM text of the .p8 key: real line breaks, \n escapes, or base64. Recommended
APPLE_PRIVATE_KEY_PATH Yes* Path to the .p8 file, as an alternative to APPLE_PRIVATE_KEY
APPLE_APP_ID No Restricts the server to one app (App Store Connect ID)
APPLE_BUNDLE_ID No Restricts the server to one app (bundle ID)
APPLE_APP_STORE_SKU No Restricts the server to one app (App Store ID)
APPLE_VENDOR_NUMBER No Vendor number. Required for get_sales_report
LOG_LEVEL No debug, info (default), warn, or error

* Configure one of the two: APPLE_PRIVATE_KEY (recommended) or APPLE_PRIVATE_KEY_PATH.

If you set multiple scope variables, every variable must identify the same app. The scope remains limited to that app. See NOTES.md for details.


πŸ’» Local development

git clone https://github.com/davidneyra2804/appstoreconnect-mcp.git
cd appstoreconnect-mcp
npm install
npm run build
npm test
Command Purpose
npm run build Compiles to dist/
npm start Starts the server over stdio
npm run dev Starts the server in development mode (tsx)
npm test Runs the full suite offline without real credentials

πŸ”’ Guarantees

  • Read-only. The inventory lives in src/tools.ts. The test suite checks that the registered tools match it exactly and that the server exposes zero write tools.
  • Scope checks precede API requests. If you restrict the server to one app, it checks the scope before calling the API.
  • The protocol owns stdout. Diagnostics and traces go to stderr, and the server redacts secrets before writing logs.

πŸ“„ Further details

NOTES.md covers architecture, the sales report contract, the endpoint and limitations of each tool, npm publishing, troubleshooting, and a comparison with ryaker/appstore-connect-mcp, the project that inspired the design.

🀝 Contributing

Issues and pull requests are welcome. Use the issue tracker to report problems or propose changes. Submit code from a branch (feature/..., fix/...) in a pull request targeting main.

πŸ“„ License

MIT β€” LICENSE. Upstream attribution: NOTICE.