Solana X402 Compliance logo

Solana X402 Compliance

Screens Solana addresses and negotiates x402 micropayments through a configured gateway.

Install Solana X402 Compliance

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": {
    "solana-x402-compliance": {
      "command": "npx",
      "args": [
        "-y",
        "@msantagiulianab/x402-mcp-server"
      ],
      "env": {
        "X402_GATEWAY_URL": "YOUR_VALUE_HERE",
        "X402_CHANNEL_ID": "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 X402_GATEWAY_URL=YOUR_VALUE_HERE --env X402_CHANNEL_ID=YOUR_VALUE_HERE --transport stdio solana-x402-compliance -- npx -y @msantagiulianab/x402-mcp-server

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

Automated check passed— started and listed 4 tools correctly ().

Overview

The solana-x402-compliance MCP server screens Solana addresses and supports x402 payment negotiation for AI-agent requests. It runs as a TypeScript package through npx, connects to a configured gateway and payment channel, and uses RFC 9110 402 challenge-response semantics with Ed25519-signed vouchers. The screening tool reports clear or blocked outcomes, including sanctions and drainer-related flags. Reach for it when an agent needs compliance screening alongside metered Solana API access.

Use cases

  • Screen Solana counterparties before transactions
  • Block sanctioned or drainer-related addresses
  • Meter AI-agent API requests with x402 payments
  • Run compliance checks from Claude Desktop or Cline

Key features

  • Solana address compliance screening
  • x402 payment challenge handling
  • Ed25519 voucher signing
  • Cumulative payment channel support
  • Batched settlement through the gateway
  • PostgreSQL verification audit trail

Tools4

What Solana X402 Compliance lets your agent do. Expand a tool for its parameters.

Verified live~1.2k 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.

14/14 checks healthy over the last 68d

What it can do

From the 4 tools this server returned when we ran it.

Read-only tools · 4
Network at startup3 connections
Files written at startupNone
Install scriptsNone
npm provenanceNot published
Package age40 days
Maintainers1

Observed 2026-11-03 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 3d ago via OSV.dev · @msantagiulianab/x402-mcp-server (npm)

Adoption & maintenance

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

npm downloads560Package downloads in the last 30 days.
Last commit2mo agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed4Callable tools this server registers over MCP.

How Solana X402 Compliance works

What solana-x402-compliance does

The solana-x402-compliance MCP server exposes Solana compliance screening and x402 payment handling to MCP-compatible AI agents. It connects to a configured gateway URL and channel ID, allowing agents to submit addresses for screening and negotiate payment for gateway calls.

The documented screening outcomes are deterministic categories: a clear counterparty receives risk score 0 and the CLEAR_TO_TRANSACT verdict, while a malicious or sanctioned counterparty receives risk score 100 and the BLOCKED verdict. Blocking flags can include OFAC_SANCTIONED or EXPLOIT_DRAINER.

How it works

The MCP implementation is written in TypeScript and distributed as @msantagiulianab/x402-mcp-server. It runs over standard input and output when launched with npx -y @msantagiulianab/x402-mcp-server.

For payment-gated requests, the gateway uses the x402 protocol and RFC 9110 402 Payment Required semantics. An unauthenticated request receives a payment challenge; a retry can include an Ed25519-signed payment voucher. The gateway verifies vouchers in memory and returns a payment response after successful handling. Settlement is negotiated through the configured channel rather than requiring a direct blockchain transaction for every request.

The underlying gateway records verification activity in an append-only PostgreSQL audit ledger and settles cumulative channel balances in batched on-chain transactions. The request path does not make a synchronous Solana RPC call, according to the project documentation.

Setup and configuration

Run the published package with Node.js and npx:

Terminal
npx -y @msantagiulianab/x402-mcp-server

Two environment variables are required by the documented configuration:

  • X402_GATEWAY_URL: the root URL of the x402 gateway.
  • X402_CHANNEL_ID: the payment channel identifier used for requests.

The README includes configurations for Claude Desktop on macOS, Linux, and Windows, as well as VS Code with Cline. Each configuration starts the package with npx and passes both variables in the server environment.

Tools and capabilities

The solana-x402-compliance MCP server provides:

  • screen_solana_address for verified Solana counterparty screening.
  • Risk scores and verdicts for clear, sanctioned, or drainer-related addresses.
  • x402 challenge-and-response payment handling through the configured gateway.
  • Ed25519 voucher signing and payment negotiation without a Web3 SDK.
  • Support for cumulative payment channels and batched settlement in the gateway implementation.

Limitations and notes

Screening results are limited to the outcomes and flags specified in the project material; other risk categories should not be assumed.

The package is an MCP client-facing component for the gateway, while the broader repository contains the Java 21 and Spring Boot gateway implementation. Its documented runtime path uses the published npm package, not a Node.js sidecar attached to the Java gateway. A payment channel ID and reachable gateway URL must therefore be available before agent requests can use the payment flow.

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 Solana X402 Compliance

solana-x402-compliance is an MCP server that connects AI agents to a configured Solana x402 gateway and payment channel. Its main tools and capabilities include screen_solana_address for counterparty checks, risk verdicts for sanctioned or drainer-related addresses, and x402 payment negotiation using signed vouchers.

Install and run it with npx -y @msantagiulianab/x402-mcp-server. The package is published as @msantagiulianab/x402-mcp-server, so a separate repository build is not required for the documented execution path.

It requires X402_GATEWAY_URL and X402_CHANNEL_ID. The first points to the gateway root URL, and the second identifies the x402 payment channel used by the server.

Yes, it works with Claude Desktop through an MCP server entry that launches the package with npx. The configuration must pass X402_GATEWAY_URL and X402_CHANNEL_ID in the server environment.

Yes, the README provides a Cline configuration for VS Code. Add the npx command and both required x402 environment variables to Cline's MCP settings.

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 PreviewSolana X402 Compliance AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/solana-x402-compliance?style=directory)](https://allmcps.com/mcp/solana-x402-compliance)
HTML Embed
<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>