AgentWallet MCP Server
The AgentWallet MCP Server provides permissionless wallet infrastructure for AI agents to create and manage crypto wallets, execute on-chain transactions, and handle x402 payments across EVM chains and Solana — no KYC or approval process required.
Wallet Management
Create, list, get details, pause/unpause, and delete wallets (EVM or Solana)
Balance & Token Info
Check native token balances (ETH, SOL, BNB, etc.) and ERC-20/SPL token balances (USDC, USDT, etc.)
Get ERC-20 token info (name, symbol, decimals) and check allowances
Transactions
Transfer native tokens or ERC-20/SPL tokens to any address
Sign transactions without broadcasting, or sign and broadcast raw transactions
Make read-only smart contract calls (eth_call) to query on-chain data
DeFi Tools
Approve ERC-20 token spending for DeFi protocols (DEXs, lending, etc.)
Wrap/unwrap native tokens (e.g., ETH ↔ WETH)
x402 Payments (Pay)
Automatically pay x402-enabled APIs — detects 402 response, pays on-chain, retries with proof of payment
Set a max payment cap to prevent overspending
x402 Paywalls (Accept Payments)
Create and manage paywalls to charge agents/clients for resource access
List, get, update, and delete paywalls; view payment history with TX hashes and payer addresses
Get aggregate revenue stats across all paywalls by chain and token
Billing & Usage
Check monthly operation usage, quota, and tier info
Buy x402 verification credits with USDC on-chain (no credit card needed)
Chain Support
List all supported chains with IDs, native tokens, and stablecoin addresses
Supports: Ethereum, Base, Polygon, BSC, Arbitrum, Optimism, Avalanche, Zora, PulseChain, Solana, and Solana Devnet
Built-in Security: Private keys encrypted at rest, memory zeroing, daily spending limits, gas price protection, emergency pause, rate limiting, and replay protection for x402 payments.
Pricing: $0.00345/operation (6,000 free/month), $0.0005/x402 verification (1,000 free/month), payable with USDC on-chain.
Enables AI agents to manage wallets, sign and broadcast transactions, and interact with ERC-20 tokens on the Ethereum network, including support for x402 payments and DeFi operations.
Allows AI agents to interact with the Optimism Layer 2 network for wallet management, transaction processing, and ERC-20 token operations.
Supports wallet creation, transaction execution, and token management for AI agents on the Polygon network, including native token and stablecoin transfers.
Provides tools for Solana wallet management, facilitating native SOL and SPL token transfers, account creation, and automated x402 payment processing.
Click on "Install 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., "@AgentWallet MCP ServerSend 0.01 ETH to 0x742d35Cc6634C0532925a3b844Bc454e4438f44e on Base"
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.
AgentWallet MCP Server
Permissionless wallet infrastructure for AI agents. Create wallets, sign transactions, and broadcast on-chain, on any EVM chain and Solana. Built-in guards. No KYC. The only AI agent wallet that accepts crypto for its own API fees.
Your keys can stay on your machine. Set one environment variable and every signature happens in your own process. No server sees the key, no company can freeze the wallet, and you can verify that claim by reading src/local-wallet.ts or by running the server with the API pointed at a closed port.
No KYC. No KYT. No approval process. No transaction monitoring. No one can block your wallet. Pay with USDC on-chain, no credit card required.
Two modes
Local (self-custody) | Hosted (custodial) | |
Who holds the key | You, in your own process | Encrypted on AgentWallet servers |
Set up | One env var, no account needed | API key |
Chains | EVM + Solana | EVM + Solana |
Can anyone freeze it | No | Yes, that is what pause is for |
Spend guards |
| Server-side limits, pause, rate limits |
Paywalls, usage, billing | Needs an API key too | Included |
Run wallet_mode at any time and the server will tell you which one you are in, and which address it controls.
Local signing in one variable
{
"mcpServers": {
"agentwallet": {
"command": "npx",
"args": ["-y", "agentwallet-mcp"],
"env": {
"AGENTWALLET_PRIVATE_KEY": "0xyour_key",
"AGENTWALLET_RPC_8453": "https://your-own-rpc",
"AGENTWALLET_MAX_TX_NATIVE": "0.05"
}
}
}
}Use AGENTWALLET_KEYFILE=/path/to/key instead if you would rather keep the key out of your shell config. The key is read once, never written to disk, never logged, and never included in an error message.
AGENTWALLET_RPC_<chainId> (or AGENTWALLET_RPC_URL for all chains) points at an endpoint you trust. Without it a public RPC is used, and a public RPC can see which addresses you ask about.
AGENTWALLET_MAX_TX_NATIVE is a per-transaction ceiling in native units (ETH, MATIC and so on). In hosted mode the server enforces limits; in local mode there is no server, so these guards are the only ones there are. Set them.
AGENTWALLET_MAX_TX_TOKEN is the equivalent ceiling for ERC-20 movement, in human units of the token. Set this one too if you hold stablecoins. The native cap cannot see a token transfer: an ERC-20 send carries value = 0 with the amount in the calldata, so AGENTWALLET_MAX_TX_NATIVE alone leaves a USDC balance uncapped. AGENTWALLET_MAX_TX_TOKEN covers transfer, transferFrom and approve, the last because an unbounded allowance is a drain waiting to happen. Decimals are resolved locally; unknown tokens are evaluated at 6 decimals, the tightest common value, so it fails closed rather than open.
Solana local signing
"env": {
"AGENTWALLET_SOLANA_KEY": "[12,34...]",
"AGENTWALLET_SOLANA_RPC": "https://your-own-rpc",
"AGENTWALLET_MAX_TX_SOL": "1"
}Accepts whichever format you already have: a solana-keygen id.json array, a base58 secret key as exported by Phantom, or base64. Use AGENTWALLET_SOLANA_KEYFILE to point at a file instead. Native SOL and SPL token transfers are both signed locally, and a missing associated token account is created for the recipient automatically.
Set either key, or both. They are independent: run EVM locally and Solana hosted, or the reverse.
An operation with no matching local key is refused, never silently routed to the hosted signer. If you have an EVM key configured and ask for a Solana transfer with no Solana key, the server stops and tells you which variable is missing. Quietly moving funds onto a key you do not hold, while you believe you are in self-custody, is the worst thing this server could do.
About the dependency tree
Local signing uses viem for EVM and @solana/web3.js for Solana, plus bs58 for key parsing. SPL instructions are built by hand rather than with @solana/spl-token, because that package pulls in bigint-buffer, which carries a high severity buffer overflow advisory. A wallet has no business shipping that to save a dozen lines of instruction encoding.
npm audit currently reports issues inside @modelcontextprotocol/sdk's HTTP transport dependencies. This server speaks stdio, so that code never loads, and the SDK is not something this package can patch. Run the audit yourself. Publishing a tree you can inspect is the point.
Related MCP server: waiaas
Features
31 MCP tools: create wallets, send transactions, approve tokens, wrap ETH, transfer SPL tokens, pay and accept x402 payments, verify custody mode, and more
EVM + Solana: Ethereum, Base, Polygon, BSC, Arbitrum, Optimism, Avalanche, Zora, PulseChain, Solana, and any other EVM-compatible chain
SOL + SPL tokens: native SOL transfers and SPL token transfers (USDC, USDT, etc.) with automatic account creation
Built-in guards: daily spending limits, gas price protection, emergency pause, rate limiting, replay protection, and on-chain verification, all active by default
x402 payments: pay for x402-enabled APIs automatically, or accept x402 payments on your own endpoints (EVM and Solana)
Self-custody option: run local mode and the key never leaves your machine. In hosted mode, keys are encrypted at rest, decrypted only during signing, and zeroed from memory immediately after. Either way you can export and walk away.
Permissionless: No KYC. No KYT. No identity verification. No approval process. No compliance gatekeeping. Sign up, get an API key, and start transacting immediately.
30-second setup: three lines of config. No SDK to install. No dependencies to manage.
Pricing
$0.00345 per operation
6,000 free operations/month
$0.0005 per x402 verification
1,000 free x402 verifications/month
Pay with USDC on-chain via x402, no credit card required
No monthly fee, no tiers, just pay as you go
Competitor comparisons are kept at hifriendbot.com/wallet/#pricing with the date they were last verified. They live there rather than here because a published npm README cannot be corrected when someone else changes their prices.
Quick Start
Get your free API key at hifriendbot.com/wallet, no credit card required, no KYC, no approval wait.
Claude Desktop / OpenClaw
Add to your config:
{
"mcpServers": {
"agentwallet": {
"command": "npx",
"args": ["-y", "agentwallet-mcp"],
"env": {
"AGENTWALLET_USER": "your_username",
"AGENTWALLET_PASS": "your_api_key",
"AGENTWALLET_WALLET_ID": "1"
}
}
}
}
AGENTWALLET_WALLET_IDis optional. Set it to enable x402 auto-pay: when you exceed the free tier without a credit card, the MCP server automatically pays for operations with USDC from this wallet.Auto-pay safety cap.
AGENTWALLET_MAX_AUTOPAY(optional, default1) is the maximum amount, in human-readable units of the asset, that x402 auto-pay will authorize for a single payment. Any 402 requirement above this cap is rejected instead of paid, so a malformed or tampered payment requirement cannot drain the wallet. Raise it only if you genuinely need larger automatic payments (for example"5"to allow up to 5 USDC per call).
Claude Code
claude mcp add agentwallet \
-e AGENTWALLET_USER=your_username \
-e AGENTWALLET_PASS=your_api_key \
-e AGENTWALLET_WALLET_ID=1 \
-- npx -y agentwallet-mcpVS Code
Add to your settings:
{
"mcp": {
"servers": {
"agentwallet": {
"command": "npx",
"args": ["-y", "agentwallet-mcp"],
"env": {
"AGENTWALLET_USER": "your_username",
"AGENTWALLET_PASS": "your_api_key",
"AGENTWALLET_WALLET_ID": "1"
}
}
}
}
}Tools
Tool | Description |
| Create a new EVM or Solana wallet |
| List all your wallets |
| Get wallet details by ID |
| Check native token balance on any chain |
| Check ERC-20 or SPL token balance |
| Get ERC-20 token name, symbol, and decimals |
| Send native tokens (ETH, SOL, POL, BNB, etc.) |
| Send ERC-20 or SPL tokens (USDC, USDT, etc.) |
| Sign and broadcast a raw transaction |
| Sign a transaction without broadcasting |
| Read-only contract call (eth_call) |
| Approve ERC-20 token spending for DeFi |
| Check ERC-20 token allowance |
| Wrap native tokens to WETH/WAVAX/etc. |
| Unwrap WETH back to native tokens |
| Pay x402 invoices automatically (fetch, pay, retry) |
| Create an x402 paywall to charge for a resource |
| List all your x402 paywalls |
| Get paywall details by ID |
| Update paywall pricing, resource, or status |
| Delete a paywall |
| View payment history for a paywall |
| Aggregate revenue stats across all paywalls |
| Report whether signing is local (self-custody) or hosted, and which address is in use |
| How to export a hosted wallet key and move to self-custody |
| Buy x402 verification credits with USDC on-chain |
| Check your monthly usage and billing |
| List all supported chains |
| Emergency pause a wallet |
| Resume a paused wallet |
| Delete a wallet |
Supported Chains
Chain | ID | Native Token | Stablecoin |
Ethereum | 1 | ETH | USDC |
Base | 8453 | ETH | USDC |
Polygon | 137 | POL | USDC |
BSC | 56 | BNB | USDT |
Arbitrum | 42161 | ETH | USDC |
Optimism | 10 | ETH | USDC |
Avalanche | 43114 | AVAX | USDC |
Zora | 7777777 | ETH | USDC |
PulseChain | 369 | PLS | USDC |
Solana | 900 | SOL | USDC |
Solana Devnet | 901 | SOL | USDC |
Use Case: GuessMarket
Pair with guessmarket-mcp to let your AI agent trade prediction markets:
Create a wallet on Base
Approve USDC spending
Buy YES/NO shares on prediction markets
Provide liquidity and earn trading fees
Claim winnings
All on-chain. All through MCP. No frontend needed.
x402 Payments
AgentWallet natively supports the x402 open payment standard. When your Ai agent encounters an API that returns HTTP 402 Payment Required, the pay_x402 tool handles the entire flow automatically:
Fetches the URL and detects the 402 response
Parses the payment requirements (amount, token, chain)
Executes the on-chain payment from your wallet
Retries the request with proof of payment
Returns the final response
Set max_payment to control spending:
pay_x402(
url="https://api.example.com/premium-data",
wallet_id=1,
max_payment="1.00"
)max_payment is enforced as a hard per-payment cap. If you omit it, pay_x402 falls back to AGENTWALLET_MAX_AUTOPAY (default 1), the same cap the auto-pay path uses, so a malicious or compromised 402 endpoint can never authorize an unbounded payment. Set max_payment explicitly (or raise AGENTWALLET_MAX_AUTOPAY) to allow a larger single payment.
Supports ERC-20 tokens, SPL tokens, and native tokens on EVM and Solana. Compatible with x402 V1 and V2 (CAIP-2 chain identifiers), and reads the token address from the standard x402 asset field (falling back to extra.token).
x402 Acceptance
AgentWallet also lets you accept x402 payments. Create a paywall, point it at any resource, and get a public URL that charges agents automatically:
create_paywall(
wallet_id=1,
name="Premium API",
amount="0.01",
token_name="USDC",
token_address="0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
chain_id=8453,
resource_url="https://your-api.com/data"
)When an agent hits the paywall URL:
Gets back HTTP 402 with payment requirements
Pays on-chain using
pay_x402(or any x402-compatible client)Retries with proof of payment
Receives the protected content
On-chain verification ensures every payment is real. Replay protection prevents double-spending. Revenue tracking shows you who paid, how much, and when. 1,000 free verifications/month, then $0.0005 each. See the pricing comparison for how that stacks up.
How We Compare
Feature | Coinbase CDP | AgentWallet |
Setup Time | Install SDK + configure | 3 lines of config |
Approval Process | Identity verification required | None, instant access |
KYC Required | Yes | No |
KYT / Transaction Monitoring | Yes | No |
Can Block Your Wallet | Yes | No |
Built-in Guards | Yes (requires setup) | Yes (active by default) |
Free Operations / Month | 5,000 | 6,000 |
Cost Per Operation | $0.005 | $0.00345 |
x402 Verification Cost | $0.001 | $0.0005 |
Free x402 Verifications / Month | 1,000 | 1,000 |
x402 Acceptance (Paywalls) | No | Yes |
Pay for API Fees with Crypto | No (credit card only) | Yes (USDC via x402) |
Supported Chains | 8 EVM + Solana | Any EVM + Solana |
Token Tools | Yes | ERC-20 + SPL (29 tools) |
MCP Server | Yes | Yes |
Pay with Crypto, No Credit Card Required
AgentWallet is the only AI agent wallet infrastructure that accepts crypto for its own API fees. Every competitor, Coinbase CDP, Circle, MoonPay, Crossmint, Turnkey, requires a credit card or monthly invoice. With AgentWallet, your agent can pay for operations with USDC on-chain via the x402 protocol. No credit card, no invoice, no billing portal. Just on-chain payments.
When your agent exceeds the free tier (6,000 ops/month) without a credit card configured, the API returns HTTP 402 with USDC payment instructions. Your agent pays on-chain, retries with proof of payment, and the operation executes. Fully automated via the MCP server.
You can also pre-purchase x402 verification credits with USDC using the buy_verification_credits tool, keeping your paywalls running beyond the free 1,000 verifications/month without needing a credit card.
Built-in Guards
All guards are active by default, no configuration required.
Encrypted at rest: private keys encrypted before storage and never leave the server
Memory zeroing: keys wiped from memory immediately after every signing operation
Daily spending limits: set a per-wallet daily cap in USD, enforced automatically on every transaction
Gas price protection: transactions blocked when gas prices spike above safe thresholds
Emergency pause: instantly freeze any wallet or all wallets with one click
Rate limiting: API requests capped per minute to prevent abuse and brute force attacks
Replay protection: every x402 payment verified on-chain with unique transaction tracking
On-chain verification: x402 payments verified directly on the blockchain with finalized commitment
Bug bounty program: $50,$500 for responsible disclosure (details)
Links
Website: hifriendbot.com/wallet
npm: agentwallet-mcp
Security: security@hifriendbot.com
Security
pay_x402 validates the target URL before every outbound request and again on
each redirect hop. IP literals are canonicalized (including IPv4-mapped IPv6
such as [::ffff:127.0.0.1]) and hostnames are resolved, with loopback,
private, link-local, carrier-grade NAT, multicast and cloud-metadata
destinations refused.
Validation and connection use the same DNS answer. Each hop resolves once, and
the socket is pinned to an address from that answer, so a hostname cannot
resolve public for the check and private for the connection. The hostname is
still used for the Host header and for TLS SNI and certificate validation, so
pinning is invisible to legitimate endpoints.
Report security issues privately to security@hifriendbot.com.
License
MIT
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseCqualityDmaintenanceEnables AI agents to interact with cryptocurrency ecosystems through wallet management, trading operations (swaps, DCA, limit orders), staking, and multi-chain support starting with Solana.Last updated37GPL 3.0
- AlicenseBqualityCmaintenanceSelf-hosted wallet MCP server for AI agents. Provides 42 tools for multi-chain crypto operations: transfers, token management, DeFi (swap, lend, stake, bridge, perp), NFT, smart contracts, and x402 payments. Supports EVM and Solana with policy engine, spending limits, and human approval.Last updated6029MIT
- AlicenseAqualityDmaintenanceEnables AI agents to manage USDC wallets on Solana, allowing them to send payments, create invoices, and access paid APIs within human-defined spending limits. It uses threshold signatures to provide agents with financial autonomy while ensuring secure oversight and transaction approval.Last updated636443Apache 2.0
- AlicenseAqualityDmaintenanceEnables AI agents to read chain data, execute transactions, swap tokens, and manage wallets on Solana through 38 tools across 7 modules. Supports write operations with a private key and includes built-in prompts for common workflows.Last updated381MIT
Related MCP Connectors
Native Solana staking for AI agents. 26 MCP tools, one-shot signing, webhooks.
63 pay-per-call tools for agents: vision, text, data, web, blockchain. USDC on Base via x402.
30 pay-per-call APIs for AI agents: compliance, trade, safety, web, data. USDC on Base via x402.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/hifriendbot/agentwallet-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server