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: DEX Pools 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 .
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
AlicenseCqualityCmaintenanceAn MCP server providing unified access to blockchain operations, bridging, swapping, and crypto trading strategies for AI agents.37178GPL 3.0- AlicenseAqualityDmaintenanceAn MCP server that provides AI agents with real-time access to DEX liquidity pool data, enabling smarter trading, analytics, and automated strategies.101MIT

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.185MIT- AlicenseNot gradedqualityDmaintenanceAn MCP server for AI agents to automate token swaps on Uniswap DEX across multiple blockchains. It provides real-time price quotes, swap execution, and trade suggestions.131MIT
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.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/kukapay/uniswap-trader-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server