Basic information

Runtime
TypeScript
Version
1.0.0
Category
License
MIT
Transports
stdio
Author
xenarch-ai
Submitted by
Community
Quality
25
Stars
1

About xenarch-mcp Server

AI agents pay for gated APIs with USDC micropayments on Base L2. No API keys, no subscriptions. Non-custodial HTTP 402 payment automation.

xenarch-mcp is a MCP server in the Finance category listed in the AddMCP.net directory, published by xenarch-ai. It exposes 3 tools, including xenarch_check_gate, xenarch_pay, xenarch_get_history. Supported transport: stdio. Runtime: TypeScript. License: MIT. The repository has 1 GitHub stars. Source code is hosted on github.com. Related topics: ai-agent-payments, base-l2, claude, community, crewai.

Setup

{
    "mcpServers": {
        "xenarch": {
            "command": "npx",
            "args": [
                "-y",
                "@xenarch/agent-mcp"
            ]
        }
    }
}

xenarch-mcp config

Add this server to your MCP-compatible client using the configuration below.

{
    "mcpServers": {
        "xenarch": {
            "command": "npx",
            "args": [
                "-y",
                "@xenarch/agent-mcp"
            ]
        }
    }
}

xenarch-mcp tools

  • xenarch_check_gate — Check if a URL/domain has a payment gate and returns pricing and payment details
  • xenarch_pay — Pay for gated content by executing USDC payment on Base via splitter contract
  • xenarch_get_history — View past payments made by this wallet

Overview

What is xenarch-mcp?

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-mcp?

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-mcp

  • 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-mcp

  • 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

Frequently asked questions

1 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.

2 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.

3 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.

4 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.

5 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.

Comments

No comments yet

Be the first to share feedback about this listing. Sign in to leave a comment.

Sign In

Feedback 💬