Skip to main content
Glama

EDUCHAIN Agent Kit

SailfishAgent

This MCP (Model Context Protocol) server provides tools and resources for interacting with EDUCHAIN. It allows Claude to query information about tokens and pools and perform swaps through SailFish DEX.

Features

Token and Pool Information

  • Get token prices and details

  • Get pool information and statistics

  • View historical data for tokens and pools

  • Get top tokens and pools by TVL

Wallet Operations

  • Check EDU and token balances

  • Get wallet overviews including tokens and NFTs

  • Send EDU and ERC20 tokens

Swap Operations

  • Get swap quotes with price impact and route information

  • Swap tokens for tokens

  • Swap EDU for tokens (using WEDU internally)

  • Swap tokens for EDU (using WEDU internally)

Note: SailFish DEX, like other Uniswap v3 forks, doesn't support native token swaps directly. Instead, it uses WEDU (Wrapped EDU) internally. When you use the swap functions for EDU, the system automatically handles the wrapping/unwrapping process, so you can work directly with EDU in your transactions. If you need more control, you can also use the wrap_edu and unwrap_wedu functions to manually convert between EDU and WEDU.

Arbitrage Operations

  • Get external market data for EDU from centralized exchanges

  • Check for arbitrage opportunities between CEX and SailFish DEX

  • Configurable external market data API

  • Customizable arbitrage detection threshold

Related MCP server: GOAT MCP Server

Tools

Token and Pool Information

  • get_token_price: Get the current price of a token on SailFish DEX

  • get_token_info: Get detailed information about a token on SailFish DEX

  • get_pool_info: Get detailed information about a liquidity pool on SailFish DEX

  • get_top_tokens: Get a list of top tokens by TVL on SailFish DEX

  • get_top_pools: Get a list of top liquidity pools by TVL on SailFish DEX

  • get_total_tvl: Get the total value locked (TVL) in SailFish DEX

  • get_24h_volume: Get the 24-hour trading volume on SailFish DEX

  • get_token_historical_data: Get historical data for a token on SailFish DEX

  • get_pool_historical_data: Get historical data for a liquidity pool on SailFish DEX

Wallet Operations

  • get_edu_balance: Get the EDU balance of a wallet address

  • get_token_balance: Get the token balance of a wallet address with USD value

  • get_multiple_token_balances: Get multiple token balances for a wallet address

  • get_nft_balance: Get the NFT balance of a wallet address for a specific NFT collection

  • get_wallet_overview: Get an overview of a wallet including EDU, tokens, and NFTs

  • get_wallet_address_from_private_key: Get wallet address from private key

  • send_edu: Send EDU native token to another wallet address

  • send_erc20_token: Send ERC20 token to another wallet address

Swap Operations

  • get_swap_quote: Get a quote for swapping tokens on SailFish DEX

  • swap_tokens: Swap tokens on SailFish DEX (token to token)

  • swap_edu_for_tokens: Swap EDU for tokens on SailFish DEX

  • swap_tokens_for_edu: Swap tokens for EDU on SailFish DEX

  • wrap_edu: Wrap EDU to WEDU (Wrapped EDU)

  • unwrap_wedu: Unwrap WEDU (Wrapped EDU) to EDU

Arbitrage Operations

  • get_external_market_data: Get external market data for EDU from centralized exchanges

  • check_arbitrage_opportunities: Check for arbitrage opportunities between CEX and SailFish DEX

  • update_external_market_config: Update the configuration for external market data API

  • get_external_market_config: Get the current configuration for external market data API

Configuration

  • set_rpc_url: Set the RPC URL for blockchain interactions

  • get_rpc_url: Get the current RPC URL used for blockchain interactions

Resources

  • sailfish://overview: Overview of SailFish DEX including TVL, volume, and other metrics

  • sailfish://token/{tokenId}: Information about a specific token on SailFish DEX

  • sailfish://pool/{poolId}: Information about a specific liquidity pool on SailFish DEX

Installation

  1. Make sure you have Node.js installed

  2. Clone this repository

  3. Install dependencies:

    npm install
  4. Build the project:

    npm run build
  5. Add the MCP server to your Claude Desktop configuration file:

    {
      "mcpServers": {
        "sailfish": {
          "command": "node",
          "args": ["/path/to/SubgraphMCP/build/index.js"],
          "env": {
            "RPC_URL": "https://your-edu-rpc-url.com"
          }
        }
      }
    }

Usage Examples

Get Token Price

use_mcp_tool("sailfish", "get_token_price", {
  "tokenId": "0x836d275563bAb5E93Fd6Ca62a95dB7065Da94342"
});

Get Swap Quote

use_mcp_tool("sailfish", "get_swap_quote", {
  "tokenIn": "0xd02E8c38a8E3db71f8b2ae30B8186d7874934e12",
  "tokenOut": "0x836d275563bAb5E93Fd6Ca62a95dB7065Da94342",
  "amountIn": "10"
});

Swap Tokens

use_mcp_tool("sailfish", "swap_tokens", {
  "privateKey": "YOUR_PRIVATE_KEY",
  "tokenIn": "0xd02E8c38a8E3db71f8b2ae30B8186d7874934e12",
  "tokenOut": "0x836d275563bAb5E93Fd6Ca62a95dB7065Da94342",
  "amountIn": "10",
  "slippagePercentage": 0.5
});

Check Arbitrage Opportunities

use_mcp_tool("sailfish", "check_arbitrage_opportunities", {
  "threshold": 1.5
});

Update External Market API Configuration

