kukapay/uniswap-trader-mcp
Free用于 AI 代理在多个区块链上自动化 Uniswap DEX 代币交换的 MCP 服务器。
FreeFree tier
Inputs: text
About kukapay/uniswap-trader-mcp
Uniswap Trader MCP is an open-source Model Context Protocol (MCP) server that enables AI agents to automate token swaps on the Uniswap DEX across multiple blockchains. It provides real-time price quotes with multi-hop route optimization, executes swaps on Uniswap V3 with configurable slippage tolerance and deadlines, and generates trading suggestions based on liquidity, fees, and optimal paths. Supports Ethereum, Optimism, Polygon, Arbitrum, Celo, BNB Chain, Avalanche, and Base. Designed for integration with MCP clients like Claude Desktop. Requires self-hosting with Node.js 14+, a funded wallet, and RPC endpoints.
Key Features
Real-time price quotes with multi-hop route optimization
Swap execution on Uniswap V3 with configurable slippage tolerance and deadlines
Trading suggestions based on liquidity, fees, and optimal paths
Multi-chain support: Ethereum, Optimism, Polygon, Arbitrum, Celo, BNB Chain, Avalanche, Base
Integrates with MCP clients (e.g., Claude Desktop) via Smithery or manual installation
Provides getPrice and executeSwap tools with detailed JSON output
Pros & Cons
Pros
- Open source and free to use
- Supports 8 major blockchain networks
- Multi-hop routing for optimal pricing
- Configurable slippage and deadlines for swap safety
- Provides both price quotes and swap suggestions
- Easy installation via Smithery or manual setup
Cons
- Requires self-hosting with own RPC endpoints and private key
- Limited to Uniswap V3 swaps only
- No built-in user interface; requires an MCP client
- Setup complexity for non-technical users
Best For
AI agents executing DeFi trades automaticallyPortfolio management and rebalancing across multiple chainsGetting real-time price quotes for Uniswap token swapsAutomating arbitrage and yield farming strategiesIntegrating Uniswap trading capabilities into AI assistants
FAQ
What blockchains are supported by Uniswap Trader MCP?
The tool supports Ethereum (chain ID 1), Optimism (10), Polygon (137), Arbitrum (42161), Celo (42220), BNB Chain (56), Avalanche (43114), and Base (8453).
What are the prerequisites for using this tool?
You need Node.js 14+, npm, a funded wallet with a private key, and access to blockchain RPC URLs (e.g., from Infura or Alchemy) for the supported chains.
How do I install Uniswap Trader MCP?
You can install automatically via Smithery with 'npx -y @smithery/cli install @kukapay/uniswap-trader-mcp --client claude' or manually by cloning the repo and installing dependencies with 'npm install'.
What tools and prompts does the MCP server provide?
It provides two tools: 'getPrice' to fetch a price quote for a swap, and 'executeSwap' to execute the swap. Both support parameters like chainId, tokenIn, tokenOut, amount, tradeType, and slippage tolerance.