
M2mcent
io.github.Evozim由 GitHub 账号 Evozim 发布v1.0.5更新于 Oct 24, 2026
x402 payment wrapper for AI Agents and MCP Servers. USDC settlements on Base L2.
概览
M2mcent 是一个 x402 支付封装 SDK,让助手或 MCP 服务器在 Base L2 上对受保护的 API 端点收取 USDC 微支付。
- 可以做什么
- 用一次 requirePayment 调用把 Express API 或 MCP 工具端点包进 USDC 付费墙
- 返回 HTTP 402 支付元数据,并接受付费代理签名的 EIP-712 / EIP-3009 授权
- 通过 Base 主网上的 M2mcent 托管合约原子化结算支付
- 返回付费响应以及结算交易回执
- 清单中未列出具体工具;该包是嵌入自有服务器代码的库。
- 适用场景
- 适合在自建 API 或 MCP 服务器上按请求向其他代理收取 Base 上的 USDC,或需要为现有端点快速加上 x402 付费墙的场景。
- 运行要求
- 以 npm 包 m2mcent-sdk 在本地通过 stdio 运行。需要 Base 主网 RPC 端点地址(BASE_RPC_URL)、中继钱包私钥(RELAYER_PRIVATE_KEY)和收款金库地址(TREASURY_ADDRESS),并需能访问 Base 网络及一个有资金的中继钱包用于结算。
安装
在 SourceWeft 中
- 打开 控制台中的 M2mcent,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
🛰️ M2MCent SDK — x402 Payment Wrapper for AI Agents
[npm version] [License: MIT] [Base Mainnet]
Ultra-lightweight x402 payment interceptor for AI Agents and MCP Servers. Monetize any API in 3 lines of code.
🚀 Quick Start
📐 How It Works
M2MCent implements the x402 Payment Protocol — a machine-native payment standard inspired by HTTP 402:
- Agent requests a protected endpoint
- Server responds with
402 Payment Required+ payment metadata (Base64 encoded) - Agent signs an EIP-712 typed data authorization (gasless for the payer)
- Server settles atomically on-chain via the M2MCent Escrow contract
- Agent receives the premium response + transaction receipt
⚙️ Configuration
🔒 Security
- Non-custodial: Funds flow directly from payer → treasury via on-chain escrow
- Gasless for payers: Uses EIP-3009
transferWithAuthorization(USDC native) - Zero-Leak: No agent data is retained after settlement
- Atomic: Payment and service delivery happen in a single request cycle
🌐 Network Details
🧩 MCP Server Integration
Perfect for Model Context Protocol servers:
📊 Ecosystem
M2MCent powers 100+ production MCP servers on Base Mainnet, processing real USDC micro-payments for AI-to-AI commerce.
📄 License
MIT © M2MCent
来源:README.md,提交 88718c8
工具
0版本历史
1- v1.0.5最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分