Uniswap Trader
About
Enables AI-driven cryptocurrency trading on Uniswap across multiple blockchains, providing tools for price quotes, optimal routing, and transaction management for automated trading strategies.
Details
- Author
- kukapay
- Repository
- kukapay/uniswap-trader-mcp
- GitHub stars
- 8
- Downloads
- 262
- License
- MIT License
- Categories
- Other, Design, Developer Tools, AI, Frontend, Automation
Jump to
- 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.
Setting up with Highlight
This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:
- Download and install Highlight from highlightai.com/download
- Navigate to the plugins tab and select "Add Custom Plugin"
-
Configure the plugin with the settings below
Plugin Name
Uniswap TraderCommand (node, npx, python, etc.)nodeArguments-
Argument 1
path/to/uniswap-trader-mcp/server/index.js
Environment-
INFURA_KEY
your infura key -
WALLET_PRIVATE_KEY
your private key
Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.
-
Argument 1
- Enable "Start Automatically" if you want the plugin to start when Highlight launches
From the repository
To install Uniswap Trader MCP for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @kukapay/uniswap-trader-mcp --client claude
1. Clone the Repository:
git clone https://github.com/kukapay/uniswap-trader-mcp.git
cd uniswap-trader-mcp
2. Install Dependencies:
npm install
getPrice
Fetches a price quote for a Uniswap swap. Parameters: chainId (Number, default: 1), tokenIn (String), tokenOut (String), amountIn (String, optional, required for 'exactIn'), amountOut (String, optional, required for 'exactOut'), tradeType (String: 'exactIn' or 'exactOut', default: 'exactIn')
executeSwap
Executes a swap on Uniswap. Parameters: chainId (Number, default: 1), tokenIn (String), tokenOut (String), amountIn (String, optional, required for 'exactIn'), amountOut (String, optional, required for 'exactOut'), tradeType (String: 'exactIn' or 'exactOut', default: 'exactIn'), slippageTolerance (Number, default: 0.5, in percentage), deadline (Number, default: 20, in minutes)
Claude Desktop / Cursor
Paste into your MCP client config file to install this server.
{
"mcpServers": {
"uniswap trader": {
"env": {
"INFURA_KEY": "your infura key",
"WALLET_PRIVATE_KEY": "your private key"
},
"args": [
"path/to/uniswap-trader-mcp/server/index.js"
],
"command": "node"
}
}
}
Linux
{
"env": {
"INFURA_KEY": "your infura key",
"WALLET_PRIVATE_KEY": "your private key"
},
"args": [
"path/to/uniswap-trader-mcp/server/index.js"
],
"command": "node"
}
Macos
{
"env": {
"INFURA_KEY": "your infura key",
"WALLET_PRIVATE_KEY": "your private key"
},
"args": [
"path/to/uniswap-trader-mcp/server/index.js"
],
"command": "node"
}
Windows
{
"env": {
"INFURA_KEY": "your infura key",
"WALLET_PRIVATE_KEY": "your private key"
},
"args": [
"/c",
"node",
"path/to/uniswap-trader-mcp/server/index.js"
],
"command": "cmd"
}
An MCP server for AI agents to automate token swaps on Uniswap DEX across multiple blockchains.
- 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.
- Node.js: Version 14.x or higher.
- npm: For package management.
- Wallet: A funded wallet with a private key for executing swaps.
- RPC Endpoints: Access to blockchain RPC URLs (e.g., Infura, Alchemy) for supported chains.
To install Uniswap Trader MCP for Claude Desktop automatically viaSmithery:
npx -y @smithery/cli install @kukapay/uniswap-trader-mcp --client claude
git clone https://github.com/kukapay/uniswap-trader-mcp.git cd uniswap-trader-mcp
{ "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" } } } }
The following blockchains are supported. Ensure each chain is configured inchainConfigs.jswith a valid RPC URL, WETH address, and SwapRouter address.
Fetches a price quote for a Uniswap swap.
- chainId: Number (default: 1)
- tokenIn: String (e.g.,"NATIVE"or token address)
- tokenOut: String (e.g.,"NATIVE"or token address)
- amountIn: String (optional, required for"exactIn")
- amountOut: String (optional, required for"exactOut")
- tradeType:"exactIn"or"exactOut"(default:"exactIn")
Get me a price quote for swapping 1 ETH to DAI on Ethereum.
{ "chainId": 1, "tradeType": "exactIn", "price": "3000.50", "inputAmount": "1.000000", "outputAmount": "3000.50", "minimumReceived": "2985.50", "maximumInput": "1.005000", "route": [ { "tokenIn": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2", "tokenOut": "0x6B175474E89094C44Da98b954EedeAC495271d0F", "fee": 3000 } ], "estimatedGas": "150000" }
- chainId: Number (default: 1)
- tokenIn: String
- tokenOut: String
- amountIn: String (optional, required for"exactIn")
- amountOut: String (optional, required for"exactOut")
- tradeType:"exactIn"or"exactOut"(default:"exactIn")
- slippageTolerance: Number (default: 0.5, in percentage)
- deadline: Number (default: 20, in minutes)
Swap 1 ETH for DAI on Ethereum with a 0.5% slippage tolerance and a 20-minute deadline.
{ "chainId": 1, "txHash": "0x1234...abcd", "tradeType": "exactIn", "amountIn": "1.000000", "outputAmount": "2990.75", "minimumReceived": "2985.50", "maximumInput": "1.005000", "fromToken": "NATIVE", "toToken": "0x6B175474E89094C44Da98b954EedeAC495271d0F", "route": [ { "tokenIn": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2", "tokenOut": "0x6B175474E89094C44Da98b954EedeAC495271d0F", "fee": 3000 } ], "gasUsed": "145000" }
On-chain automated trading strategies (DEX) for AI agents. Create limit orders, range orders, recurring buy-low-sell-high strategies, and concentrated liquidity positions across Ethereum, Sei, Celo, TAC, and COTI. Unlike traditional AMMs and liquidity pools, Carbon lets you set asymmetric price ranges - your buy and sell orders are independent, not mirrored. Backtest any strategy against historical prices before going on-chain, explore market liquidity, find discount entry points, and swap tokens against Carbon DeFi's maker liquidity. 25 tools. Returns unsigned transactions — agents never hold funds or private keys. Zero gas on fills.
Trade on prediction markets from Claude Code. Browse markets, check odds, build and execute trades on-chain.
OTC crypto trading with HTLC atomic settlement on Ethereum and Bitcoin — create trades, lock assets, and settle trustlessly via AI agents
MCP server for Uniswap — swap routing, pool data, and liquidity queries across all supported chains.
Interact with the Solana blockchain using the Solana Agent Kit.
An MCP server for the Tinyman protocol on the Algorand blockchain, offering tools for swaps, liquidity provision, and pool management.
Blockchain data across 100+ chains: token prices, NFTs, transfers, simulation, traces, Solana DAS
Perform bulk BNB and BEP20 token transfers on the BNB Smart Chain (BSC).
MCP server for local transaction signing across EVM, UTXO, Tron, and XRP blockchains — no API calls required
Pool data, swap rates, and liquidity info on Curve Finance.
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.





