Sugar MCP Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Sugar MCP Server
This is an MCP (Model Context Protocol) server to interact with Sugar Sugar makes Velodrome and Aerodrome devs life sweeter đźŤ
Components
Environment Variables
SUGAR_PK: Private key for the SUGAR service (required for all operations).SUGAR_RPC_URI_8453: RPC URI for Base chain (required for blockchain interactions).SKIP_CACHE_INIT: Set to "true" to skip cache initialization during development (optional, default: false).
Tools
get_all_tokens: Retrieve all tokens supported by the protocol.
get_prices: Retrieve prices for a list of tokens in terms of the stable token.
get_pools: Retrieve all liquidity pools or swap pools depending on the flag.
get_pool_by_address: Retrieve detailed pool information by contract address.
get_pools_for_swaps: Retrieve all pools suitable for swaps and path finding.
get_latest_pool_epochs: Retrieve the latest epoch data for all pools.
get_pool_epochs: Retrieve historical epoch data for a given liquidity pool.
get_quote: Retrieve the best quote for swapping a given amount from one token to another.
swap: Execute a token swap transaction.
get_pools_by_token: Retrieve liquidity pools that contain a specific token.
get_pools_by_pair: Retrieve liquidity pools that contain a specific token pair.
get_pool_list: Retrieve liquidity pools based on specified criteria.
Related MCP server: Aerodrome Swap MCP Server
Usage
{
"mcpServers": {
"sugar-mcp": {
"env": {
"SUGAR_PK": "your_private_key_here",
"SUGAR_RPC_URI_8453": "https://your-base-rpc-endpoint"
},
"command": "uvx",
"args": [
"sugar-mcp"
]
}
}
}Building and Publishing to PyPI
To build and publish this package to PyPI:
Install build dependencies:
pip install build twineBuild the package:
python -m buildUpload to PyPI:
twine upload dist/*
Or if using Poetry (as specified in pyproject.toml):
poetry build
poetry publishTool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Cross-chain token swaps for autonomous agents on Base L2 and partner rails
Token and pool data, swap quotes, and unsigned transaction plans for Ekubo and other DeFi protocols.
Cross-network DeFi API data, AMM analytics, and SDK docs for 17+ networks.
Live Base Mainnet on-chain data (gas, DEX, Aave, token risk, prices). Pay per call in USDC via x402.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceProvides a comprehensive suite of Web3 tools for querying token addresses, news summaries, and real-time market data via CoinGecko. It also facilitates DeFi operations including token price tracking, pool information, and swap quotes through Sugar DeFi integration.-
- FlicenseNot gradedqualityDmaintenanceIntegrates with the Aerodrome Swap API to enable token swaps, pool information retrieval, price queries, and quote generation via the MCP framework.-
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to perform Aerodrome Finance DEX operations on Base chain, including token swaps, liquidity management, and market analysis through natural language.5MIT
- AlicenseNot gradedqualityDmaintenanceGet the best swap quotes across Uniswap, SushiSwap, Aerodrome with pay-per-call via x402 (USDC on Base).MIT