Skip to content
MCP server

M2mcent

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

Runs locallyStatus and history
Install
Pricing
Open source
Runs
Locally
Version
1.0.5
Listing updated
6 days ago

About M2mcent

M2mcent is an open-source MCP server. It runs locally on your machine and is started by your AI client.

Install

Run in a terminal

claude mcp add m2mcent --env BASE_RPC_URL='<BASE_RPC_URL>' --env RELAYER_PRIVATE_KEY='<RELAYER_PRIVATE_KEY>' --env TREASURY_ADDRESS='<TREASURY_ADDRESS>' -- npx -y m2mcent-sdk

Add to claude_desktop_config.json

{
  "mcpServers": {
    "m2mcent": {
      "command": "npx",
      "args": [
        "-y",
        "m2mcent-sdk"
      ],
      "env": {
        "BASE_RPC_URL": "<BASE_RPC_URL>",
        "RELAYER_PRIVATE_KEY": "<RELAYER_PRIVATE_KEY>",
        "TREASURY_ADDRESS": "<TREASURY_ADDRESS>"
      }
    }
  }
}

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "m2mcent": {
      "command": "npx",
      "args": [
        "-y",
        "m2mcent-sdk"
      ],
      "env": {
        "BASE_RPC_URL": "<BASE_RPC_URL>",
        "RELAYER_PRIVATE_KEY": "<RELAYER_PRIVATE_KEY>",
        "TREASURY_ADDRESS": "<TREASURY_ADDRESS>"
      }
    }
  }
}

Add to .vscode/mcp.json

{
  "servers": {
    "m2mcent": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "m2mcent-sdk"
      ],
      "env": {
        "BASE_RPC_URL": "<BASE_RPC_URL>",
        "RELAYER_PRIVATE_KEY": "<RELAYER_PRIVATE_KEY>",
        "TREASURY_ADDRESS": "<TREASURY_ADDRESS>"
      }
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "m2mcent": {
      "command": "npx",
      "args": [
        "-y",
        "m2mcent-sdk"
      ],
      "env": {
        "BASE_RPC_URL": "<BASE_RPC_URL>",
        "RELAYER_PRIVATE_KEY": "<RELAYER_PRIVATE_KEY>",
        "TREASURY_ADDRESS": "<TREASURY_ADDRESS>"
      }
    }
  }
}

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "m2mcent": {
      "command": "npx",
      "args": [
        "-y",
        "m2mcent-sdk"
      ],
      "env": {
        "BASE_RPC_URL": "<BASE_RPC_URL>",
        "RELAYER_PRIVATE_KEY": "<RELAYER_PRIVATE_KEY>",
        "TREASURY_ADDRESS": "<TREASURY_ADDRESS>"
      }
    }
  }
}

Using several servers? Build one config file with the MCP config generator.

Configuration

  • BASE_RPC_URLBase Mainnet RPC endpoint URLRequired
  • RELAYER_PRIVATE_KEYRelayer wallet private key for on-chain settlementRequired
  • TREASURY_ADDRESSTreasury wallet address to receive paymentsRequired

Pricing

Open source

M2mcent FAQ

Is M2mcent free?

Yes. M2mcent is open source, so you can use and self-host it for free.

How do I add M2mcent to Claude Code?

Run this command in your terminal: claude mcp add m2mcent --env BASE_RPC_URL='<BASE_RPC_URL>' --env RELAYER_PRIVATE_KEY='<RELAYER_PRIVATE_KEY>' --env TREASURY_ADDRESS='<TREASURY_ADDRESS>' -- npx -y m2mcent-sdk

Where this comes from

  • Description: from the official MCP Registry entry.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers