Uniswap Trader MCP
An MCP server for AI agents to automate token swaps on Uniswap DEX across multiple blockchains.
Overview
Uniswap Trader MCP is an MCP server designed for AI agents to automate token swaps on the Uniswap decentralized exchange (DEX) across multiple blockchains.
To use Uniswap Trader MCP, clone the repository from GitHub, install the necessary dependencies, and configure your wallet and RPC endpoints. You can then execute token swaps using the provided tools and prompts.
- 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 various blockchains including Ethereum, Optimism, Polygon, and more.
- Automating token swaps for trading strategies.
- Fetching real-time price quotes for market analysis.
- Executing trades across multiple blockchains seamlessly.
Add to your AI client
Use these steps to connect Uniswap Trader MCP in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"uniswap-trader-mcp-kukapay": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-uniswap-trader-mcp-kukapay"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"uniswap-trader-mcp-kukapay": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-uniswap-trader-mcp-kukapay"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"uniswap-trader-mcp-kukapay": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-uniswap-trader-mcp-kukapay"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"uniswap-trader-mcp-kukapay": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-uniswap-trader-mcp-kukapay"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"uniswap-trader-mcp-kukapay": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-uniswap-trader-mcp-kukapay"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"uniswap-trader-mcp-kukapay": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-uniswap-trader-mcp-kukapay"
]
}
}
}FAQ
Can I use Uniswap Trader MCP on any blockchain?
Yes! It supports multiple blockchains including Ethereum, BNB Chain, and Avalanche.
Do I need a funded wallet to use this project?
Yes, a funded wallet with a private key is required to execute swaps.
Is there any cost associated with using Uniswap Trader MCP?
The project is open-source and free to use, but transaction fees on the blockchain apply.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":3714,"uuid":"0e421696-17fc-4b69-bf3a-2607ac38f784","name":"uniswap-trader-mcp","title":"Uniswap Trader MCP","description":"An MCP server for AI agents to automate token swaps on Uniswap DEX across multiple blockchains.","avatar_url":"https://avatars.githubusercontent.com/u/201164822?v=4","created_at":"2025-03-21T06:41:01.145Z","updated_at":"2025-03-21T07:19:30.488Z","status":"created","author_name":"kukapay","author_avatar_url":"https://avatars.githubusercontent.com/u/201164822?v=4","tags":"[]","category":"research-and-data","is_featured":false,"sort":1,"url":"https://github.com/kukapay/uniswap-trader-mcp","target":"_self","content":"$29","summary":"$2a","img_url":"https://camo.githubusercontent.com/6a16616b514a4e8727b669ef8680cd1d5faa1c1d357fa081dd5138c74b56bd76/68747470733a2f2f736d6974686572792e61692f62616467652f406b756b617061792f756e69737761702d7472616465722d6d6370","type":null,"metadata":"{\"star\":\"16\",\"license\":\"MIT license\",\"language\":\"JavaScript\",\"is_official\":false,\"latest_commit_time\":\"2025-05-08 01:23:27\"}","user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]