use_mcp_tool("sailfish", "update_external_market_config", {
  "apiUrl": "https://api.example.com/crypto/prices",
  "apiKey": "YOUR_API_KEY",
  "symbols": {
    "EDU": "EDU",
    "USD": "USDT"
  }
});

Wrap EDU to WEDU

use_mcp_tool("sailfish", "wrap_edu", {
  "privateKey": "YOUR_PRIVATE_KEY",
  "amount": "10"
});

Unwrap WEDU to EDU

use_mcp_tool("sailfish", "unwrap_wedu", {
  "privateKey": "YOUR_PRIVATE_KEY",
  "amount": "10"
});

Testing

You can run the test script to verify the functionality:

node build/test.js

This will test the routing and swap quote functionality without executing actual swaps.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Available Tools

29 tools
check_arbitrage_opportunitiesC

Check for arbitrage opportunities between centralized exchanges and SailFish DEX

Inputs: threshold.

get_24h_volumeB

Get the 24-hour trading volume on SailFish DEX

Inputs: no named parameters.

get_edu_balanceC

Get the EDU balance of a wallet address

Inputs: walletAddress (required).

get_external_market_configB

Get the current configuration for external market data API

Inputs: no named parameters.

get_external_market_dataC

Get external market data for EDU from centralized exchanges

Inputs: no named parameters.

get_multiple_token_balancesC

Get multiple token balances for a wallet address with USD values using SailFish as price oracle

Inputs: tokenAddresses (required), walletAddress (required).

get_nft_balanceC

Get the NFT balance of a wallet address for a specific NFT collection

Inputs: nftAddress (required), walletAddress (required), fetchTokenIds.

get_pool_historical_dataC

Get historical data for a liquidity pool on SailFish DEX

Inputs: poolId (required), days.

get_pool_infoC

Get detailed information about a liquidity pool on SailFish DEX

Inputs: poolId (required).

get_rpc_urlB

Get the current RPC URL used for blockchain interactions

Inputs: no named parameters.

get_swap_quoteC

Get a quote for swapping tokens on SailFish DEX

Inputs: amountIn (required), tokenIn (required), tokenOut (required), fee.

get_token_balanceA

Get the token balance of a wallet address with USD value using SailFish as price oracle

Inputs: tokenAddress (required), walletAddress (required).

get_token_historical_dataC

Get historical data for a token on SailFish DEX

Inputs: tokenId (required), days.

get_token_infoC

Get detailed information about a token on SailFish DEX

Inputs: tokenId (required).

get_token_priceC

Get the current price of a token on SailFish DEX

Inputs: tokenId (required).

get_top_poolsC

Get a list of top liquidity pools by TVL on SailFish DEX

Inputs: count.

get_top_tokensC

Get a list of top tokens by TVL on SailFish DEX

Inputs: count.

get_total_tvlB

Get the total value locked (TVL) in SailFish DEX

Inputs: no named parameters.

get_wallet_address_from_private_keyB

Get wallet address from private key with proper checksum formatting

Inputs: privateKey (required).

get_wallet_overviewC

Get an overview of a wallet including EDU, tokens, and NFTs

Inputs: walletAddress (required), nftAddresses, tokenAddresses.

send_eduC

Send EDU native token to another wallet address

Inputs: amount (required), privateKey (required), toAddress (required).

send_erc20_tokenC

Send ERC20 token to another wallet address

Inputs: amount (required), privateKey (required), toAddress (required), tokenAddress (required), +1 more.

set_rpc_urlC

Set the RPC URL for blockchain interactions

Inputs: url (required).

swap_edu_for_tokensC

Swap EDU for tokens on SailFish DEX

Inputs: amountIn (required), privateKey (required), tokenOut (required), fee, +1 more.

swap_tokensC

Swap tokens on SailFish DEX (token to token)

Inputs: amountIn (required), privateKey (required), tokenIn (required), tokenOut (required), +2 more.

swap_tokens_for_eduC

Swap tokens for EDU on SailFish DEX

Inputs: amountIn (required), privateKey (required), tokenIn (required), fee, +1 more.

unwrap_weduC

Unwrap WEDU (Wrapped EDU) to EDU

Inputs: amount (required), privateKey (required).

update_external_market_configC

Update the configuration for external market data API

Inputs: apiKey, apiUrl, symbols.

wrap_eduC

Wrap EDU to WEDU (Wrapped EDU)

Inputs: amount (required), privateKey (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3/5.0

    Scored across 29 tools

    Disambiguation4/5

    Most tools have distinct purposes targeting specific resources like balances, pools, tokens, swaps, or configurations, with clear boundaries. However, some overlap exists between get_token_balance and get_multiple_token_balances, and between swap_edu_for_tokens, swap_tokens, and swap_tokens_for_edu, which could cause minor confusion in selection.

    Naming Consistency5/5

    Tool names follow a highly consistent verb_noun pattern throughout, using snake_case uniformly. All tools start with verbs like 'get', 'send', 'swap', 'wrap', 'unwrap', 'check', 'set', or 'update', followed by descriptive nouns, making the naming predictable and readable.

    Tool Count3/5

    With 29 tools, the count is borderline high for a DEX and wallet interaction server, potentially feeling heavy and overwhelming. While many tools are specialized, the number might exceed typical scoping (3-15 tools), suggesting some consolidation could improve usability without losing functionality.

    Completeness5/5

    The tool set provides comprehensive coverage for the SailFish DEX and wallet management domain, including data retrieval (balances, prices, pools, tokens), trading operations (swaps, arbitrage), configuration management (RPC, market data), and token handling (wrap/unwrap, sends). No obvious gaps are present, supporting full agent workflows.

    Related MCP Connectors

    Related MCP Servers