uniswap-trader-mcp
16
Uniswap Trader MCP is a Model Context Protocol server designed to enable AI-driven automation of token swaps on the Uniswap decentralized exchange across various blockchains. It provides tools for price quoting, executing swaps, and generating suggestions, supporting multiple blockchains such as Ethereum and Polygon.
Uniswap Trader MCP
An MCP server for AI agents to automate token swaps on Uniswap DEX across multiple blockchains.
Features
- Price Quotes: Get real-time price quotes for token swaps with multi-hop route optimization.
- Swap Execution: Execute swaps on Uniswap V3 with configurable slippage tolerance and deadlines.
- Swap Suggestions: Generate trading suggestions based on liquidity, fees, and optimal paths.
- Multi-Chain Support: Compatible with Ethereum, Optimism, Polygon, Arbitrum, Celo, BNB Chain, Avalanche, and Base.
Prerequisites
- Node.js: Version 14.x or higher.
- npm: For package management.
- Wallet: A funded wallet with a private key for executing swaps.
- RPC Endpoints: Access to blockchain RPC URLs (e.g., Infura, Alchemy) for supported chains.
Usage
The following blockchains are supported. Ensure each chain is configured with a valid RPC URL, WETH address, and SwapRouter address.