ED 

edkdev/defi-trading-mcp 是一个从 https://github.com/edkdev/defi-trading-mcp. 导入的 MCP 服务器候选服务器。
概览
edkdev/defi-trading-mcp 是一个从 https://github.com/edkdev/defi-trading-mcp. 导入的 MCP 服务器候选服务器。
概述(AI 翻译)
将您的AI助手转变为自主加密交易代理,实现实时市场分析、投资组合管理和跨17+区块链的无缝交易执行。
🎯 起始提示示例
简单引言
引用与交换
Memecoin 机会扫描器
高级分析流程:
- 发现阶段:使用
get_new_pools查找过去24小时内发布的代币 - 成交量过滤:识别流动性>$100K且交易活跃度高的池
- 技术分析:提取OHLCV数据分析价格形态和动能
- 风险评估:评估流动性深度、持有人集中度及波动性
- 入场策略:确定最佳入场价格、仓位规模及风险管理
- 执行:通过计算出的滑点和止损水平进行无气互换
示例AI分析:
风险管理代理人
特工行动:
- 持续监控投资组合价值
- 计算位置变化
- 提供警报和推荐
- 能够执行保护性交易
🚀 快速启动
安装
创建新钱包(推荐)
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
DeFi Trading Agent MCP Server
Transform your AI assistant into an autonomous crypto trading agent with real-time market analysis, portfolio management, and seamless trade execution across 17+ blockchains.
🎯 Starting Prompt Examples
Simple Quote
Get me a quote for 0.1 eth to usdc on Base chain.
Quote and Swap
Get me a quote for 0.1 eth on ethereum chain and execute the swap.
Memecoin Opportunity Scanner
"Scan for newly launched memecoins on Base with >$100K liquidity, pick one or two tokens and analyze the best entry opportunities"
Advanced Analysis Process:
- Discovery Phase: Uses
get_new_poolsto find tokens launched in last 24h - Volume Filtering: Identifies pools with >$100K liquidity and high trading activity
- Technical Analysis: Pulls OHLCV data to analyze price patterns and momentum
- Risk Assessment: Evaluates liquidity depth, holder concentration, and volatility
- Entry Strategy: Determines optimal entry price, position size, and risk management
- Execution: Places gasless swap with calculated slippage and stop-loss levels
Example AI Analysis:
"Found 3 promising new tokens:
🚀 $ROCKET (0x123...): 2M volume, bullish OHLCV pattern, 85% liquidity locked
📈 Entry: $0.0001 (current support level)
💰 Size: 2% portfolio allocation
🛡️ Stop: $0.000085 (-15%)
🎯 Target: $0.00015 (+50%)
Executing gasless swap now..."
Risk Management Agent
"Monitor my portfolio and alert me if any position drops more than 15%"
Agent Actions:
- Continuously monitors portfolio values
- Calculates position changes
- Provides alerts and recommendations
- Can execute protective trades
🚀 Quick Start
Installation
npm install -g defi-trading-mcp
Create a New Wallet (Recommended)
npx defi-trading-mcp@latest --create-wallet
This generates a new wallet with private key and address for secure trading.
💰 Need crypto? See our guide: How to Load Crypto into Your Wallet
⚙️ Configuration
Required Keys
USER_PRIVATE_KEY: Your private key (for signing transactions locally, stays local, never transmitted)USER_ADDRESS: Your Ethereum wallet addressCOINGECKO_API_KEY: CoinGecko API key for market data (How to get your CoinGecko API key)
Optional Configuration
ALCHEMY_API_KEY: Add an Alchemy API key to use your own RPCs, otherwise public rpcs will be used.
🔧 Premium RPC Integration
Your ALCHEMY_API_KEY automatically enables premium RPCs for:
- 15 Major Chains: Base, Polygon, Arbitrum, Optimism, BSC, Avalanche, Worldchain, Berachain, Blast, Linea, Scroll, Mantle, Ink, MonadTestnet
- Enhanced Performance: Lower latency, better uptime
- Automatic Fallback: Public RPCs for other chains
🔒 Security
- Private keys remain on your device
- No sensitive data transmitted to external servers
安装
npx defi-trading-mcp@latest配置
{
"mcpServers": {
"defi-trading": {
"command": "npx",
"args": ["defi-trading-mcp@latest"],
"env": {
"USER_PRIVATE_KEY": "your_private_key_here",
"USER_ADDRESS": "0xYourWalletAddress",
"COINGECKO_API_KEY": "CG-your_coingecko_api_key",
"ALCHEMY_API_KEY": "your_alchemy_api_key"
}
}
}
}