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.
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 twine
-
Build the package:
python -m build
-
Upload to PyPI:
twine upload dist/*
Or if using Poetry (as specified in pyproject.toml):
poetry build
poetry publish
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
sugar_mcp-0.3.22.tar.gz
(13.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sugar_mcp-0.3.22.tar.gz.
File metadata
- Download URL: sugar_mcp-0.3.22.tar.gz
- Upload date:
- Size: 13.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
poetry/2.1.2 CPython/3.12.9 Darwin/24.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
99716e3fe51f8d6057ad019814cd96a1e9893af6db225bca64f8d463424ab192
|
|
| MD5 |
7aa76b8d830cdf1555cb1e52f21a24c3
|
|
| BLAKE2b-256 |
a3859793defe3f80d609fa74986c5d9a8dbc190f5228902a6cf9f6a28b18fe95
|
File details
Details for the file sugar_mcp-0.3.22-py3-none-any.whl.
File metadata
- Download URL: sugar_mcp-0.3.22-py3-none-any.whl
- Upload date:
- Size: 14.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
poetry/2.1.2 CPython/3.12.9 Darwin/24.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3d8293701e34abc6b97a8c3f44dadb71058bba6a4b88d5d4faa52d6258e0352f
|
|
| MD5 |
a76c96e38119b83c21aa38d77938918a
|
|
| BLAKE2b-256 |
cfa414e4dfdb6ee030397127a6e7916b85e0a5eb559a9f4b8adb013daf3c0e92
|