Automate Uniswap Token Swaps Across Blockchains
Automate token swaps on Uniswap across multiple blockchains. Get quotes and execute trades.
Why it matters
Empower AI agents to execute automated token swaps on Uniswap V3 across multiple blockchains. This MCP server provides tools for fetching real-time price quotes and executing trades with configurable parameters.
Outcomes
What it gets done
Fetch real-time price quotes for token swaps with multi-hop route optimization.
Execute token swaps on Uniswap V3 with configurable slippage tolerance and deadlines.
Support for multiple blockchains including Ethereum, Optimism, Polygon, and Arbitrum.
Generate trade recommendations based on liquidity, fees, and optimal paths.
Install
Add it to your toolbox
Run in your project directory:
curl -fsSL https://spark.entire.vc/get/vb-uniswap-trader-mcp | bash Capabilities
Tools your agent gets
Fetches real-time price quotes for swaps on Uniswap with multi-hop route optimization
Executes token swaps on Uniswap V3 with configurable slippage tolerance and deadlines
Overview
uniswap-trader-mcp server
What it does
This listing describes an MCP server for automating token swaps on Uniswap. It details installation, configuration, available tools, features, environment variables, and usage examples.
Source README
An MCP server that enables AI agents to automate token swaps on the Uniswap DEX across multiple blockchains, including Ethereum, Optimism, Polygon, Arbitrum, and others.
Installation
NPX via Smithery
npx -y @smithery/cli install @kukapay/uniswap-trader-mcp --client claude
From Source Code
git clone https://github.com/kukapay/uniswap-trader-mcp.git
cd uniswap-trader-mcp
npm install
Configuration
Claude Desktop
{
"mcpServers": {
"Uniswap-Trader-MCP": {
"command": "node",
"args": ["path/to/uniswap-trader-mcp/server/index.js"],
"env": {
"INFURA_KEY": "your infura key",
"WALLET_PRIVATE_KEY": "your private key"
}
}
}
}
Available Tools
| Tool | Description |
|---|---|
getPrice |
Fetches real-time price quotes for swaps on Uniswap with multi-hop route optimization |
executeSwap |
Executes token swaps on Uniswap V3 with configurable slippage tolerance and deadlines |
Features
- Real-time price quotes for token swaps with multi-hop route optimization
- Token swap execution on Uniswap V3 with configurable slippage tolerance and deadlines
- Trade recommendation generation based on liquidity, fees, and optimal paths
- Multi-chain support for Ethereum, Optimism, Polygon, Arbitrum, Celo, BNB Chain, Avalanche, and Base
Environment Variables
Required
INFURA_KEY- Infura API key for blockchain RPC accessWALLET_PRIVATE_KEY- Wallet private key with funds for executing swaps
Usage Examples
Get me a price quote for swapping 1 ETH to DAI on Ethereum
Swap 1 ETH for DAI on Ethereum with a 0.5% slippage tolerance and a 20-minute deadline
Notes
Requires Node.js 14.x or higher, npm for package management, a wallet with funds and private key, and access to blockchain RPC URLs (Infura, Alchemy) for supported networks. Supports exactIn and exactOut swap types with configurable parameters.
Discussion
Questions & comments · 0
Sign In Sign in to leave a comment.