# x402-mcp-server [Health: Active]

**Category:** 💰 Finance & Fintech  
**Repository:** https://github.com/kten-agent/x402-mcp-server.git  
**GitHub Stars:** 0  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/x402-mcp-server

## Description
MCP server for x402 AI agent payments on Base chain with built-in USDC payment handling.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "x402-mcp-server": {
    "command": "npx",
    "args": ["-y","hermes-asia-x402-mcp@latest"],
    "env": {
      "X402_WALLET_PRIVATE_KEY": "",
      "WORKER_URL": ""
    }
  }
}
```

**Requires environment variables:** `X402_WALLET_PRIVATE_KEY`, `WORKER_URL` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What x402-mcp-server does

The x402-mcp-server MCP server exposes paid Hermes Asia data products through MCP tools. Each tool maps to a Worker API endpoint and returns data after the request has been authorized with an on-chain USDC payment. The available products focus on Asian markets and include:

- China, Taiwan, and Japan trade policy intelligence
- Japanese news and Bank of Japan monetary policy research
- Chinese-to-Japanese patent and technical document translation
- Japanese anime industry investment analysis
- Tokyo night-economy business opportunities
- China’s senior-market economy
- Analysis of China’s “lying flat” social trend
- A 2026 China property-market outlook

Prices are listed per request. Most products cost $0.02, while the bilingual translation and China real-estate products cost $0.03. Payments use USDC on Base, identified as `eip155:8453`, and are sent to the recipient address specified by the project.

## How it works

The x402-mcp-server MCP server uses the x402 v2 protocol with the `exact` payment scheme. An agent first calls an MCP tool. The server forwards the request to the corresponding Hermes Worker endpoint. The Worker responds with HTTP 402 and provides a payment manifest in the `WWW-Authenticate` header.

The server parses that manifest and signs it with the configured wallet using EIP-191. It then retries the request with an `Authorization` header. If the payment succeeds, the Worker returns the requested data and the USDC transfer is completed on-chain. This flow supports payment per call and does not require an API key or subscription.

## Setup and configuration

Node.js 20 or newer is required. The server can be started directly with `npx`:

```bash
npx hermes-asia-x402-mcp@latest
```

For Claude Code or another MCP client, the README provides this registration command:

```bash
claude mcp add hermes-asia -- npx hermes-asia-x402-mcp@latest
```

A global installation is also available:

```bash
npm install -g hermes-asia-x402-mcp-server
```

Set `X402_WALLET_PRIVATE_KEY` to a wallet private key and `WORKER_URL` to the Hermes Worker base URL. The wallet must hold enough USDC on Base for purchases and enough ETH on Base for transaction gas. The README estimates gas at approximately $0.01 per transaction.

## Tools and capabilities

The x402-mcp-server MCP server provides tools corresponding to the eight documented Worker routes: `asia_intelligence`, `japanese_research`, `bilingual_bridge`, `anime_industry_intel`, `kabukicho_guide`, `china_silver_economy`, `lying_flat_report`, and `china_real_estate_2026`. These tools provide access to the products listed above and use the configured Worker URL for their HTTP requests.

## Limitations and notes

This server is designed for Base-chain USDC payments. It requires access to a funded wallet and ETH for gas; configuring the private key is therefore part of deployment. The documented payment recipient, prices, protocol version, and Worker routes come from the project’s current README and may need to match the configured Worker service. No API-key authentication or subscription flow is described.

_Full upstream README: https://allmcps.com/mcp/x402-mcp-server/readme_

