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.

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"  // 暂时未发布到pypi
      ]
    }
  }
}

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.1.0.tar.gz (3.6 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.1.0-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sugar_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 3.6 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.1.0.tar.gz
Algorithm Hash digest
SHA256 4da40fafef8d60c88aff9d90514b65bfb479f2083b830693ba0cb0ea4554f505
MD5 82cdedf756547414f2069e53b4df1118
BLAKE2b-256 5ed7907150135e75577bafda13b14f561328d990efd54daf8643ec39bea63080

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sugar_mcp-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.9 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f9c8f5baf52d2565f283b1c4880fc1e841a51112524e02bd40d8d39b85bb11d1
MD5 2b0764f2bf7cb1bb92d6e31694a9e12a
BLAKE2b-256 f9f50024d60f226c9704966c4cf2f08728cb52658439b420ae1f4c285ed50005

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