Xenarch MCP logo

Xenarch MCP

Pays for x402-gated content and APIs with USDC on Base, while managing agent spending controls and merchant pay-links.

Install Xenarch MCP

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "xenarch-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@xenarch/agent-mcp"
      ],
      "env": {
        "XENARCH_PRIVATE_KEY": "YOUR_VALUE_HERE",
        "XENARCH_API_TOKEN": "YOUR_VALUE_HERE",
        "XENARCH_MAX_PAYMENT_USD": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Claude Code command
claude mcp add --env XENARCH_PRIVATE_KEY=YOUR_VALUE_HERE --env XENARCH_API_TOKEN=YOUR_VALUE_HERE --env XENARCH_MAX_PAYMENT_USD=YOUR_VALUE_HERE --transport stdio xenarch-mcp -- npx -y @xenarch/agent-mcp

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

We couldn’t confirm it starts correctly

We hit an unexpected error while testing this listing automatically.

npx -y @xenarch/agent-mcp

Rate limit exceeded, please try again later - you have reached the maximum number of concurrent E2B sandboxes (20). If you need more, please visit 'https://e2b.dev/docs/billing'

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

xenarch-mcp MCP server lets agents discover and pay x402-gated URLs with USDC on Base, then receive the protected content and transaction hash. It signs EIP-3009 transfers from a non-custodial wallet and supports Xenarch pay-links. Account tools add spending caps, URL scope rules, API key management, receipts, and a payment pause control; merchant tools manage links, payments, subscribers, and domain verification. Use it when an agent needs controlled micropayments for HTTP resources or when a merchant needs to issue and monitor USDC pay-links.

Use cases

  • Pay for x402-gated APIs from an agent wallet
  • Fetch paid articles or other protected HTTP content
  • Enforce per-transaction and monthly spending limits
  • Pause agent payments with a kill switch
  • Create and monitor USDC merchant pay-links

Key features

  • x402 gate discovery and payment
  • EIP-3009 USDC settlement on Base
  • Spending caps and URL scope rules
  • Agent API key lifecycle management
  • Merchant pay-link and subscriber management
  • Payment history and receipt queries

Tools29

What Xenarch MCP lets your agent do. Expand a tool for its parameters.

Self-reported~822 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

17/17 checks healthy over the last 82d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 17d ago via OSV.dev · @xenarch/agent-mcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars1Stargazers on the source repository.
npm downloads461Package downloads in the last 30 days.
Last commit10d agoMost recent push to the default branch.
Install checkInconclusiveWe hit an unexpected error running the automated check.
Tools exposed29Callable tools this server registers over MCP.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How Xenarch MCP works

What xenarch-mcp does

xenarch-mcp connects MCP-compatible agents to x402 payment gates and the Xenarch control plane. Agents can inspect a URL or domain before paying, review the accepted price and payment details, and settle an eligible request with USDC on Base. After settlement, the payment tool fetches the gated resource and returns its content together with the transaction hash.

The payment flow is non-custodial: funds move directly from the agent wallet to the seller wallet. The wallet uses USDC and does not need ETH or another gas token. Payment history includes totals, domains, pagination, and transaction details.

A second group of tools manages an agent account. Operators can inspect or change per-transaction, daily, and monthly caps; define allow and deny rules; pause payments; manage xa_live_ keys; and query receipts. A third group supports merchants by creating, listing, inspecting, and revoking pay-links, as well as reviewing received payments and subscribers.

How it works

For a gated resource, call xenarch_check_gate to receive the payment requirements, including price, asset, network, and seller wallet. xenarch_pay then signs an EIP-3009 USDC transfer authorization, settles it on Base, and retries the resource with proof of payment. xenarch_pay_link handles Xenarch links by fetching the payment envelope, settling USDC, and confirming the payment with the link.

The discovery and payment tools use the agent wallet. The official MCP payment flow also requires an XENARCH_API_TOKEN; payments fail closed without it so they remain subject to managed caps and scope rules. Control-plane and merchant operations use a SIWE session. xenarch_agent_login provides a browser-wallet sign-in link, and the resulting seven-day session is stored in ~/.xenarch/config.json for automatic use.

Operations that loosen spending or access generally require confirm: true, while tightening caps or scope does not. Payment pausing is available as an immediate kill switch.

Setup and configuration

Provide a funded wallet through XENARCH_PRIVATE_KEY and an xa_live_ agent key through XENARCH_API_TOKEN. Set XENARCH_MAX_PAYMENT_USD to add a local per-call payment ceiling; its default is $1. The wallet must hold USDC on Base. The control-plane token links payments to managed caps, scope rules, and dashboard receipts.

After starting the MCP server, complete the browser-wallet login once with xenarch_agent_login, or use the Xenarch agent login flow. The session token is saved locally and must be renewed after seven days. The dashboard identity wallet is separate from the local spending wallet.

Merchant setup begins with xenarch_update_merchant_profile. To verify a site, set the merchant site first, then publish the required _xenarch.<site> DNS TXT record and call xenarch_verify_domain.

Tools and capabilities

  • Inspect x402 gates and accepted payment requirements.
  • Pay gated URLs or Xenarch pay-links with USDC on Base.
  • Review wallet payment history and filtered agent receipts.
  • Read and change spending caps, scope posture, and URL rules.
  • Pause or resume agent payments.
  • Create, rotate, list, and revoke xa_live_ API keys.
  • Create and manage merchant pay-links, received payments, and subscribers.
  • Read or update merchant profile data and verify a domain.

Pay-link creation uses a validation step before creation, and the amount is limited to 1.00 USDC. Read-only tools are available for account status, caps, scope, keys, receipts, links, payments, subscribers, and merchant profile data.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Xenarch MCP

xenarch-mcp is an MCP server that connects AI agents to x402-gated HTTP content and APIs, Xenarch pay-links, and the Xenarch control plane. Its main tools inspect payment gates, settle USDC payments on Base, return gated content, manage spending controls, and administer merchant links, payments, and subscribers.

Install and configure the `@xenarch/agent-mcp` package in an MCP-compatible client, then provide `XENARCH_PRIVATE_KEY` and `XENARCH_API_TOKEN`. Complete the browser-wallet login for control-plane or merchant tools; the seven-day session is saved in `~/.xenarch/config.json`.

`XENARCH_PRIVATE_KEY` and `XENARCH_API_TOKEN` are required for the official payment flow. The private key identifies the funded spending wallet, while the API token links payments to managed caps, scope rules, and receipts. `XENARCH_MAX_PAYMENT_USD` adds a local payment limit and defaults to $1.

Yes, Cursor is named as a supported client for Xenarch. The server also describes Claude support. Cursor still needs the MCP server configuration and the required wallet and control-plane credentials for payment operations.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewXenarch MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/xenarch-mcp?style=directory)](https://allmcps.com/mcp/xenarch-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/xenarch-mcp"><img src="https://allmcps.com/api/badge/xenarch-mcp?style=directory" alt="Xenarch MCP on AllMCPs" /></a>