Odos MCP Server
Uses .env files for environment variable configuration, particularly for managing API keys like ZERION_API_KEY
Supports Poetry for Python dependency management and running the MCP server
Uses Pydantic models for API response validation and data structure modeling
Python-based MCP server implementation with comprehensive DeFi trading and portfolio analytics capabilities
Provides zap operations for single-transaction liquidity provision quotes through the Odos DEX aggregation platform
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., "@Odos MCP Serverget a swap quote for 1 ETH to USDC on Ethereum mainnet"
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.
Odos MCP Client
A Model Context Protocol (MCP) client for interacting with the Odos DEX aggregation platform and Zerion portfolio analytics. This tool provides comprehensive access to DeFi trading data, swap quotes, portfolio analysis, and transaction history across multiple blockchain networks.
Features
Odos API Integration
Swap Quotes: Get optimal swap routes and pricing across DEX liquidity sources
Zap Operations: Single-transaction liquidity provision quotes
Chain Support: Access all Odos-supported blockchain networks
Token Data: Real-time pricing and metadata for supported tokens
Router Information: Contract addresses and blockchain infrastructure details
Zerion Analytics
Portfolio Analysis: Complete wallet holdings and composition breakdown
Transaction History: Detailed historical transaction data and analysis
Performance Tracking: Historical portfolio performance and returns
Gas Price Monitoring: Real-time gas estimates across networks
Related MCP server: Zerion MCP Server
Installation
# Clone the repository
git clone <repository-url>
cd odos-mcp
# Create and activate virtual environment
python -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
# Install dependencies
pip install -r requirements.txt
# Set up environment variables
# Create a .env file and add your API keys (see Configuration section)
# Or set environment variables directly:
export ZERION_API_KEY="your_zerion_api_key_here"
# Verify setup (optional but recommended)
python scripts/verify_setup.pyUsage
Ensure you have set up the required environment variables (see Configuration section), then start the MCP server:
poetry run python -m src.client.serverNote: Make sure ZERION_API_KEY is set if you plan to use any Zerion analytics tools.
Verifying Your Setup
Run the verification script to ensure everything is configured correctly:
python scripts/verify_setup.pyThis script will:
Test all module imports
Verify environment configuration
Check API connectivity
Validate helper functions
Provide a comprehensive setup report
Available Tools
API Tools (src/client/tools/api/)
Tool | Description |
| Get swap quotes and transaction data |
| Get zap quotes for liquidity provision |
| List supported blockchain networks |
| Retrieve tradeable tokens by chain |
| Real-time token pricing data |
| Bulk token prices across chains |
| Fiat currency exchange rates |
| Smart contract details and metadata |
| Odos router contract addresses |
| Current block numbers and network status |
| Available DEX integrations |
Zerion Tools (src/client/tools/zerion/)
Note: These tools require the ZERION_API_KEY environment variable to be set.
Tool | Description |
| Portfolio holdings and composition |
| Historical transaction analysis |
| Portfolio performance tracking |
| Network gas price estimates |
Project Structure
odos-mcp/
├── src/client/ # Core client package
│ ├── tools/ # Tool implementations
│ │ ├── api/ # Odos API tools
│ │ └── zerion/ # Zerion integration tools
│ ├── constants.py # Chain IDs, token addresses, API endpoints
│ ├── helpers.py # Utility functions for API requests
│ ├── mcp_types.py # Pydantic models for API responses
│ └── api_models.py # Additional data models
├── scripts/ # Development and maintenance scripts
│ ├── verify_setup.py # Setup verification script
│ └── ...
├── tests/ # Test suite
└── requirements.txt # Python dependenciesConfiguration
Environment Variables
The client requires the following environment variables:
# Required: Zerion API Key for portfolio analytics
export ZERION_API_KEY="your_zerion_api_key_here"Getting API Keys
Zerion API Key
To use Zerion analytics tools, you'll need a Zerion API key:
Visit Zerion Developer Portal
Sign up for a developer account
Create a new API key
Set the
ZERION_API_KEYenvironment variable
Setting Environment Variables
Create a .env file in the project root:
# .env file
ZERION_API_KEY=your_zerion_api_key_hereOr set them directly in your shell:
export ZERION_API_KEY="your_zerion_api_key_here"API Endpoints
The following API endpoints are used (hardcoded in the application):
Odos API:
https://api.odos.xyz(no authentication required)Zerion API:
https://api.zerion.io(requires API key)
Development
Setup Development Environment
# Install development dependencies
pip install -r requirements-dev.txt
# Run formatting
python scripts/format.py
# Run testsAdding New Tools
Create tool file in appropriate directory (
api/orzerion/)Add brief description docstring
Implement using FastMCP decorator pattern
Update
__init__.pyexportsAdd tests in
tests/directory
Contributing
Fork the repository
Create feature branch (
git checkout -b feature/amazing-feature)Commit changes (
git commit -m 'Add amazing feature')Push to branch (
git push origin feature/amazing-feature)Open Pull Request
License
This project is licensed under the MIT License - see the LICENSE file for details.
Support
For questions or issues:
Create an issue in the repository
Check existing documentation and tool descriptions
Review the Odos API documentation for parameter details
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
- AlicenseBqualityDmaintenanceEnables AI agents to interact with Saros DeFi through natural language, providing tools for liquidity pool management, portfolio analytics, farming positions, and swap quotes on Solana.5MIT
- Alicense-qualityDmaintenanceEnables AI assistants to access cryptocurrency portfolio management, DeFi positions, NFTs, and market data through the Zerion API. Automatically exposes all Zerion API endpoints as MCP tools for comprehensive crypto asset management.MIT

OpenOcean MCPofficial
AlicenseCqualityDmaintenanceEnables interaction with decentralized exchanges (DEXs) through OpenOcean, allowing users to get swap quotes, execute token swaps, check gas prices, and query transaction information across multiple blockchain networks.7171ISC- AlicenseAqualityDmaintenanceEnables AI agents to interact with HyperLend protocol and Kittenswap DEX on Hyperliquid EVM network. Supports DeFi operations including lending, borrowing, withdrawing assets, and token swapping with comprehensive portfolio management.812MIT
Related MCP Connectors
Non-custodial DeFi for AI agents: swaps, concentrated liquidity (V3/V4) zaps + ranges, 5 EVM chains
Cross-network DeFi API data, AMM analytics, and SDK docs for 17+ networks.
DefiLlama MCP — DeFi analytics from DefiLlama (free, no auth)
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/odos-xyz/odos-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server