uniswap-trader-mcp

uniswap-trader-mcp

-An MCP server for AI agents to automate token swaps on Uniswap DEX across multiple blockchains.

34
Stars
12
Forks
0
Releases

Overview

Uniswap Trader MCP is an MCP server designed to empower AI agents to automate token swaps on Uniswap across multiple blockchains. It provides real-time price quotes with multi-hop route optimization, enabling agents to evaluate input/output amounts, routes, and potential slippage. The server supports swap execution on Uniswap V3 with configurable slippage tolerance and deadlines, and it can return transaction details such as input/output amounts, minimum received, and route composition. It also offers swap suggestions based on liquidity, fees, and optimal paths to inform decision-making. Multi-chain support includes Ethereum, Optimism, Polygon, Arbitrum, Celo, BNB Chain, Avalanche, and Base, with per-chain RPC URLs and swap routing data configured in chainConfigs.js. Configuration is managed via a JSON entry (mcpServers) and the server can be installed either manually or via Smithery. Prerequisites include Node.js 14+, npm, a funded wallet with a private key, and RPC endpoints. The MCP includes two primary prompts, getPrice and executeSwap, each with defined schemas to query quotes and perform trades, supporting automation with flexible parameters for chain, amounts, and trade type.

Details

Owner
kukapay
Language
JavaScript
License
MIT License
Updated
2025-12-07

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.

Audience

AI AgentsAutomate cross-chain Uniswap swaps via MCP prompts and price/execution data.
DeFi DevelopersIntegrate price quotes, swap execution, and trade optimization into autonomous applications.
Automation EngineersConfigure MCP server for multi-chain DeFi automation workflows.

Tags

UniswapMCPDeFiMulti-ChainCross-ChainPrice QuotesSwap ExecutionSwap SuggestionsUniswap V3EthereumOptimismPolygonArbitrumCeloBNB ChainAvalancheBaseAI Agents