An MCP server for AI agents to automate token swaps on Uniswap DEX across multiple blockchains.
https://github.com/kukapay/uniswap-trader-mcpStop manually executing DeFi trades or building complex trading infrastructure from scratch. This MCP server connects your AI agents directly to Uniswap's liquidity across 8 major blockchains, turning natural language requests into executed swaps.
Building DeFi trading capabilities usually means wrestling with multiple SDKs, managing chain configurations, handling slippage calculations, and optimizing routing paths. This MCP server abstracts all that complexity into simple tools your AI can use conversationally.
Your agent can now respond to "Swap 1 ETH for DAI on Polygon with 0.5% slippage" by actually executing the trade—not just explaining how it would work.
Real Uniswap Integration: Built on Uniswap's official Smart Order Router SDK, not a wrapper around basic swap functions. Your trades get the same optimal routing that Uniswap's interface uses.
Multi-Chain Ready: Eight blockchain networks configured and ready—Ethereum, Optimism, Polygon, Arbitrum, Celo, BNB Chain, Avalanche, and Base. Switch chains by changing a single parameter.
Production-Grade Tools:
getPrice for real-time quotes with gas estimatesexecuteSwap for actual trade execution with configurable slippageNatural Language Interface: Your AI agent handles the complexity. Users can request trades conversationally without understanding token addresses, slippage tolerance, or routing.
Automated Portfolio Rebalancing: Your agent monitors portfolio allocations and executes rebalancing trades when thresholds are hit. Instead of alerts, you get automatic execution.
Cross-Chain Arbitrage: Deploy agents that monitor price differences across the 8 supported chains and execute profitable arbitrage opportunities automatically.
Dollar-Cost Averaging Bots: Build agents that execute regular token purchases based on market conditions, user schedules, or technical indicators.
MEV Opportunities: Create agents that identify and execute front-running or sandwich attacks (where legally permissible) using the real-time pricing data.
DeFi Strategy Automation: Implement complex trading strategies like grid trading, momentum trading, or mean reversion without manual intervention.
Most DeFi integrations require you to:
This MCP server handles all of that. Your setup process:
The server manages wallet interactions, optimizes trade routes, estimates gas costs, and executes transactions. Your AI gets the trading capabilities without you building the infrastructure.
Install via Smithery for automatic Claude Desktop setup:
npx -y @smithery/cli install @kukapay/uniswap-trader-mcp --client claude
Or clone and configure manually for custom implementations:
git clone https://github.com/kukapay/uniswap-trader-mcp.git
cd uniswap-trader-mcp
npm install
Set your environment variables (Infura key and wallet private key), configure the MCP server connection, and you're ready to give your AI agent access to $50+ billion in Uniswap liquidity.
The question isn't whether you need DeFi trading capabilities in your AI toolkit—it's whether you want to build them from scratch or start trading immediately.