storekit-verify-mcp
Decode and cryptographically verify Apple App Store Server Notifications V2 with full ES256 signature and certificate chain validation, and explain notification types.
README
storekit-verify-mcp
Decode and cryptographically verify Apple App Store Server Notifications V2 — as an MCP server and a CLI.
Apple delivers subscription webhooks (SUBSCRIBED, DID_RENEW, EXPIRED, REFUND, …) as signed JWS payloads. Verifying them properly means checking the ES256 signature, walking a 3-certificate chain to a pinned Apple root, checking Apple's policy OIDs, and doing it again for the nested transaction and renewal payloads. Most servers either skip verification entirely or trust a decode. This tool does it right, and explains what each notification means while it's at it.
I built this logic for Talli, my live App Store app, where server-side webhook verification drives subscription entitlements. This is that experience packaged as a standalone tool.
What it checks
- ✅ ES256 signature of the outer
signedPayloadand the nestedsignedTransactionInfo/signedRenewalInfo - ✅ Full x5c chain: leaf → intermediate → root, each link's signature verified
- ✅ Root pinned to Apple Root CA – G3 (bundled, SHA-256 fingerprint documented in source)
- ✅ Apple's policy OIDs on the leaf (receipt signing) and intermediate (WWDR)
- ✅ Certificate validity windows at the payload's
signedDate - ✅ Optional
bundleIdandenvironment(Sandbox/Production) assertions
MCP server
Add to Claude Code:
claude mcp add storekit-verify -- npx -y github:tranzen21/storekit-verify-mcp
Or any MCP client:
{
"mcpServers": {
"storekit-verify": {
"command": "npx",
"args": ["-y", "github:tranzen21/storekit-verify-mcp"]
}
}
}
Tools
| Tool | What it does |
|---|---|
verify_notification |
Full cryptographic verification → {valid, errors[], decoded} |
decode_notification |
Decode without verification (inspect payloads fast) |
decode_transaction |
Decode a single signed transaction/renewal JWS |
explain_notification_type |
What a notificationType/subtype means and how to handle it |
Ask your agent things like "verify this webhook body and tell me if I should revoke entitlement" — it can decode, verify, and explain in one pass.
CLI
# Verify a webhook body (file or stdin). Exit code 0 = valid.
npx github:tranzen21/storekit-verify-mcp storekit-verify verify webhook.json \
--bundle-id com.example.app --environment Production
# Decode without verification
storekit-verify decode webhook.json
# What does DID_FAIL_TO_RENEW / GRACE_PERIOD mean?
storekit-verify explain DID_FAIL_TO_RENEW GRACE_PERIOD
Library
import { verifyNotification } from "storekit-verify-mcp";
const result = await verifyNotification(requestBody, {
expectedBundleId: "com.example.app",
expectedEnvironment: "Production",
});
if (!result.valid) throw new Error(result.errors.join("; "));
// result.decoded.payload.notificationType, result.decoded.transactionInfo, ...
Development
npm install
npm run fixtures # generates a test CA chain (openssl) + signed sample payloads
npm test # builds + runs node:test suite
The test suite covers: valid chain verification, root-pin rejection, mismatched-key signatures, tampered payloads, bundle/environment mismatches, expired certificates, and malformed input.
Notes
- Requires Node 20+.
- No network calls at runtime: the Apple root is bundled; verification is fully offline.
- Not affiliated with or endorsed by Apple. For the official server library, see apple/app-store-server-library-node — this project exists to make the same verification available to MCP agents and as a zero-setup CLI.
License
MIT © Marcquin Taylor
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
Neon Database
MCP server for interacting with Neon Management API and databases
E2B
Using MCP to run code via e2b.
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.