Skip to content
MCP server

MCP Monetize - Drop-in Billing & Capability Token Engine

Drop-in billing, quotas and paywall middleware for MCP server tool calls

Runs locally

MCP Monetize - Drop-in Billing & Capability Token Engine is an open-source MCP server for developer tools. It runs locally on your machine and is started by your AI client.

Pricing
Open source
Platforms
API, Self-hosted
Runs
Locally
Version
0.1.3
Listing updated

Similar MCP servers

Install

Add with the CLI

Run in a terminal

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.

Or share it with your project

Add to .mcp.json

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

Claude Code setup guide

Add to claude_desktop_config.json

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

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

Claude Desktop setup guide

Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.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.

Cursor setup guide

Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to ~/.copilot/mcp-config.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.

VS Code setup guide

Add with the CLI

Run in a terminal

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

Or add to config.toml

Add to ~/.codex/config.toml

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

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "mcp-monetize": {
      "command": "npx",
      "args": [
        "-y",
        "@ritualdev-lab/mcp-monetize"
      ]
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.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

    Antigravity

    Add to ~/.gemini/config/mcp_config.json

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

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

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.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.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.json

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

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

    Cline setup guide

  • Zed

    Add to Zed settings.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.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

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

    Junie

    Add to ~/.junie/mcp/mcp.json

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

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

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.json

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

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

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

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

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.

What it does

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

Pricing

Open source

MIT-licensed npm package; a separate paid starter kit is offered by the vendor.

MCP Monetize - Drop-in Billing & Capability Token Engine 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.

How AIPoweredBot checks servers