uniswap-trader-mcp

Integrations

  • Enables token swaps on Uniswap DEX on the BNB Chain (Binance Smart Chain), supporting BNB as the native token.

  • Enables token swaps on Uniswap DEX on the Ethereum mainnet, with price quotes, swap execution, and trading suggestions.

  • Supports token swaps on Uniswap DEX on the Optimism Layer 2 network, with real-time price quotes and optimized routing.

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.

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 claude

Manuelle Installation

  1. Klonen Sie das Repository :
    git clone https://github.com/kukapay/uniswap-trader-mcp.git cd uniswap-trader-mcp
  2. Abhä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-IDNameHinweise
1EthereumMainnet, häufig für Uniswap-Trades verwendet
10OptimismusSchicht 2, erfordert Optimism RPC
137PolygonSchnell und kostengünstig, verwendet MATIC als native
42161ArbitrumSchicht 2, Arbitrum One-Netzwerk
42220CeloMobile-First-Blockchain verwendet CELO
56BNB-KetteBinance Smart Chain verwendet BNB
43114LawineHoher Durchsatz, verwendet AVAX
8453BaseCoinbases 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 : Zeichenfolge
  • tokenOut : Zeichenfolge
  • amountIn : 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 .

-
security - not tested
A
license - permissive license
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Ein MCP-Server für KI-Agenten zur Automatisierung von Token-Swaps auf Uniswap DEX über mehrere Blockchains hinweg.

  1. Merkmale
    1. Voraussetzungen
      1. Installation
        1. Installation über Smithery
        2. Manuelle Installation
      2. Konfiguration
        1. Verwendung
          1. Unterstützte Ketten
          2. Tools und Eingabeaufforderungen
        2. Lizenz

          Related MCP Servers

          • A
            security
            A
            license
            A
            quality
            An MCP server implementation that enables access to DexScreener API data, providing real-time information on DEX pairs, token profiles, and market statistics across multiple blockchains.
            Last updated -
            7
            6
            JavaScript
            The Unlicense
          • -
            security
            A
            license
            -
            quality
            An MCP server providing tools for AI agents to mint ERC-20 tokens across multiple blockchains.
            Last updated -
            6
            9
            JavaScript
            MIT License
            • Linux
            • Apple
          • -
            security
            A
            license
            -
            quality
            An MCP server for executing token swaps on the Solana blockchain using Jupiter's Ultra API, enabling users to fetch optimal swap orders and execute transactions with slippage control.
            Last updated -
            JavaScript
            MIT License
          • A
            security
            A
            license
            A
            quality
            An MCP server providing unified access to blockchain operations, bridging, swapping, and crypto trading strategies for AI agents.
            Last updated -
            20
            193
            Python
            GPL 3.0
            • Apple
            • Linux

          View all related MCP servers

          ID: wjbh1v7a2r