Manages environment variables for secure configuration, particularly for storing private keys and contract addresses needed for trading operations
Enables trading on Ethereum Mainnet (Chain ID: 1) through Paloma DEX, allowing token purchases, sales, balance checks, and price queries
Supports trading operations on Optimism (Chain ID: 10) through Paloma DEX, with tools for buying/selling tokens and checking balances
Provides trading capabilities on Polygon (Chain ID: 137) through Paloma DEX, with support for cross-chain token exchanges
Paloma DEX MCP Server
A Model Context Protocol (MCP) server that enables AI agents to interact with Paloma DEX across 7 EVM chains. Built with FastMCP framework for modern MCP implementations.
Overview
This MCP server provides AI agents with tools to access blockchain data and prepare for decentralized trading operations on Paloma DEX. The server supports cross-chain functionality across Ethereum, Arbitrum, Optimism, Base, BSC, Polygon, and Gnosis chains.
Features
Available Tools
Blockchain Data Access
get_account_info
: Get account address and native token balances across all chainsget_pusd_balance
: Get PUSD token balance on a specific chainget_chain_info
: Get detailed information about a specific blockchainlist_supported_chains
: List all supported chains with their configurationsget_address_balances
: Get balances for any Ethereum address across all chains
ETF Trading Tools
get_etf_tokens
: Get available ETF tokens on a specific chainget_etf_price
: Get buy and sell prices for an ETF token (by EVM address)get_etf_price_by_symbol
: Get ETF price by token symbol (recommended)get_etf_price_by_paloma_denom
: Get ETF price by Paloma denominationget_etf_balance
: Get ETF token balance for a wallet addressbuy_etf_token
: Buy ETF tokens using input tokens (simulation)sell_etf_token
: Sell ETF tokens back to base currency (simulation)
Chain Support
Supports all 7 EVM chains used by Paloma DEX:
- Ethereum Mainnet (Chain ID: 1)
- Arbitrum One (Chain ID: 42161)
- Optimism (Chain ID: 10)
- Base (Chain ID: 8453)
- BNB Smart Chain (Chain ID: 56)
- Polygon (Chain ID: 137)
- Gnosis (Chain ID: 100)
Key Capabilities
- Multi-Chain Data Access: Query balances and chain information across all 7 supported chains
- ETF Trading Support: Complete ETF token ecosystem integration with Paloma DEX API
- FastMCP Framework: Built with modern MCP implementation for better performance
- Web3 Integration: Direct blockchain interaction via Web3 clients
- Transaction Simulation: Safe simulation of trading operations before execution
- Error Handling: Comprehensive error management and validation
- Address Validation: Ethereum address format validation
- Contract Integration: Integration with PUSD and ETF connector contracts
Installation
- Clone the repository:
- Install dependencies using uv:
Configuration
- Set up environment variables:
- Configure your
.env
file with the following required variables: - Obtain contract addresses from Paloma DEX documentation or team for:
- PUSD token addresses
- PUSD connector addresses
- ETF connector addresses
Usage
Running the Server
The server will start and listen for MCP protocol messages via stdin/stdout.
Tool Examples
Get Account Information
Get PUSD Balance
Get Chain Information
List All Supported Chains
Get Address Balances
Get Available ETF Tokens
Get ETF Token Price (by EVM address)
Get ETF Price by Symbol (Recommended)
Get ETF Price by Paloma Denomination
Get ETF Token Balance
Buy ETF Tokens (Simulation)
Sell ETF Tokens (Simulation)
Architecture
Core Components
padex.py
: Main MCP server implementation using FastMCP frameworkmain.py
: Simple entry point (Hello World)- FastMCP Framework: Modern MCP server implementation with lifecycle management
- Chain Configuration: Complete configuration for all 7 supported chains
- Web3 Clients: Individual Web3 connections for each blockchain
Architecture Pattern
The server uses FastMCP's lifespan context management:
Security Considerations
⚠️ Important Security Notes:
- Private keys are stored in environment variables
- Ensure your
.env
file is never committed to version control - The
.gitignore
file excludes.env
by default - Consider using more secure key management for production use
Dependencies
- mcp[cli]: Model Context Protocol with FastMCP framework
- web3: Ethereum blockchain interaction
- eth-account: Private key and transaction signing
- eth-abi: ABI encoding for contract calls
- httpx: HTTP client for API interactions
- python-dotenv: Environment variable management
API Integrations
The server integrates with:
- Blockchain RPC Endpoints: Direct connection to each supported chain
- ERC-20 Token Contracts: For PUSD and ETF token balance queries
- Paloma DEX API: Live integration for ETF token data and pricing
- ETF Connector Contracts: Smart contracts for ETF trading operations
Development
Project Structure
Adding New Features
The server uses FastMCP decorators for easy extension:
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This project is open source. Please check the license file for details.
Disclaimer
This software is provided "as is" without warranty. Trading cryptocurrencies involves risk of loss. Use at your own risk and ensure you understand the implications of automated trading before deployment.
Support
For questions about Paloma DEX integration, consult the Paloma DEX documentation or reach out to the Paloma team.
For MCP-related questions, see the Model Context Protocol documentation.
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
A Model Context Protocol server that enables AI agents to autonomously execute cross-chain trading operations on Paloma DEX across seven EVM chains including Ethereum, Arbitrum, and Polygon.
Related MCP Servers
- AsecurityAlicenseAqualityA Model Context Protocol server implementation that enables AI assistants to interact with the Paradex perpetual futures trading platform, allowing for retrieving market data, managing trading accounts, placing orders, and monitoring positions.Last updated -287PythonMIT License
- -securityAlicense-qualityA Model Context Protocol server enabling AI agents to interact with the Solana blockchain for DeFi operations like checking balances, transferring tokens, executing swaps, and fetching price data.Last updated -21915TypeScriptMIT License
- AsecurityAlicenseAqualityA Model Context Protocol server that enables AI agents to interact with 30+ Ethereum-compatible blockchain networks, providing services like token transfers, contract interactions, and ENS resolution through a unified interface.Last updated -28230252TypeScriptMIT License
- 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 -2047219TypeScriptMIT License