
MCP Monetize - Drop-in Billing & Capability Token Engine
io.github.RitualDev-LabPublished by GitHub account RitualDev-Labv0.1.3Updated Nov 19, 2026
Drop-in billing, paywalls, and capability token middleware for MCP servers.
The publisher's own server: Engine Travel Platform
Overview
A drop-in billing and paywall middleware library that lets MCP server authors charge users per tool call or by subscription.
- What you can do
- Wrap MCP tool handlers so each call is metered against free credits and paid balances
- Enforce quotas and return a paywall message with a Dodo Payments or Stripe checkout link when credits run out
- Store credit balances in memory, SQLite, Redis/Upstash or a JSON file
- Process Dodo and Stripe payment webhooks to top up user credits automatically
- Configure free-tier call counts, price labels, payment provider and custom user-ID extraction
- When to use it
- For developers publishing their own MCP servers who want to charge for tool usage, offer a free trial quota, or add subscription or pay-per-call billing without building a billing backend.
- Requirements
- Runs as a local npm package (Node.js) imported into your own MCP server code. Needs a Dodo Payments or Stripe checkout/payment link, and for webhook settlement the webhook secrets DODO_WEBHOOK_SECRET or DODO_PAYMENTS_WEBHOOK_KEY and STRIPE_WEBHOOK_SECRET. The Redis adapter needs UPSTASH_REDIS_REST_URL and UPSTASH_REDIS_REST_TOKEN.
Installation
In SourceWeft
- Open MCP Monetize - Drop-in Billing & Capability Token Engine in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
💳 mcp-monetize
Drop-in billing, credit tracking, and paywall middleware for Model Context Protocol (MCP) servers.
Monetize your AI agent tools in 3 lines of code with Dodo Payments & Stripe.
[npm version] [License: MIT] [MCP Compatible]
⚡ The Problem
Developers are publishing thousands of Model Context Protocol (MCP) servers for Claude Desktop, Cursor, and Windsurf. But until now:
- There was no standard way to charge users per tool invocation or per month.
- Tool creators bear the heavy server, LLM API, and scraping costs while users consume unlimited queries for free.
mcp-monetize solves this by giving MCP server creators an effortless 3-line drop-in middleware that manages quotas, verifies credits, and returns interactive payment links directly inside the agent chat when quotas run out.
mcp-monetize vs. mcp-builder-kit
🚀 Quickstart (3 Lines of Code)
1. Install
2. Wrap your MCP tool handler
🖼️ How the Agent Sees the Paywall
When a user in Claude Desktop, Cursor, or Windsurf exhausts their free calls, the agent automatically receives structured markdown prompting the user to top up:
Once the user completes payment via UPI, Credit Card, or Apple Pay, their webhook or API key activates paid credits and execution resumes seamlessly!
⚙️ Configuration Options
💾 Storage Adapters
1. In-Memory (Default)
Fastest, zero-dependency. Great for local desktop tools.
2. SQLite Database Persistence
Built-in node:sqlite store with zero native dependencies. Supports thread-safe transactions and atomic balances.
3. Serverless Redis / Upstash
Designed for cloud-hosted MCP servers (Render, Fly.io, Railway, AWS Lambda).
4. JSON File Persistence
Zero database dependencies; persists user credits across server restarts in mcp-credits.json.
🤝 Webhook Fulfillment Engine (Turnkey Dodo & Stripe)
Use the built-in PaymentWebhookHandler to process checkouts and replenish user credits automatically:
🔐 Cryptographic License Key Verification
For off-line or client-side MCP distribution (where users supply a license key in claude_desktop_config.json):
📦 Turnkey Starter Kit & Production Examples
Looking for ready-to-deploy boilerplates? Check the examples/ directory:
examples/01-weather-api-server.ts— Pay-per-query API ($5 for 500 calls).examples/02-sql-agent-server.ts— Monthly recurring subscription with HMAC license verification.examples/03-web-scraper-server.ts— Usage credits with turnkey Dodo checkout webhook.
👉 Get the complete package with instant setup at ritualdev.in/mcp-starter-kit.
📜 License
MIT © RitualDev Lab
💖 Sponsor & Support
If you find this project valuable, consider supporting our open-source development:
[Sponsor on Dodo Payments] [Interactive Donation Portal] [GitHub Sponsors]
🛡️ Community & Governance
Source: README.md at commit f4d97f4
Tools
0Version history
1- v0.1.3LatestNov 19, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts
Other Engine integrations
Engine Travel Platform
com.engineOfficial publisher
Remote MCP server that lets an assistant search and book hotels in Engine, change or cancel stays, and check support cases.
Pegasus Alpha
io.pegasusalpha
Remote MCP endpoint for an AI equity research engine that gives assistants cited, as-of-dated claims, chains and scenarios for finance analysis.

Scope | Project Management by Samay Wadhwani
Published by GitHub account SamayW
Scope by Samay Wadhwani lets an assistant author HTML and render it into video with captions, motion graphics and MP4 output.

Prompt Engine
Published by GitHub account vipul-goel
Turns rough prompts into detailed, LLM-ready prompts with multiple-choice clarifying questions.

Brazil NF-e XML Auditor & Key Engine (x402)
Published by GitHub account brunopompeo1
Brazil NF-e XML Auditor & Key Engine (x402)'s hosted MCP server; no sign-in required; Streamable HTTP; 1 tool.