No project description provided
Project description
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: The public key for the SUGAR service.SUGAR_RPC_URI_10: The RPC URI for the SUGAR service.
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.
Usage
{
"mcpServers": {
"sugar-mcp": {
"env": {
"SUGAR_PK": "xxx",
"SUGAR_RPC_URI_10": "optionally, the RPC URI for the SUGAR service"
},
"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
Project details
Release history Release notifications | RSS feed
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.15.tar.gz
(6.3 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.15.tar.gz.
File metadata
- Download URL: sugar_mcp-0.3.15.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6703458da9efca748e29f1d80d655c1fb4434a98981d51cf4c4a685d467a98af
|
|
| MD5 |
0c2d3bb07ca587cc003701c0ccad9b43
|
|
| BLAKE2b-256 |
fd2e87c487c9a864f189d99ef89249484253ef51de7554e961505d30bb25cdff
|
File details
Details for the file sugar_mcp-0.3.15-py3-none-any.whl.
File metadata
- Download URL: sugar_mcp-0.3.15-py3-none-any.whl
- Upload date:
- Size: 7.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5afb17df4f527a54e01b248523ccd8cd717b926dd513f0fb572e33b42241be37
|
|
| MD5 |
6beb2247ce93ad301f7592ab97df9153
|
|
| BLAKE2b-256 |
807dada43743b614ce2cc8dc9b0b0edd1e13ad131599ce71c5fe2c185d6b01ab
|