Enables DeFi operations on Ethereum including portfolio tracking, yield farming, DEX trading through Uniswap and SushiSwap, and lending protocol interactions with Aave and Compound
Provides multi-chain DeFi capabilities on Polygon network including portfolio management, QuickSwap DEX operations, and cross-chain yield optimization strategies
Facilitates DeFi operations on Solana blockchain including portfolio tracking, trading through Raydium and Orca DEXs, and yield farming with Solend lending protocol
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@ONEDeFi MCP Servercheck my portfolio health on Ethereum and suggest improvements"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
ONEDeFi - AI-Powered Multi-Chain DeFi MCP Server
π Project Information
Primary Contact: [Your Name] - @YourTelegramHandle
Team: Solo
Project Title: ONEDeFi - AI-Powered Multi-Chain DeFi MCP Server
π‘ One-Sentence Elevator Pitch
ONEDeFi is an AI-powered Model Context Protocol (MCP) server that enables intelligent DeFi operations across Ethereum, Polygon, and Solana with automated portfolio optimization, risk assessment, and yield farming strategies.
π Detailed Project Description
ONEDeFi revolutionizes DeFi interaction by combining blockchain technology with advanced AI capabilities. The platform serves as a comprehensive MCP server that allows AI agents to perform sophisticated DeFi operations including:
π― Core Features
Multi-Chain Portfolio Management: Real-time tracking across Ethereum, Polygon, and Solana
AI Portfolio Doctor: Health diagnostics with personalized treatment plans
Strategy Sommelier: Wine-themed AI investment strategies based on risk profiles
Smart Chat Assistant: Intelligent DeFi guidance and market insights
Automated Yield Optimization: AI-driven recommendations for maximizing returns
Risk Assessment: Comprehensive portfolio analysis and risk management
ποΈ Technical Architecture
Backend: Python Flask with SQLite database
Blockchain Integration: Web3.py for Ethereum/Polygon, Solana SDK for Solana
AI Integration: Comput3 AI API with LLaMA models
Protocol Compliance: Model Context Protocol (MCP) JSON-RPC 2.0
Frontend: Bootstrap 5 responsive design
Deployment: Gunicorn on Replit infrastructure
π§ DeFi Protocols Supported
DEX Operations: Uniswap V2/V3, SushiSwap, QuickSwap, Raydium, Orca
Lending: Aave V3, Compound V3, Solend
Yield Farming: Liquidity provision and reward farming
Staking: Liquid staking through Lido
π οΈ Installation Steps
Clone the repository:
git clone [your-repo-url] cd onedefiInstall dependencies (handled automatically by Replit):
uv syncSet up environment variables (see Environment Variables section)
Run the application:
python main.py
The application will start on http://0.0.0.0:5000 and be accessible via Replit's web interface.
π Environment Variables
Create a .env file or set the following environment variables:
Note: For AI features to work, you'll need a Comput3 API key. Set it in the Replit Secrets tab as OPENAI_API_KEY.
π Usage Example
1. Web Interface
Navigate to your Replit URL to access the web interface:
Dashboard: Portfolio overview and analytics
AI Features: Access Portfolio Doctor, Strategy Sommelier, and Chat Assistant
API Docs: Complete API documentation
2. MCP Protocol Usage
3. AI Features Usage
π Known Issues
Icon Warnings: Feather icons 'wallet' and 'brain' are not valid - these are cosmetic warnings that don't affect functionality
Testnet Mode: Currently runs in testnet mode for safety - set
USE_TESTNET=falsefor mainnet operationsRate Limits: Public RPC endpoints have rate limits - consider using premium RPC providers for production
AI Dependencies: Some AI features require internet connectivity to Comput3 API
β MCP End-to-End Functionality
Status: Yes β fully functional
The MCP server is production-ready with:
β All 8 MCP methods implemented and tested
β JSON-RPC 2.0 compliance verified
β Multi-chain blockchain connections active
β AI integration working with Comput3 API
β Web interface fully operational
β Portfolio analytics and risk assessment functional
β Real-time DeFi protocol integration
Test Results:
π Chains Integrated
β Ethereum (Mainnet/Testnet)
β Solana (Mainnet/Devnet)
β Polygon (Mainnet/Testnet)
π₯οΈ Primary Compute Provider
Comput3 - Used for AI analysis, strategy generation, and chat assistance via their LLaMA model endpoints.
π License
MIT License - Open source and free to use, modify, and distribute.
π― Additional Information
π Hackathon Features
This project showcases cutting-edge AI integration in DeFi:
Portfolio Doctor: Medical-themed portfolio diagnostics with visual health scores
Strategy Sommelier: Wine-themed investment strategies with personality descriptions
Intelligent Risk Assessment: AI-powered analysis of DeFi positions
Multi-Chain Orchestration: Seamless operations across 3 major blockchains
π§ Technical Highlights
Production-Ready: Comprehensive error handling, logging, and security measures
Scalable Architecture: Modular design with clear separation of concerns
Real-Time Data: Live blockchain integration with portfolio tracking
AI-Native: Built from ground up with AI integration as core feature
π Deployment
Platform: Deployed on Replit with automatic scaling and SSL
Uptime: 99.9% availability target with monitoring
Performance: <200ms API response times
Security: Environment variable management and testnet safety mode
π Future Roadmap
Additional blockchain support (BSC, Avalanche)
Advanced trading strategies and automated rebalancing
Mobile app integration
Enhanced risk management tools
Contact: For questions, issues, or contributions, please reach out via Telegram @YourTelegramHandle
Live Demo: [Your Replit URL]
Built with β€οΈ for the future of AI-powered DeFi