Uniswap Trader MCP logo

Uniswap Trader MCP

by kukapay

Uniswap Trader MCP is an MCP server designed for AI agents to automate token swaps on Uniswap DEX across multiple blockchains. It enables real-time price quotes and swap execution with configurable settings.

View on GitHub

Last updated: N/A

What is Uniswap Trader MCP?

Uniswap Trader MCP is a server that allows AI agents to automate token swaps on the Uniswap decentralized exchange across multiple blockchains. It provides functionalities for price discovery, swap execution, and trade suggestion generation.

How to use Uniswap Trader MCP?

To use Uniswap Trader MCP, you need to clone the repository, install dependencies using npm, configure the server with your Infura key and wallet private key, and then use the provided tools and prompts (getPrice, executeSwap) to interact with the Uniswap protocol on supported chains.

Key features of Uniswap Trader MCP

  • Price Quotes with multi-hop route optimization

  • Swap Execution with configurable slippage tolerance and deadlines

  • Swap Suggestions based on liquidity, fees, and optimal paths

  • Multi-Chain Support: Ethereum, Optimism, Polygon, Arbitrum, Celo, BNB Chain, Avalanche, and Base

Use cases of Uniswap Trader MCP

  • Automated trading strategies on Uniswap

  • AI-powered portfolio rebalancing

  • Programmatic execution of large token swaps

  • Integration with AI agents for autonomous trading

FAQ from Uniswap Trader MCP

What blockchains are supported?

Ethereum, Optimism, Polygon, Arbitrum, Celo, BNB Chain, Avalanche, and Base are supported.

What is the default slippage tolerance?

The default slippage tolerance is 0.5%.

What is the default deadline for swaps?

The default deadline for swaps is 20 minutes.

What is the purpose of the getPrice tool?

The getPrice tool fetches a price quote for a Uniswap swap based on the provided parameters.

What is the purpose of the executeSwap tool?

The executeSwap tool executes a swap on Uniswap with the specified parameters, including slippage tolerance and deadline.