Machine 2 Machine Protocol
Facilitates autonomous micropayments between AI agents using the x402 payments protocol standard for internet-native transactions on the Base network.
Enables AI agents to interact with Google's Gemini API for domain-specific tasks like currency exchange calculations through the Agent-to-Agent (A2A) protocol framework.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Machine 2 Machine Protocolconvert 50 USD to EUR using the currency exchange agent"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Machine 2 Machine Protocol
This proof-of-concept (PoC) project demonstrates autonomous economic interactions between AI Agents, modeled as services. In this architecture, agents can request tasks from other agents based on their domain expertise and reword them via x402 payments. It is a practical implementation of a Machine-to-Machine (M2M) economy, where agents interact using emerging protocols like Google's Agent-to-Agent (A2A) and x402, running on top of MCP and Base network.

The implementation relies on the following technical stack:
A2A (Agent-to-Agent) Protocol
A2A is an open-source framework from Google that enables autonomous AI agents to discover, communicate, and collaborate securely. It provides a standardized protocol for agents, even those built on different platforms, to negotiate capabilities, delegate tasks, and coordinate actions. This creates an interoperable ecosystem where specialized agents can work together to automate complex workflows and solve problems more effectively.
MCP (Model Context Protocol)
MCP is an open standard from Anthropic that serves as the semantic backbone for AI systems. It standardizes how agents connect to external data sources and tools, acting as a universal "connector" that gives an agent secure, on-demand access to the context it needs—whether from a database, a file system, or a third-party API. MCP ensures that agents operate with a shared, coherent understanding of the information and capabilities required to execute tasks accurately.
x402 Payments Protocol
The x402 protocol is an open standard from Coinbase for internet-native payments, designed for both humans and autonomous AI agents. It leverages the standard HTTP 402 Payment Required status code to create a seamless, low-friction way to pay for API calls, data access, or services rendered by other agents. Built to be chain-agnostic and trust-minimizing, x402 enables on-chain micropayments without the overhead of traditional financial systems, paving the way for a programmable economy where agents can autonomously transact for services.
How to Setup
Start the Gemini Agent that can provide fiat currency exchange:
cd agents/langgraphcreate docker build:
docker build -t langgraph-a2a-server -f Containerfile . run docker build:
docker run -p 10000:10000 -e GOOGLE_API_KEY=<your-gemini-api-key> langgraph-a2a-serverStart the proxy middleware: Python implementation of x402 was released couple of days ago, we had to create a typescript wrapper to manage it.
In the main folder run:
npm instaland
npm run devJust use Claude or Cursor as the Second Agent/Chatbot that has to interact via the first Agent:
open claude_desktop_config.json and attach the mcp server via adding this configuration:
{
"mcpServers": {
"demo": {
"command": "/Users/your-user/.nvm/versions/node/v23.3.0/bin/npm",
"args": [
"--silent",
"run",
"dev",
"-C",
"/Users/your-user/m2m/mcp"
],
"env": {
"PRIVATE_KEY": "your-wallet-private-key",
"RESOURCE_SERVER_URL": "http://localhost:5000",
}
}
}
}ask Claude about a currency exchange like: how much is 10 USD in EUR?

Implementation communication schema

Conclusions
This proof-of-concept demonstrates the viability of a fully autonomous Machine-to-Machine economy by combining the interoperable, lightweight, chain-agnostic x402 payments standard with A2A communication framework and the context-rich MCP connector. Through this implementation, AI agents can dynamically discover one another’s capabilities, delegate tasks based on domain expertise, and settle micropayments seamlessly—paving the way for a scalable ecosystem of specialized Agents that offer and consume services operating as autonomous economic participants.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
Flicense-qualityFmaintenanceEnables AI agents to discover and pay for monetized services such as PDF processing and DeFi operations using USDC on the Base blockchain. It provides automatic payment processing and secure local wallet management for seamless integration with MCP-compatible clients.Last updated54- Alicense-qualityCmaintenanceOnchain agent-to-agent commerce protocol using x402 and ERC-8004. Enables AI agents to buy/sell services, manage vendor catalogs, and process payments on Base.Last updatedMIT
- Alicense-qualityCmaintenanceNon-custodial x402 MCP payment layer for AI agents. Enables autonomous USDC payments on Base via the x402 HTTP payment protocol, with CCTP cross-chain bridge support.Last updated1125MIT
- AlicenseAqualityCmaintenanceAn MCP server that lets your AI coding agent (Claude Code, OpenClaw, Codex, Cursor, etc.) discover and pay on-chain agents registered on ERC-8004, using Coinbase's official x402 protocol. No smart account. No bundler. No relay. Just your EOA, an HTTPS request, and an automatic 402 → sign → retry flow.Last updated35MIT
Related MCP Connectors
Agent x402 Paywall MCP — Coinbase HTTP 402 protocol + on-chain settlement. Agents pay per-call
Pay-per-use weather, environment, finance, and on-chain intelligence tools for AI agents via x402.
63 pay-per-call tools for agents: vision, text, data, web, blockchain. USDC on Base via x402.
Appeared in Searches
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/AndreaRettaroli/m2m'
If you have feedback or need assistance with the MCP directory API, please join our Discord server