Optional integration for premium RPC connections across 15 major chains, offering enhanced performance with lower latency and better uptime.
Supports trading and portfolio management on Binance Smart Chain (BSC), enabling users to execute trades and track assets on this network.
Core integration for portfolio tracking, transaction analysis, and trade execution on Ethereum, with added MEV protection against sandwich attacks and front-running.
Provides integration with GitHub for bug reporting, feature requests, and community support through GitHub Issues and Discussions.
Allows configuration as an MCP client, enabling GitHub Copilot to function as a DeFi trading assistant.
Enables portfolio tracking and trading execution on the Optimism network, an Ethereum L2 scaling solution.
Supports portfolio analysis, balance checking, and trade execution on the Polygon network with fast and cheap transactions.
Provides community support and real-time assistance through a dedicated Telegram group for users.
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
Quote and Swap
Memecoin Opportunity Scanner
Advanced Analysis Process:
- Discovery Phase: Uses
get_new_pools
to 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:
Risk Management Agent
Agent Actions:
- Continuously monitors portfolio values
- Calculates position changes
- Provides alerts and recommendations
- Can execute protective trades
🚀 Quick Start
Installation
Create a New Wallet (Recommended)
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
- Secure transaction signing locally
MEV Protection
- Ethereum transactions are protected from MEV attacks, sandwich attacks, and front-running
- Private mempool routing ensures your trades aren't visible to MEV bots
- Fair pricing without manipulation from malicious actors
- Automatic protection - no additional configuration required
🔧 MCP Client Setup
Kiro IDE
Step 1: Install the MCP
Add to ~/.kiro/settings/mcp.json
:
Claude Code
Add the MCP to Claude Code using the command line:
Step 1: Install the MCP
Step 2: Add to Claude Code - Replace the placeholders with your environment variables
For macOS/Linux/WSL:
For Windows (native, not WSL):
Windows Note: The
cmd /c
wrapper is required on native Windows to prevent "Connection closed" errors when using npx.
Step 3: Verify the MCP is added
Step 4: Update wallet details (if needed) If you need to update your private key or wallet address after initial setup:
Step 5: Start using the trading agent Open Claude Code and start trading. Example Prompt:
Claude Desktop
Step 1: Install the MCP
Open Claude Desktop. Click the top left menu with the three dashes. Click Developer. Then click Open App Config File. Your config file will open. Then add the following.
Cursor
Quick Setup (2 Steps)
Step 1: Install the package
Step 2: Add to Cursor (One-Click)
Click the button below to automatically configure the MCP in Cursor:
Important: The deeplink only configures Cursor - you must install the npm package first!
Manual Setup
Step 1: Install the MCP
Step 2: Add to Cursor Configuration
- Open Cursor
- Go to Settings → Extensions → MCP Servers
- Add a new server with the following configuration:
Step 3: Configure Environment Variables
Replace the placeholder values with your actual credentials:
USER_PRIVATE_KEY
: Your wallet's private keyUSER_ADDRESS
: Your wallet addressCOINGECKO_API_KEY
: Your CoinGecko API key (Get one here)ALCHEMY_API_KEY
: Your Alchemy API key (optional)
Step 4: Start Trading
Open Cursor and start using the DeFi Trading Agent:
Other MCP Clients
For other MCP clients like Github Copilot(mcp.json), Gemini Cli (settings.json), find equivalent file and use the same pattern with environment variables:
🤖 Trading Agent Capabilities
Autonomous Portfolio Management
Intelligent Market Analysis
Advanced Trade Execution
Risk Management & Security
🛠️ Trading Agent Tools
Portfolio Management
get_portfolio_tokens
- Multi-chain portfolio analysis with prices and metadataget_portfolio_balances
- Fast balance checking across all chainsget_portfolio_transactions
- Complete transaction history analysis
Market Intelligence & Analysis
get_trending_pools
- Identify hot trading opportunities with volume metricsget_new_pools
- Discover newly launched tokens and liquidity poolsget_pool_ohlcv
- Technical analysis with OHLCV candlestick dataget_pool_trades
- Analyze recent trading activity and whale movementsget_token_price
- Real-time pricing with 24h change indicatorsget_token_data
- Deep token research with metadata and social linksget_token_info
- Comprehensive token analysis including descriptionssearch_pools
- Find specific pools by token symbol or contract address
Smart Trading
get_swap_price
- Get best prices across all DEXesget_swap_quote
- Get executable quotes with transaction dataexecute_swap
- Execute trades with optimal routingget_supported_chains
- List all 17+ supported blockchains
Gasless Trading
get_gasless_price
- Get prices for gas-free tradesget_gasless_quote
- Get gasless swap quotessubmit_gasless_swap
- Execute trades without holding ETHget_gasless_status
- Monitor gasless transaction status
Utility Tools
convert_wei_to_formatted
- Convert blockchain units to human-readableconvert_formatted_to_wei
- Convert amounts to blockchain format
Plus 25+ additional tools for comprehensive DeFi trading and analysis.
🌐 Supported Networks
17+ Blockchain Networks:
- Ethereum - The original DeFi ecosystem
- Base - Coinbase's L2 with low fees
- Polygon - Fast and cheap transactions
- Arbitrum - Leading Ethereum L2
- Optimism - Optimistic rollup scaling
- BSC - Binance Smart Chain
- Avalanche - Fast. Scalable. Customizable
- Blast - Native yield for ETH and stablecoins
- Linea - ConsenSys zkEVM
- Scroll - zkRollup technology
- Mantle - Modular blockchain network
- Mode - DeFi-focused L2
- Worldchain - World ID integration
- Unichain - Uniswap's dedicated chain
- Berachain - Proof-of-liquidity consensus
- Ink - Kraken's L2 solution
- MonadTestnet - Next-gen parallel EVM
Use get_supported_chains
for the complete current list.
🔐 Security & Trust
Local Key Management
- Private keys never leave your device
- All transaction signing happens locally
- No sensitive data transmitted to servers
💡 Agent Use Cases
DeFi Portfolio Manager
- Tracks performance across all chains
- Identifies underperforming assets
- Suggests rebalancing strategies
- Executes optimization trades
Technical Analysis Expert
Advanced Technical Analysis:
- Pattern Recognition: Identifies bullish/bearish patterns in OHLCV data
- Support/Resistance: Calculates key price levels using historical data
- Volume Analysis: Analyzes trading volume for momentum confirmation
- Entry Timing: Determines optimal entry points based on technical indicators
- Risk Management: Sets stop-loss and take-profit levels automatically
- Position Sizing: Calculates optimal allocation based on volatility and risk tolerance
Example Technical Analysis:
Arbitrage Hunter
- Compares prices across networks
- Identifies profitable spreads
- Calculates gas costs and slippage
- Executes profitable arbitrage
Risk Monitor
- Continuous portfolio monitoring
- Real-time price alerts
- Automatic stop-loss execution
- Risk assessment reports
Advanced Market Analysis Agent
Comprehensive Analysis:
- Trend Detection: Identifies trending pools with unusual volume spikes
- Technical Analysis: Uses OHLCV data to analyze price patterns and momentum
- Liquidity Assessment: Evaluates pool depth and trading sustainability
- Risk Scoring: Calculates risk metrics based on volatility and liquidity
- Entry Optimization: Determines optimal entry points using technical indicators
- Position Sizing: Recommends allocation based on portfolio risk management
Example Analysis Flow:
- Discovery: "Find new tokens with >1000% volume increase in last 24h"
- Research: Pulls token metadata, social links, and trading history
- Technical Analysis: Analyzes OHLCV patterns for support/resistance levels
- Risk Assessment: Evaluates liquidity, holder distribution, and volatility
- Strategy: "Enter 2% of portfolio at $0.0001 with stop-loss at $0.00008"
- Execution: Places gasless swap with optimal slippage settings
🚀 Why Choose DeFi Trading Agent MCP?
For Traders
- AI-Powered Analysis: Advanced market intelligence with OHLCV technical analysis
- Memecoin Discovery: Automated scanning for newly launched high-potential tokens
- Smart Entry Timing: AI determines optimal entry points using multiple indicators
- Risk-Managed Trading: Automated position sizing and stop-loss calculations
- Multi-chain Efficiency: Trade across 17+ networks seamlessly
- Gas Optimization: Gasless trades save on transaction costs
- Professional Grade: Built for high-volume trading
💬 Community & Support
Join Our Community
- Telegram Group - Get help, share strategies, and connect with other traders
- GitHub Issues - Report bugs and request features
- GitHub Discussions - General questions and community chat
Need Help?
- 💬 Quick questions: Join our Telegram group for real-time support
- 🐛 Bug reports: Create an issue on GitHub
- 💡 Feature requests: Share your ideas in GitHub Discussions
- 📚 Documentation: Check our guides for CoinGecko API and Loading Crypto
Transform your AI into an autonomous crypto trading agent today.
local-only server
The server can only run on the client's local machine because it depends on local resources.
Tools
Transforms AI assistants into autonomous crypto trading agents with real-time market analysis, portfolio management, and trade execution across 17+ blockchains.
Related MCP Servers
- -securityAlicense-qualityA secure system enabling AI assistants to interact with blockchain data and prepare transactions while ensuring users maintain exclusive control over their private keys and transaction signing.Last updated -9TypeScriptMIT License
- AsecurityAlicenseAqualityProvides tools for AI assistants to interact with the Ethereum blockchain through standard JSON-RPC methods, enabling queries for account balances, gas prices, and smart contract code.Last updated -68JavaScriptMIT License
- -securityAlicense-qualityA comprehensive toolkit for building AI agents with blockchain capabilities, enabling interactions with multiple blockchain networks for tasks like wallet management, fund transfers, smart contract interactions, and cross-chain asset bridging.Last updated -3TypeScriptGPL 3.0
- AsecurityAlicenseAqualityA server that allows AI models to interact with cryptocurrency exchange APIs through the Model Context Protocol, providing access to over 100 exchanges and their trading capabilities.Last updated -2026755TypeScriptMIT License