🛰️ M2MCent SDK — x402 Payment Wrapper for AI Agents
Ultra-lightweight x402 payment interceptor for AI Agents and MCP Servers. Monetize any API in 3 lines of code.
에이전트 강화
게시자의 자체 명령입니다. PlugMCP 엔드포인트가 아닙니다.
Host a copy with our keys and logs.
npx -y [email protected]Claude Code에는 로컬 명령용 설치 링크가 없습니다. 아래 명령을 복사해 터미널에서 실행합니다.
BASE_RPC_URL=<value> RELAYER_PRIVATE_KEY=<secret> TREASURY_ADDRESS=<value> claude mcp add io.github.evozim-m2mcent -- npx -y m2mcent-sdk@1.0.5터미널에서 실행합니다.
{ "mcpServers": { "io.github.evozim-m2mcent": { "command": "npx", "args": [ "-y", "[email protected]" ], "env": { "BASE_RPC_URL": "<value>", "RELAYER_PRIVATE_KEY": "<secret>", "TREASURY_ADDRESS": "<value>" } } }}claude_desktop_config.json
원격 URL인가요, 내 컴퓨터에서 실행하는 명령인가요? 두 설치 방식의 차이
PlugMCP에서 실행
A new server you create. It is not this listing's official endpoint. Use the publisher install when you want their URL and their credentials.
실행npm install m2mcent-sdk
import { X402Handler } from 'm2mcent-sdk';
const x402 = new X402Handler({
rpcUrl: 'https://mainnet.base.org',
privateKey: process.env.RELAYER_PRIVATE_KEY!,
recipient: process.env.TREASURY_ADDRESS!
});
// Protect any Express endpoint with a USDC paywall
app.post('/api/analyze', x402.requirePayment("100000"), (req, res) => {
res.json({ result: "Premium analysis complete", receipt: req.paymentTx });
});
M2MCent implements the x402 Payment Protocol — a machine-native payment standard inspired by HTTP 402:
402 Payment Required + payment metadata (Base64 encoded)Agent ──► API Server ──► 402 + metadata
Agent ◄── signs EIP-712 authorization
Agent ──► API Server + Payment-Signature header
└──► Escrow.settle() on Base L2
Agent ◄── Premium Response + tx hash
transferWithAuthorization (USDC native)Perfect for Model Context Protocol servers:
import express from 'express';
import { X402Handler } from 'm2mcent-sdk';
const app = express();
const x402 = new X402Handler({
rpcUrl: process.env.BASE_RPC_URL!,
privateKey: process.env.RELAYER_PRIVATE_KEY!,
recipient: process.env.TREASURY_ADDRESS!
});
// Any MCP tool endpoint becomes monetizable
app.post('/api/tools/analyze', x402.requirePayment("50000"), async (req, res) => {
const result = await runMCPTool(req.body);
res.json({ ...result, paymentTx: req.paymentTx });
});
M2MCent powers 100+ production MCP servers on Base Mainnet, processing real USDC micro-payments for AI-to-AI commerce.
MIT © M2MCent
x402 payment wrapper for AI Agents and MCP Servers. USDC settlements on Base L2.
{ "mcpServers": { "io.github.evozim-m2mcent": { "command": "npx", "args": [ "-y", "[email protected]" ], "env": { "BASE_RPC_URL": "<value>", "RELAYER_PRIVATE_KEY": "<secret>", "TREASURY_ADDRESS": "<value>" } } }}도구
아직 도구 목록이 없습니다. 원격 서버는 첫 상태 확인 후에 도구 목록이 생깁니다.
FAQ
이 페이지에서 Cursor, Claude Desktop, Claude Code 또는 VS Code용 stdio 설정을 복사합니다. PlugMCP 프록시가 아니라 게시자의 설치 방식을 사용합니다.
게시자가 등록한 환경 변수: BASE_RPC_URL, RELAYER_PRIVATE_KEY, TREASURY_ADDRESS.
M2mcent은(는) stdio를 통해 로컬에서 실행됩니다.
마지막 확인: 2026-11-09. x402 payment wrapper for AI Agents and MCP Servers. USDC settlements on Base L2.