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.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@x402 Payment Gateway MCP ServerCreate a payment request for the premium data analysis tool costing 0.5 USDC."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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: x402 MCP Payment
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
This server cannot be deployed
Maintenance
Related MCP Connectors
x402 paid API tools for AI agents on Solana: crypto safety, market data, KYB/AML verification.
Give your AI agent an x402 wallet: discover and pay for services in USDC, or earn from your own.
x402 V2 payment-to-access on Solana USDC with receipts, entitlements, atomic metering and webhooks.
162 AI agents for Solana crypto intelligence, wallets, and x402 micropayments.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to interact with the x402 payment protocol on Solana, allowing discovery and consumption of x402-enabled services, USDC payment management, and access to Solana development resources.10MIT
- FlicenseNot gradedqualityCmaintenanceEnables 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.51MIT

@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.88Apache 2.0