UCAI
by nirholas·★ 33·Score 44
UCAI is a tool that converts smart contract ABIs to MCP servers, enabling AI agents to interact with blockchain protocols.
Overview
Universal Contract AI Interface (UCAI) provides a standardized way for AI agents to interact with smart contracts. The abi-to-mcp tool generates production-ready MCP servers from any contract ABI, automatically creating tool schemas, type mappings, and safety patterns. It supports various blockchain protocols including Uniswap, Aave, ERC20, and NFTs across multiple EVM chains like Ethereum, Polygon, and Arbitrum.
Try asking AI
After installing, here are 5 things you can ask your AI assistant:
When to choose this
When building AI applications that need to interact with blockchain contracts and want to avoid the tedious work of manually creating MCP servers.
When NOT to choose this
If you need non-EVM blockchain support, or if you require advanced features not covered by the standard ABI-to-MCP conversion.
Tools this server exposes
5 tools extracted from the READMEgetAmountsOutCalculate the output amounts for token swaps on Uniswap
swapExactTokensForTokensExecute a token swap on Uniswap
ownerOfGet the owner of a specific NFT in a collection
balanceOfGet the token balance of an address
getUserAccountDataGet user's account data on Aave including health factor
Note: Tool names inferred from contract examples and use cases in the README. Actual tool signatures would be generated by the abi-to-mcp tool based on contract ABIs.
Comparable tools
Installation
Installation
pip install abi-to-mcpQuick Start
Generate an MCP server for a smart contract:
abi-to-mcp generate 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D -o ~/uniswap-server
cd ~/uniswap-server && pip install -r requirements.txtConnect to Claude Desktop by adding to your config:
{
"mcpServers": {
"uniswap": {
"command": "python",
"args": ["/path/to/uniswap-server/server.py"],
"env": {
"RPC_URL": "https://eth.llamarpc.com"
}
}
}
}FAQ
- What blockchains are supported?
- UCAI supports all EVM-compatible chains including Ethereum, Polygon, Arbitrum, Base, and others. Any chain that can be accessed through an RPC endpoint works.
- How does the security scanner work?
- The security scanner analyzes smart contracts for common vulnerabilities like honeypots, rug pulls, and malicious functions. It checks for OpenZeppelin usage, owner permissions, and mint functions to provide a risk score.
Compare UCAI with
Last updated · Auto-generated from public README + GitHub signals.