# MCP Monetize - Drop-in Billing & Capability Token Engine

> MCP Monetize - Drop-in Billing & Capability Token Engine is an open-source MCP server for developer tools. Drop-in billing, quotas and paywall middleware for MCP server tool calls. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** API, Self-hosted
- **Repository:** https://github.com/ritualdev-lab/mcp-monetize
- **MCP Registry name:** io.github.RitualDev-Lab/mcp-monetize
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-20

## About

The README says mcp-monetize wraps an MCP tool handler so each user gets a set number of free calls, after which the tool returns a markdown message with a checkout link instead of running. Credits can be stored in memory, a JSON file, SQLite, or Redis/Upstash, which matters for servers that restart or run serverless.

Payments are handled through Dodo Payments or Stripe. A webhook handler is included that verifies incoming payment events and adds credits to the user's balance when a checkout completes. A separate HMAC-based license key helper is offered for offline or client-side distribution where users paste a key into their MCP client config.

The package is aimed at developers who publish MCP servers for clients such as Claude Desktop, Cursor or Windsurf and want to charge per call or per month. The repository also points to a separate paid starter kit and sponsorship options from the same vendor.

## Features

- **Per-call quota wrapper:** Wraps an existing tool handler so free calls are counted per user before the paywall appears.
- **Pluggable credit storage:** Offers in-memory, JSON file, SQLite and Redis/Upstash stores for tracking balances.
- **Payment webhook handling:** Verifies Dodo Payments and Stripe webhook signatures and credits accounts after checkout.
- **Custom paywall messages:** Lets developers change the markdown shown to the user when credits run out.
- **HMAC license keys:** Generates and verifies time-limited license keys for offline or client-side distribution.

## Good for

- Charging per query for a paid data or API tool exposed over MCP
- Offering a free trial quota before asking users to top up
- Selling monthly access to an MCP server using license keys
- Tracking usage credits across restarts in a self-hosted server

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add mcp-monetize -- npx -y @ritualdev-lab/mcp-monetize
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

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

### Claude Desktop (claude_desktop_config.json)

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

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

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

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "mcp-monetize": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@ritualdev-lab/mcp-monetize"
      ]
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add mcp-monetize -- npx -y @ritualdev-lab/mcp-monetize
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.mcp-monetize]
command = "npx"
args = ["-y", "@ritualdev-lab/mcp-monetize"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

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

Or run: gemini mcp add -s user mcp-monetize npx -- -y @ritualdev-lab/mcp-monetize

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

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

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

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

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

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

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "mcp-monetize": {
      "command": "npx",
      "args": [
        "-y",
        "@ritualdev-lab/mcp-monetize"
      ]
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

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

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

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

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

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

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

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

## FAQ

### Which payment providers does MCP Monetize - Drop-in Billing & Capability Token Engine support?

The README names Dodo Payments and Stripe, with a provider option that also accepts a custom tag.

### Where are user credits stored?

By default in memory. The README also documents a JSON file store, a SQLite store and a Redis/Upstash store.

### How is the package installed?

With npm install @ritualdev-lab/mcp-monetize or pnpm add, as shown in the README quickstart.

### Is MCP Monetize - Drop-in Billing & Capability Token Engine free?

Yes. MCP Monetize - Drop-in Billing & Capability Token Engine is open source, so you can use and self-host it for free.

### How do I add MCP Monetize - Drop-in Billing & Capability Token Engine to Claude Code?

Run this command in your terminal: claude mcp add mcp-monetize -- npx -y @ritualdev-lab/mcp-monetize

### What are the best alternatives to MCP Monetize - Drop-in Billing & Capability Token Engine?

The closest alternatives to MCP Monetize - Drop-in Billing & Capability Token Engine are Tollbooth Sample, Stackapps Suite MCP, mcpwatch, MCP Token Optimizer and Crimson Crab MCP Template.

## Where this comes from

- Description: written from the project's README and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Tollbooth Sample](https://ai-powered.com/mcp/tollbooth-sample): Tollbooth Sample is an open-source MCP server for developer tools.
- [Stackapps Suite MCP](https://ai-powered.com/mcp/stackapps-suite-mcp): Stackapps Suite MCP is a paid MCP server for developer tools.
- [mcpwatch](https://ai-powered.com/mcp/mcpwatch-2): mcpwatch is an open-source MCP server for developer tools.
- [MCP Token Optimizer](https://ai-powered.com/mcp/mcp-token-optimizer-2): MCP Token Optimizer is an open-source MCP server for developer tools.
- [Crimson Crab MCP Template](https://ai-powered.com/mcp/crimson-crab-mcp-template): Crimson Crab MCP Template is an open-source MCP server for ai models and llm tooling.
- [APEX DeFi, DefiLlama, DEX & EVM Audit MCP](https://ai-powered.com/mcp/apex-defi-defillama-dex-and-evm-audit-mcp): APEX DeFi, DefiLlama, DEX & EVM Audit MCP is a freemium MCP server for finance and payments.
- [JiZhiMCP](https://ai-powered.com/mcp/jizhimcp): JiZhiMCP is an MCP server for developer tools.
- [MCP Foundry — Build, Test & Publish MCP Servers](https://ai-powered.com/mcp/mcp-foundry-build-test-and-publish-mcp-servers): MCP Foundry — Build, Test & Publish MCP Servers is a freemium MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/mcp-monetize-drop-in-billing-and-capability-token-engine
