Universal Gas Framework MCP Server
Allows gasless transactions on BNB Chain using BNB or stablecoins as payment.
Allows gasless transactions on Ethereum using native ETH or stablecoins as payment.
Allows gasless transactions on Optimism using ETH or stablecoins as payment.
Allows gasless transactions on Polygon using MATIC or stablecoins as payment.
Allows gasless transactions on Solana using SOL or SPL tokens as payment.
Allows gasless transactions on Sui using native coins or custom coins as payment.
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., "@Universal Gas Framework MCP Serversend 50 USDC from Ethereum to Solana, pay with MATIC on Polygon"
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.
Universal Gas Framework MCP Server
MCP server for Universal Gas Framework. Plug into any MCP-compatible AI host (Claude Desktop, Claude Code, Codex CLI, Gemini CLI, Cursor) and your agent gets typed tools for gasless cross-chain transactions.
What this unlocks
Your agent wants to send tokens on a chain where it has no native gas. Normally that's a dead end — you'd have to bridge or buy gas first. UGF removes that step.
Pay with what you already hold, route the transaction anywhere:
Stablecoins as gas — USDC, EURC, $U (United Stables), USDT
Native EVM coins as gas — ETH (on Ethereum / Base / Optimism / Arbitrum), BNB, MATIC, AVAX
Send to any supported destination — EVM chains, Solana (SOL + SPL), Sui (native + custom coins)
Cross-chain by default — pay USDC on Base, transaction executes on Sui. Pay $U on BNB, transaction executes on Solana.
The agent only needs balance on one supported chain. UGF prices the route, collects payment, and executes the destination action.
Related MCP server: Universal Crypto MCP
Custody
Private keys never reach this MCP server. The agent signs every payload locally (EIP-712 for x402, EIP-1559 for vault, ed25519 for Solana, Sui Ed25519 for Sui). The server only:
Builds unsigned payloads
Submits the agent's signed proofs
Polls UGF gateway for route status
Verified by CI — private_key, mnemonic, secretKey, Keypair.fromSecretKey, new ethers.Wallet return zero hits in src/.
For UGF protocol details, gateway endpoints, and the value-to-action model, see universalgasframework.com. This README only covers the MCP server.
Install
The MCP server runs via npx. No global install needed.
npx -y @tychilabs/ugf-mcp@betaThat command launches it in stdio mode for an AI host. To inspect tools from a terminal:
npx -y @tychilabs/ugf-mcp@beta --tools
npx -y @tychilabs/ugf-mcp@beta --version
npx -y @tychilabs/ugf-mcp@beta --helpRequires Node 18+.
Wire into your MCP host
Claude Desktop
Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%/Claude/claude_desktop_config.json (Windows):
{
"mcpServers": {
"ugf": {
"command": "npx",
"args": ["-y", "@tychilabs/ugf-mcp@beta"]
}
}
}Restart Claude Desktop. The 19 UGF tools become available to Claude.
Claude Code
claude mcp add ugf -- npx -y @tychilabs/ugf-mcp@betaCodex CLI
~/.config/codex/config.json:
{
"mcpServers": {
"ugf": {
"command": "npx",
"args": ["-y", "@tychilabs/ugf-mcp@beta"]
}
}
}Gemini CLI
~/.config/gemini-cli/settings.json → same shape under mcpServers.
Cursor / Windsurf / any stdio-MCP host
Use the same command: "npx", args: ["-y", "@tychilabs/ugf-mcp@beta"] pattern in whatever config file the host expects.
How this MCP works
┌──────────────────┐ stdio JSON-RPC ┌──────────────────┐
│ YOUR AI HOST │ ◄──────────────────────────► │ @tychilabs/ │
│ (Claude / etc.) │ tools/list, tools/call │ ugf-mcp │
└──────────────────┘ └────────┬─────────┘
│ HTTPS
▼
UGF gateway
RPC nodes (EVM/Sol/Sui)The server is stateless and keyless. It:
discovers what coins/chains are payable (
ugf_get_registry)reads on-chain balances (
ugf_check_balance)prices a destination action as a UGF route (
ugf_quote,ugf_smart_quote)returns unsigned payment payloads or destination-prepared bytes
accepts your locally-produced signatures and submits proofs to UGF
polls route status
Signing happens in your agent, not here. This MCP never sees a private key, mnemonic, or password. That's the whole point.
Typical flow (3 steps)
1. quote → ugf_smart_quote { payer_address, dest_chain_id, dest_chain_type, tx_object }
returns ranked routes with digest + payment_amount
2. pay → ugf_x402_build_typed_data OR ugf_vault_build_tx
returns payload your agent signs LOCALLY
then: ugf_x402_submit_signed OR ugf_vault_submit_signed
3. execute → destination-side helpers for the chain family
EVM: ugf_evm_wait_sponsorship → broadcast locally → ugf_evm_confirm_user_tx
Sol: ugf_sol_wait_user_sig_message → sign locally → ugf_sol_submit_user_sig
Sui: ugf_sui_wait_sponsor_bytes → sign locally → ugf_sui_execute_signed_blockYour agent's LLM orchestrates these calls. The MCP just executes each.
Tools (19)
Run npx -y @tychilabs/ugf-mcp@beta --tools for the live list. Summary:
Discovery
Tool | Purpose |
| List every supported payment coin + chains + token/vault addresses. |
| Read on-chain balance for any EVM wallet/token/chain. |
Auth
Tool | Purpose |
| Get the login nonce for a wallet address. |
| Submit address + nonce + locally-produced signature → JWT. |
| Restore a cached JWT on a fresh session. |
Quote
Tool | Purpose |
| Explicit route — pick exact payment coin + chain. |
| Auto-discover the cheapest viable route across the agent's balances. |
Pay (self-custody — no signer required)
Tool | Purpose |
| Return ERC-3009 typed-data for x402 payment. Agent signs locally. |
| Submit the agent-produced x402 signature. |
| Return unsigned EIP-1559 vault payment tx. Agent signs + broadcasts locally. |
| Submit the on-chain vault tx hash after the agent broadcasts. |
Execute — EVM destination
Tool | Purpose |
| Wait until UGF has sponsored the destination side. |
| Confirm the agent-broadcast destination tx hash back to UGF. |
Execute — Solana destination
Tool | Purpose |
| Wait for UGF's prepared Solana message bytes. |
| Submit the agent-produced ed25519 user signature. |
Execute — Sui destination
Tool | Purpose |
| Wait until UGF returns |
| Broadcast the dual-signed (user + sponsor) Sui block via Sui RPC. |
Status
Tool | Purpose |
| Single-shot status check for a route digest. |
| Poll until the route reaches a terminal state. |
Environment variables
All optional. Public RPCs are used when not set.
Var | Default | Purpose |
|
| Ethereum mainnet |
|
| Optimism |
|
| BNB chain |
|
| Polygon |
|
| opBNB |
|
| Arbitrum |
|
| Avalanche C-chain |
|
| Base |
|
| Sui mainnet |
Where to set them
Per MCP host config (preferred) — pass through to the spawned process:
{
"mcpServers": {
"ugf": {
"command": "npx",
"args": ["-y", "@tychilabs/ugf-mcp@beta"],
"env": {
"RPC_BASE": "https://base-mainnet.g.alchemy.com/v2/<your-key>",
"RPC_ETH": "https://eth-mainnet.g.alchemy.com/v2/<your-key>"
}
}
}
}Local .env.mcp — useful for development. Copy .env.example → .env.mcp, fill in your keys, run the server in the same directory.
Security model
Layer | What's here | What's NOT here |
MCP source | reads + RPC calls + UGF SDK glue | no key material, no |
Wire protocol | JSON-RPC over stdio | no remote network listener — the host process pipes stdin/stdout |
External calls | UGF gateway + public RPCs | no telemetry, no analytics, no third-party reporting |
Verified by a CI grep guard — private_key, mnemonic, secretKey, Keypair.fromSecretKey, new ethers.Wallet must return zero hits in src/.
If you need a host-side wallet that signs for the agent automatically, that's a separate concern. This MCP server is the bridge — it expects a signing-capable client on the host.
Examples
List supported coins from your terminal
echo '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"ugf_get_registry","arguments":{}}}' \
| npx -y @tychilabs/ugf-mcp@betaInside Claude Desktop (after wiring config above)
Ask:
What UGF payment coins are available on Base?
Claude will call ugf_get_registry and answer.
What's my USDC balance on Base for address 0x...?
Claude calls ugf_check_balance.
Quote a payment of 0.01 USDC on BNB paying gas from my Base USDC. My payer address is 0x...
Claude calls ugf_smart_quote, returns ranked routes. To actually execute, your agent needs to sign — see "How this MCP works" above.
Troubleshooting
symptom | likely cause | fix |
| Payment chain is legacy gas (BNB, opBNB). | Pay from an EIP-1559 chain (Base, Ethereum, etc.) until the upstream SDK ships legacy-tx support. |
| BNB / opBNB blocked client-side for the same reason. | Same workaround as above. |
| Missing JWT. | Call |
| Gateway indexer lag — the broadcast succeeded but gateway hadn't seen the block yet. | Wait 5–10 seconds and resubmit. The agent orchestrator that ships in our binary product already retries with backoff. |
| The chain ID you passed isn't in the registry. | Call |
MCP host can't see the tools | npx didn't run / wrong path. | Test in a terminal with |
Versioning
Follows semver. 1.0.0-beta.1 is the first publicly published version. Breaking changes during beta will bump to -beta.N+1. After ~1 week of stable mainnet usage with no incidents, promotes to 1.0.0.
License
MIT — see LICENSE.
Links
UGF docs (protocol, not this MCP): https://universalgasframework.com
Anthropic MCP spec: https://modelcontextprotocol.io
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
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/TychiWallet/ugf-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server