Xenarch — X402 Mcp Server For Ai Agent Payments
@xenarch-ai
About Xenarch — X402 Mcp Server For Ai Agent Payments
x402 MCP server for AI agent payments. Gasless USDC micropayments on Base L2. Claude, Cursor, LangChain, CrewAI, AutoGen, LangGraph resolve HTTP 402 with no API keys. Non-custodial, settlement-provider-agnostic, 0% fee.
Config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"xenarch": {
"command": "npx",
"args": [
"-y",
"@xenarch/agent-mcp"
]
}
}
}Tools
No tools detected
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is Xenarch — X402 Mcp Server For Ai Agent Payments?
Xenarch is a non-custodial x402 MCP server that enables AI agents (Claude, Cursor, LangChain, CrewAI) to pay for HTTP 402-gated APIs and content with USDC micropayments on Base L2. It requires no API keys, no subscriptions, and no credit card on file. The agent wallet never needs ETH; USDC is the only token it holds. Payments settle on-chain directly from the agent wallet to the publisher wallet with 0% Xenarch fee.
How to use Xenarch — X402 Mcp Server For Ai Agent Payments?
Configure your wallet by placing a private key in ~/.xenarch/wallet.json, then add the server to any MCP client (e.g., claude mcp add xenarch -- npx @xenarch/agent-mcp). Fund the wallet with USDC on Base — no ETH or other tokens needed. Optionally set the XENARCH_API_TOKEN environment variable to enforce managed caps and scope, and run xenarch agent login once to enable control-plane and merchant tools.
Key features of Xenarch — X402 Mcp Server For Ai Agent Payments
- Non-custodial USDC micropayments on Base L2
- Works on any host, not platform-locked
- Agent needs only USDC — no ETH or gas coin
- 0% Xenarch fee, no contract in money flow
- 29 MCP tools for discovery, payments, control, and merchant operations
- Open standard: x402 protocol plus pay.json
Use cases of Xenarch — X402 Mcp Server For Ai Agent Payments
- AI agents paying for gated content per request
- API monetization without subscriptions or API keys
- Publishers charging per-request for their APIs
- Agents from Claude, Cursor, LangChain, and CrewAI paying for HTTP 402–gated services
- Machine-to-machine micropayments on Base L2
FAQ from Xenarch — X402 Mcp Server For Ai Agent Payments
What is the x402 protocol?
x402 is an open protocol for HTTP 402 Payment Required: a server returns HTTP 402 with a signed price and payment details, the client signs a USDC micropayment on Base L2, then retries the request with proof of payment. Xenarch automates both halves for AI agents.
Does the agent need ETH to pay?
No. The agent wallet only ever needs USDC on Base L2 — no ETH, no gas coin of any kind.
How are spending caps and scope enforced?
Set the XENARCH_API_TOKEN environment variable to an xa_live_ agent key. The MCP server then refuses to pay without the token (fail‑closed), enforcing per‑tx, daily, and monthly caps, plus allow/deny scope rules. Caps can be managed via the dashboard at dash.xenarch.dev.
Is Xenarch custodial?
No. Xenarch never holds funds and there is no Xenarch contract between the agent and the publisher. Payments are direct USDC transfers (EIP‑3009) from the agent wallet to the publisher wallet.
What transports and auth methods does the server support?
The server uses a private key for wallet operations (set via XENARCH_PRIVATE_KEY), an optional API token for caps/scope control, and a SIWE session (via xenarch agent login) for control‑plane and merchant tools. All payment communication uses the x402 HTTP handshake.
Frequently asked questions
What is the x402 protocol?
x402 is an open protocol for HTTP 402 Payment Required: a server returns HTTP 402 with a signed price and payment details, the client signs a USDC micropayment on Base L2, then retries the request with proof of payment. Xenarch automates both halves for AI agents.
Does the agent need ETH to pay?
No. The agent wallet only ever needs USDC on Base L2 — no ETH, no gas coin of any kind.
How are spending caps and scope enforced?
Set the `XENARCH_API_TOKEN` environment variable to an `xa_live_` agent key. The MCP server then refuses to pay without the token (fail‑closed), enforcing per‑tx, daily, and monthly caps, plus allow/deny scope rules. Caps can be managed via the dashboard at `dash.xenarch.dev`.
Is Xenarch custodial?
No. Xenarch never holds funds and there is no Xenarch contract between the agent and the publisher. Payments are direct USDC transfers (EIP‑3009) from the agent wallet to the publisher wallet.
What transports and auth methods does the server support?
The server uses a private key for wallet operations (set via `XENARCH_PRIVATE_KEY`), an optional API token for caps/scope control, and a SIWE session (via `xenarch agent login`) for control‑plane and merchant tools. All payment communication uses the x402 HTTP handshake.
Basic information
More AI & Agents MCP servers

Lumify Sports Intelligence
LumifyAgent-ready sports intelligence API: live scores, odds, line movement, public betting splits, and explainable bet confidence — via 16 MCP tools at https://lumify.ai/mcp. Get a free key instantly — no signup, email, or ca

bsv.cx
Andy RoweTimestamp and verify evidence on-chain. Let your agent prove what it saw and when. bsv.cx gives an AI agent verifiable memory. Timestamp a hash of any output, archive a web page as it looked, or fetch a URL with a recei
Mcp Agent
lastmile-aiBuild effective agents using Model Context Protocol and simple workflow patterns
🛡️ A.I.G(AI-Infra-Guard)
TencentA full-stack AI Red Teaming platform securing AI ecosystems via OpenClaw Security Scan, Agent Scan, Skills Scan, MCP scan, AI Infra scan and LLM jailbreak evaluation.
Just Prompt - A lightweight MCP server for LLM providers
dislerjust-prompt is an MCP server that provides a unified interface to top LLM providers (OpenAI, Anthropic, Google Gemini, Groq, DeepSeek, and Ollama)
Comments