uniswap-trader-mcp
ユニスワップトレーダーMCP
複数のブロックチェーンにわたる Uniswap DEX でのトークン交換を自動化する AI エージェント用の MCP サーバー。
特徴
価格見積もり: マルチホップ ルート最適化によるトークン スワップのリアルタイムの価格見積もりを取得します。
スワップ実行: 設定可能なスリッページ許容値と期限を使用して、Uniswap V3 でスワップを実行します。
スワップ提案: 流動性、手数料、最適なパスに基づいて取引の提案を生成します。
マルチチェーンサポート: Ethereum、Optimism、Polygon、Arbitrum、Celo、BNB Chain、Avalanche、Base と互換性があります。
Related MCP server: pumpswap-mcp
前提条件
Node.js : バージョン 14.x 以上。
npm : パッケージ管理用。
ウォレット: スワップを実行するための秘密鍵を備えた資金のあるウォレット。
RPC エンドポイント: サポートされているチェーンのブロックチェーン RPC URL (Infura、Alchemy など) へのアクセス。
インストール
リポジトリのクローンを作成します:
git clone https://github.com/kukapay/uniswap-trader-mcp.git cd uniswap-trader-mcp依存関係をインストール:
npm install
構成
{
"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"
}
}
}
}使用法
サポートされているチェーン
以下のchainConfigs.jsチェーンがサポートされています。chainConfigs.js で各チェーンが有効な RPC URL、WETH アドレス、SwapRouter アドレスで設定されていることを確認してください。
チェーンID | 名前 | 注記 |
1 | イーサリアム | Uniswap取引で広く使用されているメインネット |
10 | 楽観 | レイヤー2、Optimism RPCが必要 |
137 | ポリゴン | 高速かつ低コスト、MATICをネイティブに使用 |
42161 | 仲裁 | レイヤー2、アービトラムワンネットワーク |
42220 | セロ | モバイルファーストブロックチェーン、CELOを使用 |
56 | BNBチェーン | Binance Smart ChainはBNBを使用しています |
43114 | 雪崩 | 高スループット、AVAXを使用 |
8453 | ベース | コインベースのレイヤー2はオプティミズムに基づいて構築されています |
ツールとプロンプト
1. getPrice
Uniswap スワップの価格見積を取得します。
スキーマ:
chainId: 数値(デフォルト: 1)tokenIn: 文字列(例:"NATIVE"またはトークンアドレス)tokenOut: 文字列(例:"NATIVE"またはトークンアドレス)amountIn: 文字列(オプション、"exactIn"の場合は必須)amountOut: 文字列(オプション、"exactOut"の場合は必須)tradeType:"exactIn"または"exactOut"(デフォルト:"exactIn")
プロンプトの例:
Get me a price quote for swapping 1 ETH to DAI on Ethereum.出力:
{
"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
Uniswap でスワップを実行します。
スキーマ:
chainId: 数値(デフォルト: 1)tokenIn: 文字列tokenOut: 文字列amountIn: 文字列(オプション、"exactIn"の場合は必須)amountOut: 文字列(オプション、"exactOut"の場合は必須)tradeType:"exactIn"または"exactOut"(デフォルト:"exactIn")slippageTolerance: 数値(デフォルト: 0.5、パーセント)deadline: 数値(デフォルト: 20、分単位)
プロンプトの例:
Swap 1 ETH for DAI on Ethereum with a 0.5% slippage tolerance and a 20-minute deadline.出力:
{
"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"
}ライセンス
MITライセンス。詳細はライセンスを参照してください。
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