USDCx Bridge
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., "@USDCx BridgeBridge 50 USDC to Stacks"
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.
USDCx Bridge
Bridge USDC to Stacks using ChatGPT. No contracts. No complexity. Just conversation.
The first conversational bridge interface built on ChatGPT's Apps SDK and Model Context Protocol.
What It Does
Talk to ChatGPT, connect your wallets (MetaMask + Leather), and bridge USDC between Ethereum and Stacks—all without leaving the chat interface.
Related MCP server: Stacks AI MCP Server
Why It Exists
Bridging USDC to Stacks today requires manual smart contract calls, complex address encoding (c32 → bytes32), and waiting 15-60 minutes with zero visibility.
USDCx Bridge makes it as easy as describing what you want in plain English.
How It Works
Natural language - "Bridge 50 USDC to Stacks"
Widget appears - React component renders in ChatGPT
Connect wallets - MetaMask for Ethereum, Leather for Stacks
Sign & bridge - One click, you sign with your wallet
Track live - See confirmations and ETA in real-time
Features
✅ Conversational interface - No technical knowledge required
✅ Your wallets, your control - We never custody funds
✅ Live status tracking - Know exactly what's happening
✅ Built on official protocols - Circle xReserve + Stacks attestation
✅ Open source - Verify everything
✅ First MCP blockchain app - Sets the standard
Quick Start
1. Enable Developer Mode in ChatGPT settings
2. Create a custom app and add this MCP server:
https://usdcxbridge.fly.dev/mcp3. Type in ChatGPT:
"Bridge USDC to Stacks"That's it. The widget will appear and guide you through the rest.
Tech Stack
Backend
@modelcontextprotocol/sdk - MCP server
viem - Ethereum contract interactions
@stacks/transactions - Stacks operations
Node.js + TypeScript
Frontend (Widgets)
React + TypeScript
viem - Ethereum wallet connections
@stacks/connect - Stacks wallet integration
Bridge Infrastructure
Circle xReserve (Ethereum smart contracts)
Stacks attestation service
Security
✅ You connect your own wallets
✅ You sign every transaction
✅ We never custody your funds
✅ We never access your private keys
✅ Uses official Circle xReserve protocol
Development
Prerequisites
Node.js 18+
npm or pnpm
Installation
# Clone repo
git clone https://github.com/yourusername/usdcx-bridge.git
cd usdcx-bridge
# Install dependencies
npm install
# Build everything (server + widgets)
npm run build
# Run MCP server locally (stdio mode)
npm start
# Run HTTP server (for ChatGPT integration)
npm run start:http
# Test with MCP inspector
npm testEnvironment Variables
Create a .env file:
# Ethereum Network (mainnet or testnet)
ETHEREUM_NETWORK=testnet
ETHEREUM_RPC_URL=https://ethereum-sepolia.publicnode.com
# Stacks Network
STACKS_NETWORK=testnet
# Contract Addresses (Testnet)
XRESERVE_CONTRACT=0x008888878f94C0d87defdf0B07f46B93C1934442
USDC_CONTRACT=0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238
STACKS_USDCX_CONTRACT=ST1PQHQKV0RJXZFY1DGX8MNSNYVE3VGZJSRTPGZGM.usdcx-v1
# HTTP Server
PORT=3001
BASE_URL=http://localhost:3001Project Structure
usdcx-bridge/
├── src/
│ ├── server/
│ │ ├── index.ts # MCP server (stdio mode)
│ │ ├── http-server.ts # HTTP wrapper for ChatGPT
│ │ └── lib/
│ │ ├── ethereum.ts # Ethereum/xReserve logic
│ │ ├── stacks.ts # Stacks/USDCx logic
│ │ └── helpers.ts # Address encoding utilities
│ └── widgets/
│ ├── DepositWidget.tsx # Ethereum → Stacks
│ ├── WithdrawalWidget.tsx # Stacks → Ethereum
│ ├── StatusWidget.tsx # Transaction tracking
│ └── hooks/
│ ├── useMetaMask.ts # MetaMask integration
│ └── useLeather.ts # Leather wallet integration
├── dist/ # Built files
├── package.json
├── tsconfig.json
└── README.mdArchitecture
ChatGPT
↓
MCP Server (tools: prepareDeposit, prepareWithdrawal, checkStatus)
↓
React Widgets (wallet connection + transaction signing)
↓
Smart Contracts (xReserve on Ethereum, usdcx-v1 on Stacks)MCP Tools
The server exposes these tools to ChatGPT:
prepareDeposit
Prepares USDC → USDCx bridge transaction (Ethereum to Stacks)
Parameters:
amount- Amount of USDC to bridgestacksRecipient- Destination Stacks addressuserEthereumAddress- User's Ethereum address
Returns: Widget URL for MetaMask signing
prepareWithdrawal
Prepares USDCx → USDC withdrawal transaction (Stacks to Ethereum)
Parameters:
amount- Amount of USDCx to withdraw (minimum 4.80)ethereumRecipient- Destination Ethereum addressstacksAddress- User's Stacks address
Returns: Widget URL for Leather signing
checkStatus
Checks transaction status on either chain
Parameters:
txHash- Transaction hashchain- Either "ethereum" or "stacks"
Returns: Status widget with live updates
getBalances
Gets USDC and USDCx balances
Parameters:
ethereumAddress(optional)stacksAddress(optional)
Returns: Balance information
healthCheck
Verifies bridge contracts are operational
Returns: System status
Deployment
Docker
# Build image
docker build -t usdcx-bridge .
# Run container
docker run -p 3001:3001 usdcx-bridgeFly.io
# Install flyctl
curl -L https://fly.io/install.sh | sh
# Deploy
fly deployManual
# Build
npm run build
# Start
NODE_ENV=production npm run start:httpTesting
Local Testing with MCP Inspector
npm testThis opens the MCP inspector for testing tools locally.
Test Deposit Flow
Get testnet USDC from Sepolia faucet
In ChatGPT: "Bridge 5 USDC to ST1PQHQKV0RJXZFY1DGX8MNSNYVE3VGZJSRTPGZGM"
Click widget link
Connect MetaMask
Approve USDC (if needed)
Sign bridge transaction
Wait ~15 minutes
Check USDCx balance on Stacks
Test Withdrawal Flow
Ensure you have USDCx on Stacks testnet
In ChatGPT: "Withdraw 5 USDCx to 0xYourEthereumAddress"
Click widget link
Connect Leather wallet
Sign burn transaction
Wait ~25-45 minutes
Check USDC balance on Ethereum
Troubleshooting
Widget not loading
Check that
npm run buildcompleted successfullyVerify HTTP server is running on correct port
Check browser console for errors
MetaMask connection fails
Install MetaMask extension
Switch to Sepolia testnet
Refresh page and try again
Leather connection fails
Install Leather wallet
Create/import Stacks wallet
Ensure on testnet mode
Transaction stuck
Check transaction on block explorer
For Ethereum: https://sepolia.etherscan.io
For Stacks: https://explorer.hiro.so (testnet)
Bridge can take 15-60 minutes depending on attestation
Contributing
Contributions welcome! Please:
Fork the repo
Create a feature branch
Make your changes
Add tests
Submit a pull request
License
MIT License - see LICENSE file
Links
Documentation: MCP Protocol Docs
Circle xReserve: Official Docs
Stacks USDCx: GitHub
Report Issues: GitHub Issues
Acknowledgments
Built with:
ChatGPT Apps SDK
Model Context Protocol
Circle's xReserve Protocol
Stacks Blockchain
Viem & wagmi
React
Made with ❤️ for the Bitcoin & Ethereum ecosystems
This server cannot be installed
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
- 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/fozagtx/stacksGPT'
If you have feedback or need assistance with the MCP directory API, please join our Discord server