Skip to main content
Glama

m2m.monster

Non-custodial infrastructure for AI agents to pay each other: discovery over MCP, settlement over x402 v2 with the m2m-split scheme on Solana.

Mainnet: API https://api.m2m.monster · Agent docs: https://m2m.monster/llms.txt · Free Devnet sandbox: https://sandbox.m2m.monster

  • Agents generate and keep their own keys and sign locally. m2m.monster holds no agents' keys or funds and never signs or pays payment transactions; payers pay their own gas. Quotes and receipts are signed by a service key that holds no funds.

  • One atomic transaction, signed only by the payer: amount − fee to the payee in the payment token, and the fee in USDC to the treasury, with the memo settled via m2m.monster <quote id>.

  • Fee: min(max(0.25% × amount, $0.001), $0.5), borne by the payee. Published at /pricing.json.

  • Every endpoint and MCP tool that moves funds returns an unsigned transaction.

Packages

Package

@m2m-monster/sdk

TypeScript SDK: pay 402s, paywall, quotes, receipts

@m2m-monster/mcp

MCP server (stdio); hosted at https://api.m2m.monster/mcp (Devnet: https://sandbox.m2m.monster/mcp)

@m2m-monster/core

Fees, quotes and m2m-split building and verification

m2m-monster (PyPI)

Python SDK, byte-identical transactions

apps/api

/v1 API, relay, receipts and public files

Contract: spec/openapi.json. Shared test vectors: spec/test-vectors.

Related MCP server: Tilde x402 MCP Server

Development

corepack pnpm install
corepack pnpm build && corepack pnpm test && corepack pnpm lint
cd sdk-python && uv run pytest

License

Apache-2.0

Available Tools

10 tools
build_paymentA
Read-only

Build the m2m-split transaction for a quote: the payer's transfer to the payee and the USDC fee transfer to the treasury, in one atomic transaction where the payer pays its own gas. Checks that the receiving token accounts exist and that the payer holds USDC for the fee, and simulates it. Unsigned. Sign it locally with your own Solana key; m2m.monster never sees or uses agents' private keys.

Inputs: payer (required), quote (required), max_compute_unit_price.

build_refundA
Read-only

Build a refund from the payee back to the payer, linked to the original receipt. The payee signs it and pays its gas; it has no m2m.monster fee and the original fee is not returned. Unsigned. Sign it locally with your own Solana key; m2m.monster never sees or uses agents' private keys.

Inputs: amount (required), receipt (required).

get_pricingB
Read-only

Agent-to-agent fee formula, referral program and the whitelisted token mints of this network.

Inputs: no named parameters.

get_referral_statusA
Read-only

Your referrer, referred agents, credits and their expiry dates. Credits are discounts on your own fees, never cash. Requires the api_key from register_agent.

Inputs: no named parameters.

get_statusB
Read-only

Service status and API version.

Inputs: no named parameters.

quote_paymentB

Price a payment to a payee: gross amount, net amount to the payee, fee_gross, discount, fee_net, treasury, mint and a 30-second expiry. Returns a signed quote.

Inputs: mint (required), payee (required), amount (required), network (required), +1 more.

register_agentA

Optional registration; paying and getting paid work without it. It unlocks referral credits and receipt history. Call once without signature to get the message to sign with your Solana key, then again with the base58 signature to receive an api_key.

Inputs: solana_pubkey (required), agent_id, signature, referred_by, +1 more.

submit_paymentA

Broadcast a transaction the payer already signed, wait for confirmation and return the signed receipt. Only broadcasts; never signs or pays payment transactions. A retry with the same idempotency_key never pays twice.

Inputs: quote (required), transaction (required), idempotency_key (required).

verify_paymentA
Read-only

For the payee: check a payer-signed transaction against its quote (net amount, fee to the treasury, whitelisted mints, quote id and expiry) and simulate it before submitting.

Inputs: quote (required), transaction (required).

verify_receiptB
Read-only

Verify a receipt: the m2m.monster signature and that the confirmed on-chain transaction matches it.

Inputs: receipt (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 10 tools

    Disambiguation4/5

    The tools map cleanly to distinct payment lifecycle stages: pricing, quoting, building, verifying, submitting, receipt verification, and refunds. The main possible confusion is between verify_payment and verify_receipt, but their contexts (pre-submit transaction vs confirmed receipt) are adequately differentiated.

    Naming Consistency5/5

    All tool names use consistent snake_case with a clear verb_noun pattern such as get_pricing, quote_payment, build_payment, verify_payment, and submit_payment. The minor use of quote_ as a verb is still readable and consistent with the overall convention.

    Tool Count5/5

    Ten tools are well-scoped for an agent payment server, with each tool covering a meaningful step in the quote-build-verify-submit-receipt-refund flow. Supporting tools for pricing, registration/referrals, and status are also justified without bloating the surface.

    Completeness4/5

    The core payment lifecycle is well covered, including fee discovery, quote creation, transaction building, verification, submission, receipt verification, and refunds. Minor gaps remain around retrieving receipt history or listing past payments, despite registration being described as unlocking receipt history.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      B
      maintenance
      Provides permissionless wallet infrastructure for AI agents to manage wallets, sign transactions, and handle tokens across Solana and all EVM-compatible chains. It includes 29 specialized tools for on-chain operations, featuring built-in security guards and automated x402 payment processing without KYC requirements.
      40
      1,180 npm
      3
      MIT
    • A
      license
      A
      quality
      A
      maintenance
      A budget-bound x402 payment wallet for AI agents: it autonomously pays HTTP 402 payment-gated URLs across every major chain (EVM, Solana, and many non-EVM families). Self-custodial and backendless, your key, your RPC, with spend caps enforced before any on-chain send.
      8
      10
      MIT