# RevenueDot [Health: Active]

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/revenuedot/mcp  
**GitHub Stars:** 0  
**npm Downloads (last month):** 99  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/revenuedot

## Description
Open-source RevenueCat alternative: 38 tools for subscriptions, customers, webhooks and revenue.

## Tools
Capabilities this server exposes over MCP:

- **list-projects** — Projects this key or connection can use
- **list-apps** — Apps, one per store
- **create-app** — Adds a Test Store, App Store (bundle id) or Google Play (package name) app; no credentials
- **list-public-api-keys** — The app's public SDK key (`appl_`, `goog_`, `test_`), which ships inside the app
- **list-products** — Products, optionally for one app
- **create-product** — Adds a store product to an app
- **list-entitlements** — Entitlements with their products
- **create-entitlement** — Adds an entitlement such as `pro
- **attach-products-to-entitlement** — Makes products unlock an entitlement
- **list-offerings** — Offerings with packages and products
- **create-offering** — Adds an offering, optionally current
- **create-packages** — Adds a package to an offering
- **attach-products-to-package** — Puts products in a package
- **get-customer** — Customer, active entitlements, attributes, subscriptions, purchases
- **grant-customer-entitlement** — Promotional access until a date (creates the customer if new)
- **revoke-customer-entitlement** — Ends granted access
- **list-webhook-integrations** — Webhooks
- **create-webhook-integration** — Adds a webhook
- **get-import-status** — Customers, subscriptions and pending Google tokens after `npx revenuedot import
- **get-project-health** — Per app: do the store credentials work, do notifications arrive; are webhooks delivered
- **get-metrics** — Overview cards, or one metric's daily history
- **list-customers** — Newest first, or search by app user id, email or transaction id
- **list-transactions** — Purchases, renewals, trials and refunds
- **list-events** — The event log (the events webhooks send), by customer, type or environment
- **set-customer-attributes** — Sets or deletes attributes (destructive: it overwrites)
- **delete-customer** — Deletes a customer's data (destructive)
- **extend-subscription** — Free days, or until a date
- **cancel-subscription** — Cancels at period end (destructive)
- **refund-subscription** — Refunds and ends access (destructive)
- **create-test-purchase** — Simulates a Test Store purchase lifecycle
- **archive-offering** — Hides an offering (destructive)
- **list-webhook-deliveries** — Delivery attempts, by status
- **retry-webhook-delivery** — Sends a delivery again
- **send-test-webhook** — Sends a TEST event
- **delete-webhook-integration** — Deletes a webhook (destructive)
- **verify-store-credentials** — Calls Apple or Google with the saved key and reports whether it works
- **get-app-store-settings** — Notification URL for App Store Connect or Pub/Sub, forward URL, last notification and forward; credentials only as configured or not
- **update-app** — Renames an app, sets or clears `notification_forward_url`, sets `track_new_purchases`; no credentials (destructive: it changes where store notifications go)

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

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

## Documentation & README

<div align="center">

<picture>
  <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/revenuedot/revenuedot/main/brand/kit/wordmark/revenuedot-lockup-white.svg">
  <img alt="RevenueDot" src="https://raw.githubusercontent.com/revenuedot/revenuedot/main/brand/kit/wordmark/revenuedot-lockup-black.svg" height="44">
</picture>

# RevenueDot MCP server

**Connect Claude, ChatGPT, Cursor and other AI assistants to RevenueDot, the open-source RevenueCat alternative.** 38 tools to set up apps, products, entitlements and offerings, find customers, grant access and check webhooks, hosted at `mcp.revenuedot.app` or run locally.

[Main repository](https://github.com/revenuedot/revenuedot) · [Docs](https://revenuedot.app/docs/guides/connect-ai-assistants) · [Agent skills](https://github.com/revenuedot/agent-skills) · [Start for free on RevenueDot Cloud](https://app.revenuedot.app/signup)

[![npm](https://img.shields.io/npm/v/%40revenuedot%2Fmcp?label=%40revenuedot%2Fmcp&color=0A0A0A)](https://www.npmjs.com/package/@revenuedot/mcp)
[![License: MIT](https://img.shields.io/badge/license-MIT-0A0A0A)](LICENSE)
[![Hosted](https://img.shields.io/badge/hosted-mcp.revenuedot.app-0A0A0A)](https://mcp.revenuedot.app/mcp)

Learn more: [RevenueCat MCP server, official and open source](https://revenuedot.app/revenuecat-mcp): config for Claude Code, Claude, Codex, Cursor, ChatGPT and Windsurf, the tool table, the approval model, and what RevenueCat's own MCP server offers.

</div>

[![Watch the 87-second demo of RevenueDot in ChatGPT](https://revenuedot.app/videos/revenuedot-chatgpt-demo.webp)](https://revenuedot.app/videos/revenuedot-chatgpt-demo.mp4)

The server has 38 tools to create apps and read their SDK keys and store notification settings, set up products, entitlements, offerings and packages, find customers and read their history, grant, extend, cancel or refund, add and debug webhooks, check store credentials, read revenue metrics and follow an import from RevenueCat. It is also the server behind the RevenueDot ChatGPT plugin and Claude connector (install: [`revenuedot/agent-skills`](https://github.com/revenuedot/agent-skills)). Tool names match [RevenueCat's MCP tools](https://www.revenuecat.com/docs/tools/mcp/tools-reference) where the tool does the same thing, so prompts written for RevenueCat work here.

> Status (2026-09-30): the hosted server is live at `https://mcp.revenuedot.app/mcp`, in front of RevenueDot Cloud (`https://api.revenuedot.app`). The local server is published on npm as [`@revenuedot/mcp`](https://www.npmjs.com/package/@revenuedot/mcp), so `npx -y @revenuedot/mcp` runs the latest release.

## Connect

**Hosted (Streamable HTTP):** `https://mcp.revenuedot.app/mcp`. Your client signs you in with OAuth, or you send `Authorization: Bearer sk_...`. `https://mcp.revenuedot.app/claude/mcp` (the Claude connector) serves the same 38 tools. `https://mcp.revenuedot.app/chatgpt/mcp` (the ChatGPT plugin) serves 37: it leaves out `refund-subscription`, because OpenAI does not list plugins that move money.

**Free knowledge server, no sign-in:** `https://mcp.revenuedot.app/kit/mcp` serves six read-only tools (`search-monetization-knowledge`, `list-paywall-patterns`, `get-paywall-pattern`, `get-store-guideline`, `get-code-snippet`, `list-skills`) with sourced paywall patterns, App Store and Google Play rules and code snippets. It needs no account or key, never calls a RevenueDot project, and every result ends with a line saying RevenueDot maintains it. It is the free half of the RevenueDot App Monetization plugin in [`revenuedot/agent-skills`](https://github.com/revenuedot/agent-skills). The data lives in `src/kit/data/`.

**Local (stdio), for RevenueDot Cloud or your own server** (`REVENUEDOT_URL` defaults to `https://api.revenuedot.app`):

```bash
# Claude Code
claude mcp add revenuedot -e REVENUEDOT_API_KEY=sk_... -e REVENUEDOT_URL=https://your-server -- npx -y @revenuedot/mcp
```

```json
{
  "mcpServers": {
    "revenuedot": {
      "command": "npx",
      "args": ["-y", "@revenuedot/mcp"],
      "env": { "REVENUEDOT_API_KEY": "sk_...", "REVENUEDOT_URL": "https://your-server" }
    }
  }
}
```

Create the secret key under **API keys** in the RevenueDot dashboard. Give it only the permissions you want the assistant to have: a key with read scopes only cannot change anything, and a tool call that needs more gets an error naming the missing permission.

**Self-hosted HTTP:** `npx -y @revenuedot/mcp --http --port 8788 --url https://your-server` serves `http://127.0.0.1:8788/mcp`. Put it behind your reverse proxy with `--host 0.0.0.0 --public-url https://mcp.your-domain`. OAuth works against your own server too: it is the authorization server.

## Auth

1. **Secret key (bearer).** `Authorization: Bearer sk_...` is passed to the RevenueDot REST API v2, which checks the key's project and scopes.
2. **OAuth 2.1.** The RevenueDot server is the authorization server (`/.well-known/oauth-authorization-server`, dynamic client registration, authorization code with PKCE S256). The consent screen uses your dashboard session: you pick one project and read-only or read-and-write access. The access token is a secret key limited to that project and those scopes. It is listed under API keys as `OAuth: <client name>` and you revoke it there. This server publishes `/.well-known/oauth-protected-resource` and answers `401` with `WWW-Authenticate` so clients find the sign-in on their own.

## Tools

Every tool takes an optional `project_id`. Leave it out when the key or connection has one project.

| Tool | What it does | API v2 call |
|---|---|---|
| `list-projects` | Projects this key or connection can use | `GET /v2/projects` |
| `list-apps` | Apps, one per store | `GET /apps` |
| `create-app` | Adds a Test Store, App Store (bundle id) or Google Play (package name) app; no credentials | `POST /apps` |
| `list-public-api-keys` | The app's public SDK key (`appl_`, `goog_`, `test_`), which ships inside the app | `GET /apps/{id}/public_api_keys` |
| `list-products` | Products, optionally for one app | `GET /products` |
| `create-product` | Adds a store product to an app | `POST /products` |
| `list-entitlements` | Entitlements with their products | `GET /entitlements` |
| `create-entitlement` | Adds an entitlement such as `pro` | `POST /entitlements` |
| `attach-products-to-entitlement` | Makes products unlock an entitlement | `POST /entitlements/{id}/actions/attach_products` |
| `list-offerings` | Offerings with packages and products | `GET /offerings` |
| `create-offering` | Adds an offering, optionally current | `POST /offerings` |
| `create-packages` | Adds a package to an offering | `POST /offerings/{id}/packages` |
| `attach-products-to-package` | Puts products in a package | `POST /packages/{id}/actions/attach_products` |
| `get-customer` | Customer, active entitlements, attributes, subscriptions, purchases | `GET /customers/{id}` and sub-resources |
| `grant-customer-entitlement` | Promotional access until a date (creates the customer if new) | `POST /customers/{id}/actions/grant_entitlement` |
| `revoke-customer-entitlement` | Ends granted access | `POST /customers/{id}/actions/revoke_granted_entitlement` |
| `list-webhook-integrations` | Webhooks | `GET /integrations/webhooks` |
| `create-webhook-integration` | Adds a webhook | `POST /integrations/webhooks` |
| `get-import-status` | Customers, subscriptions and pending Google tokens after `npx revenuedot import` | `GET /import/status` |
| `get-project-health` | Per app: do the store credentials work, do notifications arrive; are webhooks delivered | `GET /setup_health` |
| `get-metrics` | Overview cards, or one metric's daily history | `GET /metrics/overview`, `/metrics/history` |
| `list-customers` | Newest first, or search by app user id, email or transaction id | `GET /customers` |
| `list-transactions` | Purchases, renewals, trials and refunds | `GET /transactions` |
| `list-events` | The event log (the events webhooks send), by customer, type or environment | `GET /events` |
| `set-customer-attributes` | Sets or deletes attributes (destructive: it overwrites) | `POST /customers/{id}/attributes` |
| `delete-customer` | Deletes a customer's data (destructive) | `DELETE /customers/{id}` |
| `extend-subscription` | Free days, or until a date | `POST /subscriptions/{id}/actions/extend` |
| `cancel-subscription` | Cancels at period end (destructive) | `POST /subscriptions/{id}/actions/cancel` |
| `refund-subscription` | Refunds and ends access (destructive) | `POST /subscriptions/{id}/actions/refund` |
| `create-test-purchase` | Simulates a Test Store purchase lifecycle | `POST /test_purchases` |
| `archive-offering` | Hides an offering (destructive) | `POST /offerings/{id}/actions/archive` |
| `list-webhook-deliveries` | Delivery attempts, by status | `GET /webhooks/{id}/deliveries` |
| `retry-webhook-delivery` | Sends a delivery again | `POST /webhooks/{id}/deliveries/{id}/retry` |
| `send-test-webhook` | Sends a TEST event | `POST /integrations/webhooks/{id}/test` |
| `delete-webhook-integration` | Deletes a webhook (destructive) | `DELETE /integrations/webhooks/{id}` |
| `verify-store-credentials` | Calls Apple or Google with the saved key and reports whether it works | `POST /apps/{id}/actions/verify_credentials` |
| `get-app-store-settings` | Notification URL for App Store Connect or Pub/Sub, forward URL, last notification and forward; credentials only as configured or not | `GET /apps/{id}/store_settings` |
| `update-app` | Renames an app, sets or clears `notification_forward_url`, sets `track_new_purchases`; no credentials (destructive: it changes where store notifications go) | `POST /apps/{id}` |

No tool accepts a key, password or credential: store keys and webhook headers are entered in the dashboard. Creating a webhook returns its signing secret once.

### OAuth scopes

| Scope | Lets the assistant | Tools |
|---|---|---|
| `project:read` | Read everything | the 17 read-only tools |
| `project:write` | Create and update apps, change the catalog, grant and revoke access, manage webhooks, delete customers | 17 tools (12 writes, 5 destructive) |
| `project:support` | Cancel, refund and extend subscriptions, make Test Store purchases. Asked for separately, only when a tool needs it | `extend-subscription`, `cancel-subscription`, `refund-subscription`, `create-test-purchase` |

A tool that needs more than the connection has returns an error with `_meta["mcp/www_authenticate"]`, which ChatGPT and Claude use to ask you for the missing access. Every tool descriptor also carries `_meta.securitySchemes`.

`scripts/verify-live.mjs` checks a deployed server against the directories' rules (`REVENUEDOT_MCP_TOKEN=sk_... node scripts/verify-live.mjs`).

Entitlements can be named by id or lookup key. `expires_at` takes milliseconds, an ISO date or a duration such as `30d`.

## Use the tools without MCP

The tool definitions and executors depend only on zod and a small API client, so an in-app agent can reuse them:

```ts
import { createClient } from "@revenuedot/mcp";
import { tools, runTool } from "@revenuedot/mcp/tools";

const client = createClient({ baseUrl: "https://api.revenuedot.app", apiKey: process.env.REVENUEDOT_API_KEY! });
await runTool(client, "grant-customer-entitlement", { customer_id: "user_42", entitlement_id: "pro", expires_at: "30d" });
```

## Use with your coding agent

Coding agents can read this repository on demand, so they use the right package, imports and API:

- **Context7:** https://context7.com/revenuedot/mcp
- **DeepWiki:** https://deepwiki.com/revenuedot/mcp
- **GitMCP:** https://gitmcp.io/revenuedot/mcp

## Develop

```bash
pnpm install
pnpm test        # starts a real RevenueDot server from ../revenuedot (or REVENUEDOT_REPO) on in-memory Postgres
pnpm typecheck
pnpm dev         # HTTP on :8788 against REVENUEDOT_URL
pnpm run deploy  # Cloudflare Worker with the cf CLI (cloudflare.config.ts, Circo account); needs Node 22.18+
```

Use Node 24. CI (`.github/workflows/ci.yml`) runs typecheck, build and tests on every push and pull request. On `main` it then deploys `mcp.revenuedot.app` with the `production` environment's secrets and checks it live with `scripts/verify-live.mjs`: the protected resource metadata answers and `POST /mcp` without a token answers 401. Pushing to `main` is a production deploy.

RevenueDot is not affiliated with RevenueCat, Inc.

