1. Conduid
  2. Finance
  3. A2a X402
MCP server · Finance

A2a X402

The A2A x402 Extension brings cryptocurrency payments to the Agent-to-Agent (A2A) protocol, enabling agents to monetize their services through on-chain payments. This extension revives the spirit of HTTP 402 "Payment Required" for the decentralized agent ecosystem.

Unclaimed Apache-2.0 last commit 7 months ago financea2agen-aimcpgenerative-aiagentsa2a-protocolagentic-ai
74Good

Scored yesterday · breakdown

About A2a X402

A2a X402 is an MCP server published by google-agentic-commerce in the Finance category: the A2A x402 Extension brings cryptocurrency payments to the Agent-to-Agent (A2A) protocol, enabling agents to monetize their services through on-chain payments. This extension revives the spirit of HTTP 402 "Payment Required" for the decentralized agent ecosystem. It has been installed 0 times through Conduid.

The repository has 460 stars and 104 forks, with the last commit 7 months ago. Six months or more without a commit doesn't mean the server is broken, but check the open issues (0) before depending on it in production.

Install

Install
npx a2a-x402

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.

Ask AI

Ask AI about A2a X402

Powered by Claude · Grounded in docs

I know everything about A2a X402. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • ·README presentNot checked yet.
  • ·License declaredNot checked yet.
  • ·Tests presentNot checked yet.
  • ·Dependencies pinnedNot checked yet.
  • ·No dynamic code executionNot checked yet.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

Releases

v0.1.0v0.1.0 · 16 Sep 2025Full Changelog**: https://github.com/google-agentic-commerce/a2a-x402/commits/v0.1.0

README

A2A x402 Extension

The A2A x402 Extension brings cryptocurrency payments to the Agent-to-Agent (A2A) protocol, enabling agents to monetize their services through on-chain payments. This extension revives the spirit of HTTP 402 "Payment Required" for the decentralized agent ecosystem.

🎯 Goal

Enable agent commerce by providing a standardized way for agents to charge for their services and receive payments on-chain. This transforms any A2A agent into a commercial service that can charge for API calls, data processing, AI inference, or any other valuable capability.

🗂️ Repository Structure

This repository contains the specification, core libraries, and example implementations for the A2A x402 extension, supporting multiple languages.

x402-a2a/
├── spec/
│   └── v0.1/
│       └── spec.md         # The official x402 extension specification
│
├── schemes/                # Directory contains experimental x402 payment schemes drafted by partners and other contributors
│
└── {language}/             # Language-specific implementations (e.g., python/, typescript/)
    ├── x402_a2a/           # The core library for the x402 extension
    │
    └── examples/
        └── {demo}/         # Demonstrations for each language implementation

🤔 How It Works

The x402 extension defines a simple, robust payment flow between agents:

  1. Payment Required: A merchant agent, when payment is required for a service, responds with a payment-required message.
  2. Payment Submitted: The client agent signs the payment details and sends them back to the merchant in a payment-submitted message.
  3. Payment Completed: The merchant verifies the payment, settles it on-chain, and responds with a payment-completed message, delivering the requested service.

This flow is designed to be implemented in any language, allowing developers to focus on their agent's core logic.

🚀 Getting Started

Each language-specific implementation (e.g., python/x402_a2a) contains its own README.md with detailed instructions on how to install dependencies, run tests, and use the library.

The examples/ directory contains various demonstrations of the x402 extension. Each example also has its own README.md with instructions on how to run it.

🏗️ Architecture

The x402_a2a libraries follow a functional core, imperative shell architecture:

  • Core Protocol: The fundamental data structures and functions for creating, signing, and verifying payments.
  • Executors: Middleware that automates the payment flow, making it easy to add payment capabilities to any agent.

This design provides both flexibility and ease of use, allowing developers to either build custom payment logic with the core protocol or use the executors for a more hands-off approach.

📚 Learn More

  • Specification: The complete technical specification for the x402 extension.
  • Python Library: The documentation for the Python implementation of the x402 extension.
  • Python Examples: The directory containing demonstration applications for the Python implementation.
  • A2A Protocol: The core agent-to-agent protocol.
  • x402 Protocol: The underlying payment protocol.

🤝 Contributing

Contributions are welcome! Please read the specification and the existing code to understand the project's design and goals. Then, feel free to open a pull request with your changes.

README mirrored from the source repository yesterday. The original is authoritative.

Questions

About A2a X402

How do I install A2a X402?

Run npx a2a-x402, then add the server to your MCP client's configuration. Conduid has recorded 0 installs, so the command is known to work with current clients.

Is A2a X402 safe to use with an AI agent?

Its trust score is 74 out of 100 (good). It passes 0 of 1 static security checks; the failures are listed above. It has no ConduID identity yet, so agent calls to it are not receipted.

Is A2a X402 still maintained?

The last commit was 7 months ago, with 0 open issues. That's long enough that you should check whether the maintainer is responding to issues before depending on it.