uniswap-trader-mcp
Uniswap Trader MCP
Ein MCP-Server für KI-Agenten zur Automatisierung von Token-Swaps auf Uniswap DEX über mehrere Blockchains hinweg.
Merkmale
Preisangebote : Erhalten Sie Preisangebote in Echtzeit für Token-Swaps mit Multi-Hop-Routenoptimierung.
Swap-Ausführung : Führen Sie Swaps auf Uniswap V3 mit konfigurierbarer Slippage-Toleranz und Fristen aus.
Swap-Vorschläge : Erstellen Sie Handelsvorschläge basierend auf Liquidität, Gebühren und optimalen Pfaden.
Multi-Chain-Unterstützung : Kompatibel mit Ethereum, Optimism, Polygon, Arbitrum, Celo, BNB Chain, Avalanche und Base.
Related MCP server: pumpswap-mcp
Voraussetzungen
Node.js : Version 14.x oder höher.
npm : Für die Paketverwaltung.
Wallet : Ein finanziertes Wallet mit einem privaten Schlüssel zum Ausführen von Swaps.
RPC-Endpunkte : Zugriff auf Blockchain-RPC-URLs (z. B. Infura, Alchemy) für unterstützte Ketten.
Installation
Installation über Smithery
So installieren Sie Uniswap Trader MCP für Claude Desktop automatisch über Smithery :
npx -y @smithery/cli install @kukapay/uniswap-trader-mcp --client claudeManuelle Installation
Klonen Sie das Repository :
git clone https://github.com/kukapay/uniswap-trader-mcp.git cd uniswap-trader-mcpAbhängigkeiten installieren :
npm install
Konfiguration
{
"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"
}
}
}
}Verwendung
Unterstützte Ketten
Die folgenden Blockchains werden unterstützt. Stellen Sie sicher, dass jede Kette in chainConfigs.js mit einer gültigen RPC-URL, WETH-Adresse und SwapRouter-Adresse konfiguriert ist.
Ketten-ID | Name | Hinweise |
1 | Ethereum | Mainnet, häufig für Uniswap-Trades verwendet |
10 | Optimismus | Schicht 2, erfordert Optimism RPC |
137 | Polygon | Schnell und kostengünstig, verwendet MATIC als native |
42161 | Arbitrum | Schicht 2, Arbitrum One-Netzwerk |
42220 | Celo | Mobile-First-Blockchain verwendet CELO |
56 | BNB-Kette | Binance Smart Chain verwendet BNB |
43114 | Lawine | Hoher Durchsatz, verwendet AVAX |
8453 | Base | Coinbases Layer 2, basierend auf Optimismus |
Tools und Eingabeaufforderungen
1. getPrice
Ruft ein Preisangebot für einen Uniswap-Swap ab.
Schema :
chainId: Zahl (Standard: 1)tokenIn: Zeichenfolge (z. B."NATIVE"oder Token-Adresse)tokenOut: Zeichenfolge (z. B."NATIVE"oder Token-Adresse)amountIn: String (optional, erforderlich für"exactIn")amountOut: String (optional, erforderlich für"exactOut")tradeType:"exactIn"oder"exactOut"(Standard:"exactIn")
Beispiel-Eingabeaufforderung:
Get me a price quote for swapping 1 ETH to DAI on Ethereum.Ausgabe:
{
"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"
}2. executeSwap
Führt einen Swap auf Uniswap aus.
Schema :
chainId: Zahl (Standard: 1)tokenIn: ZeichenfolgetokenOut: ZeichenfolgeamountIn: String (optional, erforderlich für"exactIn")amountOut: String (optional, erforderlich für"exactOut")tradeType:"exactIn"oder"exactOut"(Standard:"exactIn")slippageTolerance: Zahl (Standard: 0,5, in Prozent)deadline: Zahl (Standard: 20, in Minuten)
Beispiel-Eingabeaufforderung:
Swap 1 ETH for DAI on Ethereum with a 0.5% slippage tolerance and a 20-minute deadline.Ausgabe:
{
"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"
}Lizenz
MIT-Lizenz. Weitere Informationen finden Sie unter LIZENZ .
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
HiveCapital MCP Server — autonomous investment layer for AI agents
Multi-aggregator swap router for AI agents on Base. 10 bps fee. MCP-native, non-custodial.
MCP server connecting AI agents to non-custodial staking data across 130+ networks.
MCP marketplace: AI agents buy services from other agents per call in USDC, plus a bank cash-out
Related MCP Servers
AlicenseCqualityDmaintenanceAn MCP server providing unified access to blockchain operations, bridging, swapping, and crypto trading strategies for AI agents.37178GPL 3.0- AlicenseNot gradedqualityDmaintenanceAn MCP server that enables AI agents to interact with PumpSwap for real-time token swaps and automated on-chain trading.7MIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server designed for AI agents to perform optimal token swaps on the Sui blockchain.6MIT

paean-dex-mcpofficial
AlicenseNot gradedqualityDmaintenanceDEX trading MCP server enabling autonomous token swaps on Base (Uniswap v3) and Solana (Jupiter) for AI agents, with privacy-first design and read-only mode.5MIT