KU

kukapay/uniswap-trader-mcp

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

40 stars 15 forks 품질 66 트렌드 0MIT

kukapay/uniswap-trader-mcp는 MCP 서버 후보로 수입 https://github.com/kukapay/uniswap-trader-mcp.]

개요

kukapay/uniswap-trader-mcp는 MCP 서버 후보로 수입 https://github.com/kukapay/uniswap-trader-mcp.]

개요(AI 번역)

AI Agent를 위한 MCP 서버는 여러 블록체인을 통해 Uniswap DEX에서 토큰 스왑을 자동화합니다.

특징

-Price Quotes: 토큰 스왑에 대한 실시간 가격 견적을 멀티 홉 루트 최적화.

  • Swap Execution: configurable Slippage tolerance 및 마감 기한을 가진 Uniswap V3에 대한 교환을 실행합니다.
  • Swap 제안: 유동성, 수수료 및 최적의 경로를 기반으로 거래 제안을 생성하십시오.
  • ** 멀티 체인 지원 ** : Ethereum, Optimism, Polygon, Arbitrum, Celo, BNB Chain, Avalanche 및 Base와 호환됩니다.

필수품

  • Node.js: 버전 14.x 이상.
  • npm: 패키지 관리.
  • Wallet: 스왑 실행을 위한 개인 키와 함께 자금 지갑.
  • RPC Endpoints: 지원되는 사슬을 위한 블록체인 RPC URL (예: Infura, Alchemy)에 접근하십시오.

설치

Smithery를 통해 설치

Smithery를 통해 Claude Desktop용 Uniswap Trader MCP를 자동으로 설치하십시오.

수동 설치

  1. ** 저장소를 복제 **:

  2. **모든 종점 **:

구성

사용법

지원 체인

다음 블록체인이 지원됩니다. 각 체인이 `chainConfigs로 구성됩니다.

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

README

원문 README의 일부입니다. 원문 보기.

Uniswap Trader MCP

An MCP server for AI agents to automate token swaps on Uniswap DEX across multiple blockchains.

Features

  • 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.

Prerequisites

  • 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.

Installation

Installing via Smithery

To install Uniswap Trader MCP for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @kukapay/uniswap-trader-mcp --client claude

Manual Installation

  1. Clone the Repository:

    git clone https://github.com/kukapay/uniswap-trader-mcp.git
    cd uniswap-trader-mcp
    
  2. Install Dependencies:

    npm install
    

Configuration

{
  "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"
      }
    }
  }
}

Usage

Supported Chains

The following blockchains are supported. Ensure each chain is configured in chainConfigs.js with a valid RPC URL, WETH address, and SwapRouter address.

Chain ID Name Notes
1 Ethereum Mainnet, widely used for Uniswap trades
10 Optimism Layer 2, requires Optimism RPC
137 Polygon Fast and low-cost, uses MATIC as native
42161 Arbitrum Layer 2, Arbitrum One network
42220 Celo Mobile-first blockchain, uses CELO
56 BNB Chain Binance Smart Chain, uses BNB
43114 Avalanche High-throughput, uses AVAX
8453 Base Coinbase’s Layer 2, built on Optimism

Tools and Prompts

1. getPrice

Fetches a price quote for a Uniswap swap.

Schema:

  • 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")
GitHub에서 전체 README 보기

설치

npx -y @smithery/cli install @kukapay/uniswap-trader-mcp --client claude
MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "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" } } } }