Web Builder¶
mcp.ucai.tech — Generate MCP servers directly in your browser, with built-in security scanning and plain English contract explanations.
Features¶
🛡️ Security Scanner¶
Before creating an MCP server, the security scanner analyzes the contract for 50+ risk patterns:
- Critical risks:
selfdestruct, arbitrarydelegatecall,tx.originauth - High risks: Hidden mint functions, pause/freeze, blacklists, adjustable fees
- Medium risks: Transfer restrictions, proxy patterns, assembly code
- Low risks: Timestamp dependence, unchecked math
The scanner produces a risk score (0-100) and categorizes the contract:
| Score | Level | Meaning |
|---|---|---|
| 80-100 | 🟢 Safe | Low risk, standard patterns |
| 60-79 | 🟡 Caution | Some concerns, review carefully |
| 40-59 | 🟠 Warning | Multiple risks detected |
| 0-39 | 🔴 Danger | High risk, proceed with extreme caution |
📖 Contract Whisperer¶
The Contract Whisperer explains what a smart contract does in plain English:
- Summary: One-sentence description
- Main functions: What each function does
- Permissions: Who can do what (owner, admin, anyone)
- Tokenomics: Mintable, burnable, fees
- Risk summary: Plain English explanation of risks
⚡ Pro Templates¶
Pre-built multi-contract bundles for advanced use cases:
| Template | Contracts | Use Case |
|---|---|---|
| Flash Loan Playground | Aave V3, Uniswap | Flash loan arbitrage |
| Multi-DEX Arbitrage | Uniswap, Sushi, Curve | Cross-DEX price comparison |
| Yield Aggregator Intel | Yearn, Convex, Aura | Yield farming opportunities |
| Liquidation Bot Intel | Aave, Compound | Liquidation monitoring |
| Base DeFi Starter | Aerodrome, BaseSwap | L2 DeFi on Base |
| Arbitrum Perps Suite | GMX, Camelot | Perpetual futures |
🔧 Custom Contract Builder¶
- Connect wallet (optional) — Saves your servers to localStorage
- Select network — Ethereum, Polygon, Arbitrum, Base, Optimism, BSC, Avalanche
- Enter contract address — Or paste an ABI
- Fetch ABI — Automatically retrieves from block explorer
- Security scan — Auto-runs after fetching ABI
- Download — ZIP with
server.py,requirements.txt,README.md
Usage¶
Quick Start¶
- Go to mcp.ucai.tech
- Enter a contract address (e.g.,
0x7a250d5630B4cF539739dF2C5dAcb4c659F2488Dfor Uniswap) - Click Fetch ABI
- Review the security scan results
- Click Generate & Download Server
- Unzip and follow the included README
Using Pro Templates¶
- Click the ⚡ Pro Templates tab
- Browse templates by category
- Click Generate X-Contract Bundle
- Wait for ABIs to be fetched
- Download the ZIP containing all servers
Sharing Links¶
Share a pre-filled form with anyone:
Parameters:
- address — Contract address
- network — Network ID (ethereum, polygon, arbitrum, base, optimism, bsc, avalanche)
Dark/Light Mode¶
Toggle between light and dark themes using the sun/moon switch in the header.
Export/Import Servers¶
If you've connected a wallet, your generated servers are saved to localStorage:
- Export: Download your server list as JSON
- Import: Restore servers from a JSON backup
Downloaded Files¶
Each generated server includes:
my-contract-mcp-server/
├── server.py # MCP server implementation
├── requirements.txt # Python dependencies
├── README.md # Setup instructions
└── abi.json # Contract ABI
server.py¶
A complete MCP server with:
- All view/read functions as tools
- All write functions as tools (with simulation)
- Events as queryable resources
- Proper type mappings (address, uint256, bytes, etc.)
requirements.txt¶
README.md¶
Step-by-step setup instructions:
- Install dependencies
- Set RPC_URL environment variable
- Add to Claude Desktop config
- Example prompts to try
Supported Networks¶
| Network | Explorer API |
|---|---|
| Ethereum Mainnet | Etherscan |
| Polygon | Polygonscan |
| Arbitrum One | Arbiscan |
| Base | Basescan |
| Optimism | Optimistic Etherscan |
| BNB Smart Chain | BSCScan |
| Avalanche C-Chain | Snowtrace |
| Custom RPC | Manual ABI entry required |
API Routes¶
The web builder uses the following API endpoints:
POST /api/analyze¶
Analyzes a contract for security risks and generates explanations.
Request:
Response:
{
"success": true,
"address": "0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D",
"contractName": "UniswapV2Router02",
"isVerified": true,
"isProxy": false,
"securityReport": {
"overallScore": 85,
"riskLevel": "safe",
"risks": [...],
"positives": [...]
},
"explanation": {
"summary": "Uniswap V2 Router - Decentralized exchange",
"purpose": "...",
"mainFunctions": [...],
"permissions": [...],
"riskSummary": "..."
}
}
Privacy¶
- No backend storage — All server configs are stored in your browser's localStorage
- Wallet optional — Connect only if you want to save servers across sessions
- No tracking — We don't track which contracts you analyze
- Open source — View the code on GitHub