Defi Trading MCP Server
Execute crypto swaps and manage portfolios across 17 blockchains via AI agents.
Data last scanned today · Reviewed today
Overview
The Defi Trading MCP Server enables AI assistants to function as autonomous crypto trading agents. It provides tools for real-time market analysis, identifying new memecoin opportunities, and executing trades across more than 17 different blockchains. Users can request automated portfolio monitoring, price quotes, and technical analysis of tokens based on liquidity and momentum data. To operate, the server requires a private key for transaction signing and a CoinGecko API key for market data. It supports optional integration with Alchemy for premium RPC performance and automatic fallback to public providers. The server includes utility functions to generate new local wallets for secure trading operations.
Our verdict
This server carries a high risk profile with a security score of 27/100. The project lacks a defined license, meaning legal terms for use are unclear, and it is maintained by the community rather than an official vendor. Given that the server handles private keys and transaction execution, users should exercise extreme caution, preferably using a dedicated wallet with limited funds rather than a primary holding address.
- Supports trading operations across 17+ different blockchain networks
- Small dependency footprint with only 4 direct packages
- Provides automated memecoin scanner and technical analysis features
- No license detected, creating legal ambiguity for users
- Community-maintained project lacking an official vendor audit
- High risk score reflects lack of external editorial verification
Setup
{
"mcpServers": {
"defi-trading-mcp": {
"args": [
"-y",
"defi-trading-mcp"
],
"command": "npx"
}
}
}Paste into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows), then restart Claude Desktop. Some servers require API keys or tokens as environment variables — check the project's README and add an "env" object if needed.
- No read-only mode — running this grants full read/write access.
- No built-in authentication — anyone with access to this config can invoke every tool it exposes.
Tools
| Tool | Description | Risk |
|---|---|---|
| get_portfolio_tokens | Multi-chain portfolio analysis with prices and metadata | low |
| get_portfolio_balances | Fast balance checking across all chains | low |
| get_portfolio_transactions | Complete transaction history analysis | low |
| get_trending_pools | Identify hot trading opportunities with volume metrics | low |
| get_new_pools | Discover newly launched tokens and liquidity pools | low |
| get_pool_ohlcv | Technical analysis with OHLCV candlestick data | low |
| get_pool_trades | Analyze recent trading activity and whale movements | low |
| get_token_price | Real-time pricing with 24h change indicators | low |
| get_token_data | Deep token research with metadata and social links | low |
| get_token_info | Comprehensive token analysis including descriptions | low |
Compatibility
| Client | Local | Docker | Remote | Read-only |
|---|---|---|---|---|
| Claude Desktop | ||||
| Cursor | ||||
| VS Code | ||||
| Windsurf | ||||
| ChatGPT |
Frequently asked questions
›What information is required to configure the server?
You must provide your USER_PRIVATE_KEY, USER_ADDRESS, and a COINGECKO_API_KEY. An ALCHEMY_API_KEY is optional but recommended for improved performance and access to premium RPCs.
›Does the server store my private keys externally?
No, your private keys remain on your local device. The server uses them to sign transactions locally and no sensitive data is transmitted to external servers.
›How can I generate a secure wallet for trading?
You can use the command 'npx defi-trading-mcp@latest --create-wallet' to generate a new wallet address and private key specifically for use with the agent.
›Are there specific protections against MEV attacks?
Yes, Ethereum transactions are automatically protected from MEV and front-running via private mempool routing. No additional configuration is required to enable this.
›What is the benefit of adding an Alchemy API key?
Providing an Alchemy API key enables premium RPC access for 15 major chains, resulting in lower latency and better uptime compared to using default public RPCs.
Badge
Maintain this server? Add the live badge to your README.