Skip to main content

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.
  • 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": "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:

  1. Install build dependencies:
pip install build twine
  1. Build the package:
python -m build
  1. Upload to PyPI:
twine upload dist/*

Or if using Poetry (as specified in pyproject.toml):

poetry build
poetry publish

Project details


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.21.tar.gz (8.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sugar_mcp-0.3.21-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file sugar_mcp-0.3.21.tar.gz.

File metadata

  • Download URL: sugar_mcp-0.3.21.tar.gz
  • Upload date:
  • Size: 8.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.2 CPython/3.12.9 Darwin/24.6.0

File hashes

Hashes for sugar_mcp-0.3.21.tar.gz
Algorithm Hash digest
SHA256 a67333464edf260b5cb604bc060575d32941c66128b945cadeb597bfb25f03ff
MD5 70c01f56c2cbcab4506aa0f89f1f0e7f
BLAKE2b-256 2488498aca2d0bd69b2b95f117c10dc00f51ff50b920b3473d0d53c2beb87e15

See more details on using hashes here.

File details

Details for the file sugar_mcp-0.3.21-py3-none-any.whl.

File metadata

  • Download URL: sugar_mcp-0.3.21-py3-none-any.whl
  • Upload date:
  • Size: 8.8 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

Hashes for sugar_mcp-0.3.21-py3-none-any.whl
Algorithm Hash digest
SHA256 0872c03dba6d2fd3314c62d2b10a0268105d57a68a26039122466e9c2446cd97
MD5 49b721521275cfb6a19373d7e278ffd7
BLAKE2b-256 8305cba692b1d82655e9fa4e49f25e83bdf952bdb7ca076ecf99dcc7d30af8e1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page