How to Set Up RevenueCat MCP: Paywall Testing and Subscription Checks with Your AI Agent

Connect Codex or Claude Code to RevenueCat MCP, then audit product mappings, review paywalls, plan sandbox tests, and investigate subscription issues.

A paywall can look finished and still sell the wrong product, unlock the wrong entitlement, or leave a customer stuck after restoring a purchase. Those checks often send you back and forth between your code, RevenueCat, and the app store.

RevenueCat’s MCP server brings subscription configuration into your AI assistant’s workflow. You can ask it to inspect a project, trace product relationships, and help investigate problems using your actual configuration. The server is hosted by RevenueCat at https://mcp.revenuecat.ai/mcp; you connect a compatible client rather than run a local RevenueCat server. RevenueCat MCP overview.

This guide covers setup in Codex and Claude Code, followed by practical prompts for paywall testing and subscription debugging. The examples below are suggested workflows, not results from a test on my own RevenueCat account. Setup details were checked against the official documentation on 25 November 2026.

What you need before connecting

Have a RevenueCat account, access to the project you want to inspect, and a current MCP-compatible client. For the terminal commands below, the codex or claude command must already work in Terminal.

RevenueCat recommends its AI Toolkit plugin. It bundles the MCP connection with skills that guide the agent through RevenueCat workflows. Installing only the MCP server gives the agent tools; the toolkit also supplies procedural guidance. OAuth access follows your RevenueCat account permissions. Official plugin guide.

If Terminal cannot find Codex: add it to your zsh PATH

On my Mac, Codex is bundled inside the ChatGPT app. Adding its folder to PATH lets me type codex in Terminal without entering the full executable path.

First, check that this copy exists:

ls "/Applications/ChatGPT.app/Contents/Resources/codex-cli/CodexCLI.app/Contents/MacOS/codex"

If it does, open your zsh configuration:

nano ~/.zshrc

Add this line once, keeping any existing settings:

export PATH="/Applications/ChatGPT.app/Contents/Resources/codex-cli/CodexCLI.app/Contents/MacOS:$PATH"

In nano, press Control-O, then Return to save, and Control-X to exit. Reload the settings and check the command:

source ~/.zshrc
command -v codex
codex --version

New Terminal windows will also load the setting automatically. This path worked on my installation; the bundled executable’s location may differ or change with an app update. If the file check fails, use the location of your installed Codex CLI instead.

1. Install the RevenueCat plugin in Codex

Run these commands in Terminal, in order:

codex plugin marketplace add RevenueCat/ai-toolkit
codex plugin add revenuecat@RevenueCat
codex mcp login RevenueCat

The first registers the marketplace; the second installs the plugin. Complete the browser sign-in opened by the login command, then start a new Codex task so its tools and skills load.

Check the installation with:

codex plugin list

Look for revenuecat@RevenueCat marked as installed and enabled. Notice the spelling: the plugin is revenuecat, while its MCP login name is RevenueCat. These commands follow RevenueCat’s current Codex instructions.

2. Or connect just the MCP server

If you want the connection without the toolkit, use:

codex mcp add revenuecat --url https://mcp.revenuecat.ai/mcp
codex mcp login revenuecat

Here the login name is lowercase because that is the server name you just registered. Choose this route or the plugin route initially, so you can identify which connection you are using.

In clients with a manual server form, use the endpoint above and select Streamable HTTP. OAuth is the simplest option where supported. If your client needs a bearer token, create a dedicated RevenueCat API v2 secret key under your project’s API Keys settings. Use read-only permissions for an audit and grant write access only for configuration work. An app’s public SDK key is not the secret key required for this connection. Keep secret keys out of app code, screenshots, and source control. See the MCP setup guide.

Using Claude Code instead

For the toolkit, RevenueCat documents:

claude plugins marketplace add RevenueCat/ai-toolkit
claude plugins install revenuecat

Or register only the remote server:

claude mcp add --transport http revenuecat https://mcp.revenuecat.ai/mcp

Complete authentication when prompted. The official toolkit repository also covers other clients.

3. Verify the connection with a small request

Use RevenueCat MCP to list the projects I can access. Show their names and IDs. Do not change anything. Tell me which read tools are available for inspecting offerings, products, and entitlements.

Confirm the project ID before proceeding. A plausible explanation of RevenueCat is not proof of a working connection: the answer should contain data returned from your account.

