Skip to content

[Feature Request] Add agentpay-mcp as a payment tool for agent-to-agent transactions #3977

@up2itnow0822

Description

@up2itnow0822

What problem does this solve?

CAMEL agents can coordinate and delegate tasks, but they can't transact. An agent can ask another agent to do paid work — fetch data from a metered API, spin up compute, pay for an external service — but there's no built-in way to handle the payment side. Everything stops at a human workaround.

Proposed solution

agentpay-mcp is an MCP server that gives agents a standard set of payment tools. It speaks the x402 protocol (HTTP 402 Payment Required) — the same protocol Stripe integrated in February 2026 — and adds:

  • Human-approval mode: payments above a threshold require human sign-off before executing
  • On-chain spend caps: hard limits enforced by smart contract, not just config
  • Audit trail: every transaction logged for post-hoc review
  • 149 tests passing, MIT license, npm install agentpay-mcp

It was merged into NVIDIA's NeMo-Agent-Toolkit-Examples (PR #17) last month.

Why now?

The x402 payment standard is gaining real adoption. Nexi (€2.9T payment volume) and Google have committed to the UCP/AP2 agentic payment standard. The infrastructure is settling. Adding payment tooling to CAMEL now means users can build agents that handle end-to-end workflows — including the money part.

Integration sketch

from camel.toolkits import MCPToolkit

# Connect to agentpay-mcp server
payment_tools = MCPToolkit(config_dict={
    "mcpServers": {
        "agentpay": {
            "command": "npx",
            "args": ["agentpay-mcp"]
        }
    }
})

# Agent can now call pay(), request_approval(), check_balance(), etc.
agent = ChatAgent(tools=[*payment_tools.get_tools()])

What I'm asking for

A few options, depending on what fits CAMEL's roadmap:

  1. Official toolkit wrapperAgentPayToolkit in camel/toolkits/
  2. Example notebook — demonstrate agent-to-agent payment flow
  3. Documentation mention — point users toward payment tooling when discussing multi-agent coordination

Happy to contribute any of these. The CAMEL community building commercial multi-agent systems would benefit from having a clear answer to "how do agents pay each other?"

Links

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions