1. Conduid
  2. Blockchain
  3. io.github.Evozim/m2mcent
MCP server · Blockchain

io.github.Evozim/m2mcent

x402 payment wrapper for AI Agents and MCP Servers. USDC settlements on Base L2.

Unclaimed blockchain
37Low

Scored 6 months ago · breakdown

About io.github.Evozim/m2mcent

io.github.Evozim/m2mcent is an MCP server published by Evozim in the Blockchain category: x402 payment wrapper for AI Agents and MCP Servers. USDC settlements on Base L2.

Recent commit activity is the strongest signal that reported issues will get attention.

Install

Claude Code
claude mcp add io-github-evozim-m2mcent -- npx -y m2mcent-sdk
npx
npx -y m2mcent-sdk

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Tools (2)

execute_m2mcent_toolExecute any of the 1,004 M2MCent microservices. Fee varies per node (e.g. $0.01 - $0.50 USDC).

Parameters not published.

search_m2mcent_catalogSearch the M2MCent Universal Catalog of 1,004+ Agentic Services

Parameters not published.

Ask AI

✦

Ask AI about io.github.Evozim/m2mcent

Powered by Claude · Grounded in docs

I know everything about io.github.Evozim/m2mcent. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • ✓README presentThe repository ships documentation.

5 checks have not been run yet.

README

🛰️ M2MCent SDK — x402 Payment Wrapper for AI Agents

npm version Base Mainnet

Ultra-lightweight x402 payment interceptor for AI Agents and MCP Servers. Monetize any API in 3 lines of code.

🚀 Quick Start

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 });
});

📐 How It Works

M2MCent implements the x402 Payment Protocol — a machine-native payment standard inspired by HTTP 402:

  1. Agent requests a protected endpoint
  2. Server responds with 402 Payment Required + payment metadata (Base64 encoded)
  3. Agent signs an EIP-712 typed data authorization (gasless for the payer)
  4. Server settles atomically on-chain via the M2MCent Escrow contract
  5. Agent receives the premium response + transaction receipt
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

⚙️ Configuration

Parameter Description Required
rpcUrl Base Mainnet RPC endpoint ✅
privateKey Relayer wallet private key (for settlement) ✅
recipient Treasury address to receive payments ✅

🔒 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

Parameter Value
Network Base Mainnet (Chain ID: 8453)
USDC Contract 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913
Escrow Contract 0xf3c3416A843d13C944554A54Ac274BB7fF264BcC
Settlement Atomic, sub-second finality

🧩 MCP Server Integration

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 });
});

📊 Ecosystem

M2MCent powers 100+ production MCP servers on Base Mainnet, processing real USDC micro-payments for AI-to-AI commerce.

📄 License

MIT © M2MCent

README copy captured when this server was indexed; it may lag the repository. The original is authoritative.

Questions

About io.github.Evozim/m2mcent

How do I install io.github.Evozim/m2mcent?

Run claude mcp add io-github-evozim-m2mcent -- npx -y m2mcent-sdk, then add the server to your MCP client's configuration.

Is io.github.Evozim/m2mcent safe to use with an AI agent?

Its trust score is 37 out of 100 (low). It passes 1 of the 1 static security checks run so far. It has no ConduID identity yet, so agent calls to it are not receipted.

Is io.github.Evozim/m2mcent still maintained?

Yes — the last commit was 2 months ago. The repository has 0 stars and 0 forks.