
MCP Monetize - Drop-in Billing & Capability Token Engine
io.github.RitualDev-Lab由 GitHub 账号 RitualDev-Lab 发布v0.1.3更新于 Nov 19, 2026
Drop-in billing, paywalls, and capability token middleware for MCP servers.
发布方自己的服务:Engine Travel Platform
概览
一个可直接嵌入的计费与付费墙中间件库,让 MCP 服务器作者按工具调用次数或订阅向用户收费。
- 可以做什么
- 包装 MCP 工具处理函数,让每次调用都按免费额度与付费余额计量
- 额度用尽时执行配额限制,并返回带 Dodo Payments 或 Stripe 结账链接的付费墙消息
- 将额度余额存储于内存、SQLite、Redis/Upstash 或 JSON 文件
- 处理 Dodo 与 Stripe 支付 webhook,自动为用户充值额度
- 可配置免费调用次数、价格文案、支付服务商以及自定义用户 ID 提取方式
- 适用场景
- 适合自行发布 MCP 服务器的开发者,希望按工具使用量收费、提供免费试用额度,或在不自建计费后端的情况下加入订阅或按次计费。
- 运行要求
- 以本地 npm 包(Node.js)形式导入到你自己的 MCP 服务器代码中运行。需要一个 Dodo Payments 或 Stripe 结账/支付链接;如需 webhook 结算,还需 DODO_WEBHOOK_SECRET 或 DODO_PAYMENTS_WEBHOOK_KEY 以及 STRIPE_WEBHOOK_SECRET。Redis 适配器需要 UPSTASH_REDIS_REST_URL 与 UPSTASH_REDIS_REST_TOKEN。
安装
在 SourceWeft 中
- 打开 控制台中的 MCP Monetize - Drop-in Billing & Capability Token Engine,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
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
来源:README.md,提交 f4d97f4
工具
0版本历史
1- v0.1.3最新Nov 19, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
其他 Engine 集成
Engine Travel Platform
com.engine官方发布者
远程 MCP 服务器,让助手在 Engine 中搜索并预订酒店、缩短或取消住宿,并查询支持工单。
Pegasus Alpha
io.pegasusalpha
面向金融分析的 AI 股票研究引擎远程 MCP 端点,为助手提供带引用和截止日期的论断、链条与情景。

Scope | Project Management by Samay Wadhwani
由 GitHub 账号 SamayW 发布
Samay Wadhwani 的 Scope 让助手编写 HTML 并将其渲染为视频,支持字幕、动态图形和 MP4 输出。

Prompt Engine
由 GitHub 账号 vipul-goel 发布
将粗略的提示词转化为详细、可直接供LLM使用的提示词,并提供多项选择式的澄清问题。AI 翻译

Brazil NF-e XML Auditor & Key Engine (x402)
由 GitHub 账号 brunopompeo1 发布
SEFAZ 4.00 NF-e/NFC-e XML 审计,约90%令牌压缩,并通过 x402 Base USDC 提供 Mod-11 密钥解码器。AI 翻译