Uniswap Trader MCP enables AI agents to execute cryptocurrency trading strategies across multiple blockchains through the Uniswap decentralized exchange. The implementation provides tools for getting price quotes and executing swaps with optimal multi-hop routing, supporting various EVM-compatible networks including Ethereum, Optimism, Polygon, Arbitrum, Celo, BNB Chain, Avalanche, and Base. It handles native token conversions, slippage tolerance settings, and transaction management with proper error handling, making it particularly valuable for automated trading, portfolio rebalancing, and liquidity provision without leaving the conversation interface.
Fetches a price quote for a Uniswap swap. Parameters: chainId (Number, default: 1), tokenIn (String), tokenOut (String), amountIn (String, optional), amountOut (String, optional), tradeType (String, 'exactIn' or 'exactOut', default: 'exactIn').
Executes a swap on Uniswap. Parameters: chainId (Number, default: 1), tokenIn (String), tokenOut (String), amountIn (String, optional), amountOut (String, optional), tradeType (String, 'exactIn' or 'exactOut', default: 'exactIn'), slippageTolerance (Number, default: 0.5, in percentage), deadline (Number, default: 20, in minutes).
No reviews yet. Be the first to review!
Sign in to join the conversation
Our bundler currently only supports TypeScript-based servers. Check back soon!