# onesub MCP Server [Health: Active]

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/jeonghwanko/onesub  
**GitHub Stars:** 17  
**npm Downloads (last month):** 385  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/onesub-mcp-server

## Description
MCP server for onesub — AI tools for setting up in-app subscriptions in React Native / Expo apps

## Tools
Capabilities this server exposes over MCP:

- **onesub_setup** — Analyze the current project and generate onesub integration code. Detects framework (Expo, React Native CLI, bare RN) and generates appropriate setup code.
- **onesub_add_paywall** — Generate a customized paywall screen for the app.
- **onesub_check_status** — Check a user's subscription status via the onesub server.
- **onesub_troubleshoot** — Diagnose common IAP issues and provide solutions.
- **onesub_create_product** — Create a subscription, consumable, or non-consumable IAP product on Apple App Store Connect and/or Google Play Console. Accepts either appleAppId (numeric) or appleBundleId for Apple. Automatically sets the price and adds Korean localization for KRW products. Use productType to select subscription (default), consumable, or non_consumable.
- **onesub_list_products** — List all IAP products (subscriptions, consumables, non-consumables) registered on Apple App Store Connect and/or Google Play Console
- **onesub_view_subscribers** — View subscribers from the onesub server. Pass userId for one user's subscription status (no secret needed). Omit userId and pass adminSecret (the server's config.adminSecret) for aggregate active-subscriber counts (GET /onesub/metrics/active) plus a first page of subscription records (GET /onesub/admin/subscriptions).
- **onesub_simulate_purchase** — Simulate a purchase against a onesub server running in mockMode (started via `npx @onesub/cli dev`). Drives the full validation flow with no real App Store / Play Store credentials — sends a MOCK_* receipt that the server's mock provider decodes into the chosen outcome (new / revoked / expired / invalid / network_error / sandbox). Use to exercise app error paths, verify integration, or drive end-to-end test scenarios from an AI agent.
- **onesub_simulate_webhook** — Send a simulated Apple or Google webhook notification to an onesub server to test lifecycle transitions without real store credentials. Builds a fake (unsigned) payload and POSTs it to /onesub/webhook/apple or /onesub/webhook/google. Requires the server to have skipJwsVerification: true (set automatically by `npx @onesub/cli dev`). Against a server running with NODE_ENV=production the Google endpoint also needs google.pushAudience or google.allowUnauthenticatedWebhook, or it answers 401. Apple types: SUBSCRIBED, DID_RENEW, DID_RECOVER, OFFER_REDEEMED, DID_FAIL_TO_RENEW, GRACE_PERIOD_EXPIRED, EXPIRED, REFUND, REVOKE. Google types: purchased, renewed, recovered, restarted, canceled, revoked, expired, on_hold, grace_period, paused, price_change_confirmed.
- **onesub_inspect_state** — Read the current subscription + one-time purchase state for a user from the onesub server in one call. Useful after simulating purchases to confirm the server recorded them, or when debugging 'isActive' mismatches.
- **onesub_manage_product** — Update or delete an existing IAP product on Apple App Store Connect and/or Google Play Console. Use action="update" to rename a product, or action="delete" to remove it. Note: Apple products that are already approved (READY_FOR_SALE) cannot be deleted via the API — use App Store Connect to remove them manually.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "onesub-mcp-server": {
    "command": "npx",
    "args": ["-y","@onesub/mcp-server"]
  }
}
```

## Documentation

## What onesub MCP Server MCP server does

The onesub MCP Server MCP server is intended for AI-assisted setup of onesub in React Native and Expo applications. The underlying onesub system works with `react-native-iap`: the mobile library starts purchases, while a backend validates receipts, receives store notifications, and records entitlement state.

The repository describes support for Apple App Store and Google Play subscription workflows. It also covers one-time purchases, including consumable and non-consumable products. A developer can use the resulting backend routes to validate purchases, check a user’s current subscription, list purchase records, and process store lifecycle events.

For the AllMCPs Developer Tools category, this server is most relevant when an agent needs to help connect mobile purchase code with the corresponding server-side subscription implementation. The README identifies packages for the server, SDK, and MCP server, but does not provide a complete list of MCP-specific tool names or tool schemas.

## How it works

The application-side flow uses `react-native-iap` to obtain purchase receipts. The backend then accepts those receipts through onesub validation routes. Subscription validation is associated with a user and stored in a database; status requests expose whether access is currently active. One-time purchase validation similarly records purchases and can distinguish a new purchase from a restored or repeated transaction.

Store notifications are handled through separate Apple and Google webhook routes. These notifications support lifecycle changes such as renewal, grace periods, holds, pauses, refunds, cancellations, and expiration. The system also exposes administrative routes when an admin secret is configured, including filtered subscription inspection, customer profiles, purchase transfer, manual grants, and selected webhook or Apple synchronization operations.

## Setup and configuration

The documented application integration installs `@onesub/server` with npm and mounts `createOneSubMiddleware` in an Express application. Configuration can include an Apple bundle ID and shared secret, a Google package name and service-account key, a database URL, and PostgreSQL subscription and purchase stores.

The README requires Node.js 20 or newer for the published project and identifies iOS and Android as supported platforms. Apple and Google credentials are needed for the corresponding receipt-validation paths. An `adminSecret` enables administrative routes, which require the `X-Admin-Secret` request header.

## Tools and capabilities

Documented onesub capabilities include:

- Validate Apple and Google subscription receipts.
- Process Apple App Store Server Notifications V2 and Google real-time developer notifications.
- Track subscription lifecycle and expose active entitlement status.
- Validate consumable and non-consumable purchases.
- List user purchases and inspect customer records.
- Manage selected testing, migration, webhook replay, and Apple synchronization tasks through opt-in admin routes.

The onesub MCP Server MCP server is therefore a fit for agent-assisted implementation discussions around mobile subscriptions, but exact MCP tool coverage should be verified from the package documentation before relying on a particular operation.

## Limitations and notes

Receipt validation, webhook handling, and subscription persistence depend on the underlying onesub backend configuration; the MCP listing alone does not replace Apple, Google, database, or Express setup. Sandbox entitlement overrides are process-local and non-persistent, and in multi-instance deployments apply only to the instance that receives the request.

No README information names supported MCP clients. It also does not specify authentication requirements for MCP connections, transport details, tool schemas, or whether the MCP package directly provisions the backend resources described above.

_Full upstream README: https://allmcps.com/mcp/onesub-mcp-server/readme_

