Crypto Payment MCP Server
Uses the Binance API to fetch real-time cryptocurrency prices and supports Binance Smart Chain testnet tokens such as BNB and BUSD.
Provides tools for Bitcoin Testnet payments, BTC balance tracking, and Bitcoin wallet address validation.
Provides tools for Ethereum Sepolia payments, ETH/USDT/USDC token support, price conversion, and wallet address validation.
Provides tools for Ripple Testnet XRP payments, balance tracking, price conversion, and wallet address validation.
Provides tools for Solana Devnet SOL payments, balance tracking, price conversion, and wallet address validation.
Supports USDT (Tether USD) token payments and conversions across supported networks including Ethereum, BSC, and Tron.
Supports XRP as a payment token on the Ripple Testnet, including amount conversion and wallet address validation.
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., "@Crypto Payment MCP Server create a $50 USDT payment request on Ethereum Sepolia"
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.
Crypto Payment MCP Server
A Model Context Protocol (MCP) server for cryptocurrency payment integration. This server provides tools for managing crypto payments, checking balances, tracking prices, and validating wallet addresses across multiple blockchain networks.
Features
π Payment Management - Create payment requests, check status, view history
π° Balance Tracking - Query user balances in real-time
π Price Feeds - Real-time cryptocurrency prices from Binance API
π Multi-Network Support - Bitcoin, Ethereum, BSC, Solana, Tron, XRP
β Address Validation - Validate wallet addresses for each network
π Currency Conversion - Convert between crypto and USD
π Flexible Authentication - Backend API or direct platform access
Related MCP server: perly-pay-mcp
Supported Networks
Network | ID | Supported Tokens |
Bitcoin Testnet |
| BTC |
Ethereum Sepolia |
| ETH, USDT, USDC |
BSC Testnet |
| BNB, USDT, USDC, BUSD, MATIC, DOGE |
Solana Devnet |
| SOL |
Tron Shasta |
| TRX, USDT, USDC |
Ripple Testnet |
| XRP |
Installation
Option 1: Install from npm (Recommended)
npm install -g @syamai/crypto-payment-mcpOption 2: Clone from GitHub
git clone https://github.com/syamai/crypto-payment-mcp.git
cd crypto-payment-mcp
npm install
npm run buildOption 3: Use npx (No installation required)
npx @syamai/crypto-payment-mcpConfiguration
Environment Variables
Create a .env file in the project root:
cp .env.example .envBasic Configuration (Backend API Mode)
# Casino Backend API URL
API_BASE_URL=http://localhost:3001/v2
# API Timeout in milliseconds
API_TIMEOUT=30000Advanced Configuration (Direct Platform Access)
For direct integration with payment platform (bypassing backend):
# Operator credentials
OPERATOR_ID=your-operator-id
OPERATOR_SECRET=your-operator-secret
# Payment platform URLs
PAYMENT_PLATFORM_API_URL=https://payment-platform.example.com/api
PAYMENT_PLATFORM_DOMAIN_URL=https://payment.example.com
# Webhook signature verification (RSA public key)
OPERATOR_PUBLIC_KEY=-----BEGIN PUBLIC KEY-----
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA...
-----END PUBLIC KEY-----Configuration Priority
Configuration | Behavior |
| Uses backend API (casino-tele-backend) for payment operations |
| Enables direct platform API access (bypasses backend) |
Usage with Claude Code
Method 1: Global Settings
Add to your ~/.claude/settings.json:
{
"mcpServers": {
"crypto-payment": {
"command": "npx",
"args": ["@syamai/crypto-payment-mcp"],
"env": {
"API_BASE_URL": "https://your-api-server.com/v2"
}
}
}
}Method 2: Project-level Configuration
Create .mcp.json in your project root:
{
"mcpServers": {
"crypto-payment": {
"command": "npx",
"args": ["@syamai/crypto-payment-mcp"],
"env": {
"API_BASE_URL": "https://your-api-server.com/v2",
"OPERATOR_ID": "your-operator-id",
"OPERATOR_SECRET": "your-operator-secret",
"PAYMENT_PLATFORM_API_URL": "https://platform-api.example.com"
}
}
}
}Method 3: Local Development
If you cloned the repository:
{
"mcpServers": {
"crypto-payment": {
"command": "node",
"args": ["/path/to/crypto-payment-mcp/dist/index.js"],
"env": {
"API_BASE_URL": "http://localhost:3001/v2"
}
}
}
}Available Tools
Payment Tools
Tool | Description | Auth Required |
| Create a new payment request and get payment URL | Yes |
| Check the status of a specific payment | Yes |
| Get user's current USD balance | Yes |
| List payment history with pagination | Yes |
Network & Token Tools
Tool | Description | Auth Required |
| List supported blockchain networks | No |
| List supported tokens for a network | No |
| Get detailed token information with price | No |
Price Tools
Tool | Description | Auth Required |
| Get current USD price for a token | No |
| Get prices for multiple tokens at once | No |
| Convert between token and USD amounts | No |
Utility Tools
Tool | Description | Auth Required |
| Validate a wallet address format | No |
| Check API server connectivity | No |
Tool Examples
Create Payment Request
{
"tool": "crypto_request_payment",
"arguments": {
"authToken": "eyJhbGciOiJIUzI1NiIs..."
}
}Response:
{
"paymentId": "pay_abc123",
"paymentUrl": "https://payment.example.com/?paymentId=pay_abc123"
}Get Token Price
{
"tool": "crypto_get_token_price",
"arguments": {
"symbol": "BTC"
}
}Response:
{
"symbol": "BTC",
"price": 94703.99,
"priceUsd": 94703.99,
"timestamp": 1704672000000
}List Networks
{
"tool": "crypto_list_networks",
"arguments": {
"type": "deposit"
}
}Response:
{
"networks": [
{
"id": "bsc_test",
"name": "Binance Smart Chain Testnet",
"symbol": "BNB",
"icon": "https://s2.coinmarketcap.com/static/img/coins/64x64/1839.png",
"canDeposit": true,
"canWithdraw": true
}
],
"count": 6
}List Tokens for Network
{
"tool": "crypto_list_tokens",
"arguments": {
"network": "bsc_test",
"type": "deposit"
}
}Response:
{
"network": "bsc_test",
"tokens": [
{
"symbol": "BNB",
"name": "Binance Coin",
"decimals": 18,
"icon": "https://s2.coinmarketcap.com/static/img/coins/64x64/1839.png",
"canDeposit": true,
"canWithdraw": true
},
{
"symbol": "USDT",
"name": "Tether USD",
"decimals": 6,
"canDeposit": true,
"canWithdraw": true
}
],
"count": 6
}Convert Amount
{
"tool": "crypto_convert_amount",
"arguments": {
"symbol": "ETH",
"amount": 1.5,
"direction": "toUsd"
}
}Response:
{
"from": { "symbol": "ETH", "amount": 1.5 },
"to": { "symbol": "USD", "amount": 4725.50 },
"direction": "toUsd"
}Validate Address
{
"tool": "crypto_validate_address",
"arguments": {
"address": "0x742d35Cc6634C0532925a3b844Bc9e7595f8B4b2",
"network": "eth"
}
}Response:
{
"address": "0x742d35Cc6634C0532925a3b844Bc9e7595f8B4b2",
"network": "eth",
"valid": true,
"reason": "Address format is valid"
}Get Multiple Prices
{
"tool": "crypto_get_multiple_prices",
"arguments": {
"symbols": ["BTC", "ETH", "BNB", "SOL"]
}
}Response:
{
"prices": [
{ "symbol": "BTC", "price": 94703.99, "priceUsd": 94703.99 },
{ "symbol": "ETH", "price": 3150.25, "priceUsd": 3150.25 },
{ "symbol": "BNB", "price": 612.80, "priceUsd": 612.80 },
{ "symbol": "SOL", "price": 185.42, "priceUsd": 185.42 }
],
"count": 4,
"timestamp": 1704672000000
}Development
Setup
git clone https://github.com/syamai/crypto-payment-mcp.git
cd crypto-payment-mcp
npm installRun in Development Mode
npm run devBuild
npm run buildTest Locally
# Test tools list
echo '{"jsonrpc":"2.0","id":1,"method":"tools/list"}' | node dist/index.js
# Test specific tool
echo '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"crypto_list_networks","arguments":{"type":"deposit"}}}' | node dist/index.jsArchitecture
src/
βββ index.ts # MCP server entry point
βββ config/
β βββ blockchain.ts # Network and token configurations
βββ services/
β βββ payment.service.ts # Backend API client
β βββ platform.service.ts # Direct platform API client
β βββ price.service.ts # Binance price fetching
βββ tools/
βββ definitions.ts # Tool schema definitions (12 tools)
βββ handlers.ts # Tool execution handlersSecurity Notes
Auth tokens are passed per-request and never stored permanently
Tokens are cleared immediately after API calls complete
Use environment variables for sensitive configuration
Never commit
.envfiles to version controlOPERATOR_SECRETis hashed with SHA-512 before transmissionWebhook signatures use RSA-SHA512 for verification
API Backend Requirements
This MCP server is designed to work with a payment API backend that provides:
Endpoint | Method | Description |
| GET | Create payment request |
| GET | Get payment status |
| GET | Get user balance |
| GET | Authenticate user |
| GET | Get payment history |
| GET | Health check |
Webhook Events (for direct platform integration)
Event | Description |
| Deposit detected on blockchain |
| Deposit confirmed and credited |
| Withdrawal request created |
| Withdrawal approved by admin |
| Withdrawal being processed |
| Withdrawal sent on blockchain |
| Withdrawal rejected |
| Withdrawal failed |
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Fork the repository
Create your feature branch (
git checkout -b feature/amazing-feature)Commit your changes (
git commit -m 'Add some amazing feature')Push to the branch (
git push origin feature/amazing-feature)Open a Pull Request
License
MIT License - see the LICENSE file for details.
Related
Model Context Protocol - MCP specification
Claude Code - AI coding assistant
MCP SDK - Official MCP SDK
Binance API - Price data source
Changelog
v1.0.0
Initial release
12 MCP tools for crypto payment operations
Support for 6 blockchain networks
Real-time price feeds from Binance
Address validation for all supported networks
Optional direct platform API integration
Available Tools
12 toolscrypto_convert_amountB
ν ν° κΈμ‘μ USDλ‘ λ³ννκ±°λ, USDλ₯Ό ν ν° κΈμ‘μΌλ‘ λ³νν©λλ€.
Inputs: amount (required), symbol (required), direction (required).
crypto_get_multiple_pricesB
μ¬λ¬ ν ν°μ νμ¬ κ°κ²©μ νλ²μ μ‘°νν©λλ€.
Inputs: symbols (required).
crypto_get_payment_historyC
μ¬μ©μμ κ²°μ λ΄μμ μ‘°νν©λλ€.
Inputs: authToken (required), page, limit, status.
crypto_get_payment_statusC
νΉμ κ²°μ μ μνλ₯Ό μ‘°νν©λλ€.
Inputs: authToken (required), paymentId (required).
crypto_get_token_infoC
νΉμ ν ν°μ μμΈ μ 보λ₯Ό μ‘°νν©λλ€.
Inputs: symbol (required).
crypto_get_token_priceB
νΉμ ν ν°μ νμ¬ USD κ°κ²©μ μ‘°νν©λλ€.
Inputs: symbol (required).
crypto_get_user_balanceA
μ¬μ©μμ νμ¬ μμ‘μ μ‘°νν©λλ€. USD κΈ°μ€ μμ‘μ λ°νν©λλ€.
Inputs: authToken (required).
crypto_health_checkB
API μλ² μ°κ²° μνλ₯Ό νμΈν©λλ€.
Inputs: no named parameters.
crypto_list_networksC
μ§μνλ λΈλ‘μ²΄μΈ λ€νΈμν¬ λͺ©λ‘μ μ‘°νν©λλ€.
Inputs: type.
crypto_list_tokensC
νΉμ λ€νΈμν¬μμ μ§μνλ ν ν° λͺ©λ‘μ μ‘°νν©λλ€.
Inputs: network (required), type.
crypto_request_paymentB
μλ‘μ΄ ν¬λ¦½ν κ²°μ μμ²μ μμ±ν©λλ€. paymentIdμ κ²°μ νμ΄μ§ URLμ λ°νν©λλ€.
Inputs: authToken (required).
crypto_validate_addressC
μ§κ° μ£Όμμ μ ν¨μ±μ κ²μ¦ν©λλ€.
Inputs: address (required), network (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
TDQS
Scored across 12 tools
Most tools target clearly distinct operations (request payment, check status, list networks/tokens, validate address), so an agent can usually pick correctly. The only mild overlap is in the pricing group: crypto_get_token_price, crypto_get_multiple_prices, and crypto_convert_amount all deal with token/USD valuation, though descriptions differentiate single-price lookup, batch lookup, and unit conversion.
All 12 tools use the same crypto_ prefix followed by a consistent verb_noun pattern (crypto_get_*, crypto_list_*, crypto_request_payment, crypto_validate_address). No camelCase/snake_case mixing or inconsistent verb styles.
12 tools is squarely in the well-scoped range for a payment server, and each tool maps to a concrete capability (payments, balances, networks, tokens, prices, address validation, health). Nothing appears redundant or filler-like beyond the intentional batch price helper.
The core payment lifecycle is covered: create request, poll status, list history, check balance, plus the supporting metadata (networks, tokens, prices, address validation). Gaps exist around cancellation/refund of a payment request, fee estimation, and looking up an on-chain transaction by hash, but these are minor and workable around.
Maintenance
Related MCP Connectors
Non-custodial crypto payments: checkout sessions, invoices, webhooks and test payments. No KYC.
Crypto pay links and API for people and AI agents. BTC, Lightning, USDC, USDT, EURC, SOL, ETH.
Non-custodial crypto payments for AI assistants: balances, payments, and create payment links.
Non-custodial crypto payments: charges, invoices and refunds in BTC, XRP, USDC and more.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables blockchain payment operations across multiple networks including Base, Ethereum, BSC, Polygon, and Avalanche. Supports balance queries, token transfers, transaction tracking, wallet management, and gas fee estimation with built-in security limits.MIT
- AlicenseBqualityCmaintenanceEnables an AI coding assistant to create and manage products, prices, payment links, invoices, customers, subscriptions, entitlements, refunds, and webhooks, simulate test payments, read payments and receipts, and verify buyer access through a crypto payment API.3856 npmMIT

MercanPay MCP Serverofficial
AlicenseAqualityCmaintenanceEnables AI assistants to create, look up, list, and cancel crypto invoices, manage reusable payment links, check USDT and TRX rates, and simulate test payments through a secure API.7MIT
CoinVello MCP Serverofficial
AlicenseNot gradedqualityBmaintenanceEnables AI agents to accept non-custodial crypto payments by creating hosted checkout sessions and invoices, tracking payments and wallets, registering and verifying signed webhooks, purchasing prepaid credits, and querying or exporting the book of record. Test-mode payment simulation lets agents verify the full flow end to end.MIT