If tools disappear after restarting Codex, RevenueCat documents this workaround for its plugin connection:

codex mcp add RevenueCat --url https://mcp.revenuecat.ai/mcp
codex mcp login RevenueCat

This registers the server globally while retaining the plugin’s skills. See the toolkit troubleshooting notes.

Example 1: audit the paywall’s product wiring

An Offering groups the choices shown to a customer; Packages connect equivalent products across platforms. Entitlements represent the access purchases unlock. An Offering can contain a product without an entitlement, so check the relationships your app expects. How Offerings work.

Audit project [PROJECT_ID] and offering [OFFERING_ID] without making changes. For every package, show its platform, store product identifier, subscription duration, and attached entitlements. My monthly and annual subscriptions should both unlock “pro”. Flag missing products, mismatched durations, and missing “pro” mappings. Separate confirmed configuration problems from items that need checking in the app or store.

That produces something concrete to review: a package-to-product-to-entitlement table, rather than a generic “looks good”. Replace the bracketed placeholders with the IDs returned by your connection.

Example 2: review a paywall before testing purchases

The current MCP tools include paywall inspection and screenshot rendering. A rendered image helps with visual review; it cannot establish that a purchase succeeds. Tool availability depends on your permissions. MCP tools reference.

Inspect paywall [PAYWALL_ID] in project [PROJECT_ID]. If a screenshot-rendering tool is available, render it and explain which preview settings it supports. Review the hierarchy, subscription-period wording, trial wording, and visibility of restore and legal links. List anything you cannot verify. Do not publish or edit the paywall.

For a device preview, RevenueCat Mobile can display draft and published paywalls. Its purchase and restore controls are simulated, and variable prices use preview values. Use that preview to judge layout, not to verify actual prices or purchases. Paywall preview documentation.

Example 3: turn the review into a purchase test plan

Give the agent access to the app project as well as RevenueCat if you want it to inspect implementation code. Running the app or operating a Simulator requires separate build and device tools; the RevenueCat MCP connection alone does not provide them.

Prepare a paywall test plan for this app and offering [OFFERING_ID]. Cover a new customer, an existing subscriber, purchase cancellation, a failed purchase, restore after reinstall, and subscription expiry. For each case, state the setup, steps, expected entitlement state, and evidence to capture. Inspect the local purchase and restore code if available. Mark every case as planned, passed, failed, or blocked; do not claim an unexecuted case passed.

Start early development with RevenueCat’s Test Store. Before release, also test the real store integration in Apple or Google’s sandbox. Test Store does not exercise StoreKit or Google Play edge cases, and its SDK key must be replaced with the platform-specific key before production. Sandbox prices and descriptions can also differ from production, so distinguish purchase-flow checks from price verification. Sandbox testing guide.

Example 4: investigate an empty Offering

My app returns an empty current Offering. Compare project [PROJECT_ID] with the local SDK configuration and debug logs. Check the selected app, product identifiers, package mappings, and the Offering that should reach this test customer. Show the first confirmed mismatch and the next diagnostic step. Do not change configuration yet.

Supply the relevant logs with secrets removed. RevenueCat’s debug logs and debug UI can expose SDK configuration, available Offerings, and customer entitlement information. This helps the agent connect dashboard evidence with what the running app actually receives. SDK debugging guide.

Example 5: prepare a controlled paywall comparison

Propose an A/B test comparing the current paywall with a version that explains the annual plan more clearly. Keep products and prices unchanged. Define the hypothesis, primary metric, guardrails, and what evidence would be insufficient to choose a winner. Inspect existing experiments first. Prepare a plan only; do not publish a paywall or start an experiment.

Where permitted, MCP also exposes draft experiment creation and experiment results. Treat publishing and starting a test as separate decisions: publishing a paywall can affect production users immediately. Check your connected tool list before requesting changes. Available read and write tools.

If the connection fails

For an unauthorized response, check the account or API v2 key, its project, and its permissions. Missing tools can simply mean the credentials do not grant their required scopes. OAuth errors such as an unknown client or invalid redirect URI may require RevenueCat support. You can revoke an OAuth connection under RevenueCat’s Account → Security. Official troubleshooting guide.

A useful first task

Start with one Offering and ask for its product and entitlement map. Then use the findings to choose a visual check or a purchase test. That gives the agent a clear question and gives you evidence you can compare with the app.

For another practical MCP workflow, see my guide to Apple’s Pages, Numbers, and Keynote MCP servers.