x402 Payment Gateway MCP Server
Provides tools for creating x402 payment requests and verifying USDC payments on the Solana blockchain, enabling micropayments between AI agents.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
x402 Payment Gateway MCP Server π°
MCP Server that enables micropayments between AI agents using USDC on Solana. Based on the x402 protocol (HTTP 402 Payment Required).
What is x402?
x402 is a protocol that lets AI agents pay for services automatically. When an agent calls a premium tool, it gets a "402 Payment Required" response with payment instructions. The agent pays via blockchain, then gets access.
Related MCP server: Tilde x402 MCP Server
Features
Payment Requests β Create x402-compatible payment requests for any tool
On-Chain Verification β Verify USDC payments directly on Solana
Tool Pricing β Set per-call prices for individual tools
Revenue Tracking β Dashboard with total revenue, per-tool breakdown
Payment History β Full audit trail of all transactions
Installation
pip install x402-mcp-serverConfiguration
Set your merchant wallet in .env:
MERCHANT_WALLET=YourSolanaWalletAddress
SOLANA_RPC_URL=https://api.mainnet-beta.solana.comUsage with Claude Code
{
"mcpServers": {
"x402": {
"command": "uvx",
"args": ["x402-mcp-server"],
"env": {
"MERCHANT_WALLET": "YourSolanaWalletAddress"
}
}
}
}Tools
Tool | Description |
| Create a 402 payment request for a tool |
| Verify on-chain USDC payment |
| Check payment status |
| Set price for a tool |
| View all tool prices |
| Payment history |
| Revenue statistics |
Flow
Agent A x402 Gateway Agent B (Service)
| | |
|-- "Use premium tool" ---->| |
| |-- 402 Payment Required ---->|
|<-- Payment instructions --| |
| | |
|-- USDC payment on-chain ->| |
| |-- verify_payment ---------->|
| |<-- verified ----------------|
|<-- Access granted --------| |More MCP Servers by AiAgentKarl
Category | Servers |
π Blockchain | |
π Data | Weather Β· Germany Β· Agriculture Β· Space Β· Aviation Β· EU Companies |
π Security | |
π€ Agent Infra | Memory Β· Directory Β· Hub Β· Reputation |
π¬ Research | Academic Β· LLM Benchmark Β· Legal |
β Full catalog (40+ servers)
License
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
This server cannot be deployed
Maintenance
Related MCP Connectors
USDC wallets, payment links and x402 payments on Solana for AI agents.
x402 paid API tools for AI agents on Solana: crypto safety, market data, KYB/AML verification.
Pay-per-call tools for AI agents: Solana, DEX, perps, prediction markets, DeFi, web. USDC via x402.
Give your AI agent an x402 wallet: discover and pay for services in USDC, or earn from your own.
Related MCP Servers
- FlicenseNot gradedqualityNot gradedmaintenanceEnables AI agents to access paid content by integrating cryptocurrency payments through the x402 protocol, allowing LLMs to verify payments and retrieve paid resources automatically.1-
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to discover and pay for x402-enabled services using natural language, with multi-chain support for Solana and EVM payments.34 npm1MIT

@hpp-io/x402-mcp-bridgeofficial
AlicenseNot gradedqualityBmaintenanceEnables AI agents to autonomously pay for and discover services using HPP USDC.e over the x402 protocol, without API keys or manual signing.421 npmApache 2.0
@bridgenode/mcpofficial
AlicenseAqualityCmaintenanceEnables AI agents to make pay-as-you-go AI inference requests through x402 with automatic Solana USDC payments, no API keys or registration, while enforcing configurable spending limits.389 npm1MIT No Attribution