uniswap-trader-mcp
ユニスワップトレーダーMCP
複数のブロックチェーンにわたる Uniswap DEX でのトークン交換を自動化する AI エージェント用の MCP サーバー。
特徴
価格見積もり: マルチホップ ルート最適化によるトークン スワップのリアルタイムの価格見積もりを取得します。
スワップ実行: 設定可能なスリッページ許容値と期限を使用して、Uniswap V3 でスワップを実行します。
スワップ提案: 流動性、手数料、最適なパスに基づいて取引の提案を生成します。
マルチチェーンサポート: Ethereum、Optimism、Polygon、Arbitrum、Celo、BNB Chain、Avalanche、Base と互換性があります。
Related MCP server: DEX Pools 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ライセンス。詳細はライセンスを参照してください。
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