RFC 9110 x402 Solana compliance screening and micropayments gateway for AI agents.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
One-click editor setup isnβt available for this listing yet β we donβt have a confirmed install command, and weβd rather show nothing than point your editor at the wrong package or host. Follow the projectβs own setup instructions, linked above.
High-Throughput HTTP 402 Payment Channel Middleware
Language / runtime note. The Maven build targets Java 21 bytecode (
<java.version>21</java.version>), the Spring Boot 3.4 baseline. Container images build and run on Eclipse Temurin JDK 25 (eclipse-temurin:25-jdk/25-jre-alpine). Both are stated explicitly because the host toolchain is JDK 25 while the source level remains Java 21.
An institutional-grade, zero-Web3-SDK middleware that meters HTTP APIs with
the x402 protocol and
RFC 9110 Β§15.5.3
402 Payment Required semantics. It validates Ed25519-signed, off-chain payment
vouchers in-memory in under 5ms on the request hot path, persists every
verification to an append-only PostgreSQL audit ledger, and sweeps cumulative
channel balances on-chain in batched settlement transactions β all without any
Node.js sidecar, Python bridge, or generic Web3 Java wrapper.
Autonomous AI agents can screen Solana addresses and settle compliance
micro-payments through our published Model Context Protocol
(MCP) server. The server is a zero-dependency x402 compliance tool: it speaks
the RFC 9110 402 Payment Required challenge-and-response protocol natively,
signs Ed25519 channel vouchers in-memory (Node.js built-in crypto, no Web3
SDK), and negotiates settlement on every call.
The server reads two environment variables:
| Variable | Value | Purpose |
|---|---|---|
X402_GATEWAY_URL | https://msb-solana-enterprise-payment-gateway.duckdns.org | Gateway root URL |
X402_CHANNEL_ID | chan_smoke_test_001 | x402 payment channel id |
Add an entry to claude_desktop_config.json.
macOS / Linux
Windows
Add the server to cline_mcp_settings.json:
The screen_solana_address tool returns one of two verified outcomes:
| Counterparty | Risk score | Verdict | Flags |
|---|---|---|---|
| Clear counterparty | 0 | CLEAR_TO_TRANSACT | none |
| Malicious / sanctioned counterparty | 100 | BLOCKED | OFAC_SANCTIONED / drainer detection (EXPLOIT_DRAINER) |
This repository contains the official open-source MCP server implementation located at /agent-tools/mcp-server.
agent-tools/mcp-server/src)@msantagiulianab/x402-mcp-servernpx -y @msantagiulianab/x402-mcp-serverBase-layer blockchain latency and per-transaction fees are fundamentally incompatible with high-throughput, micro-metered HTTP APIs. Use cases such as:
β¦each issue millions of sub-cent requests per day. Settling every call directly on Solana would impose block-confirmation latency (hundreds of milliseconds to seconds) and a per-transaction fee that dwarfs the price of a single metered call. The economics do not close, and the user experience collapses.
The gateway decouples the metering decision from the settlement transaction using the x402 HTTP challenge-and-response protocol:
cumulativeAmountAtomic only ever increases for a
channel. The gateway trusts the voucher only insofar as (a) it is signed by
the channel owner, (b) its nonce is strictly monotonic, and (c) its
cumulative spend does not exceed the verified on-chain escrow deposit.402 Payment Required filter. A Spring OncePerRequestFilter
issues a PAYMENT-REQUIRED challenge to unauthenticated callers and accepts a
PAYMENT-SIGNATURE voucher on retry, attaching a PAYMENT-RESPONSE receipt
on success.The result is deterministic, single-digit-millisecond payment gating with fail-closed rejection, a complete audit trail, and on-chain finality only where it matters: at settlement.
The gateway deliberately avoids all generic Web3 SDK baggage:
| Concern | Implementation | Dependency |
|---|---|---|
| Ed25519 signing/verification | Ed25519Signer (BouncyCastle) | bcprov-jdk18on only |
| Base58 codec | Hand-rolled Base58 (no alphabet mistakes) | zero |
compact-u16 (shortvec) | Hand-rolled CompactU16 | zero |
| Canonical account sorting | SolanaWireTransactionBuilder | zero |
| Transaction serialization & signing | SolanaWireTransactionBuilder + SolanaKeypairService | zero |
| Solana RPC | JDK java.net.http.HttpClient + Jackson JSON-RPC 2.0 | zero |
There is no @solana/web3.js, no solana4j/p4j, and no runtime
invocation of an external process. Wire transactions are serialized byte-by-byte
from first principles, and the JVM-native crypto stack is the only third-party
cryptographic primitive.
The gateway follows a strict layered separation:
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/solana-x402-compliance)<a href="https://allmcps.com/mcp/solana-x402-compliance"><img src="https://allmcps.com/api/badge/solana-x402-compliance?style=directory" alt="Solana X402 Compliance on AllMCPs" /></a>