SailFish MCP server

Provides a bridge to the SailFish decentralized exchange on the EDU blockchain, enabling token swaps, liquidity pool queries, and market data analysis through a GraphQL subgraph with optimal routing capabilities.
Back to servers
Setup instructions
Provider
SailFish Finance
Release date
Mar 09, 2025
Language
TypeScript
Stats
6 stars

The EDUCHAIN Agent Kit MCP server provides tools and resources for interacting with EDUCHAIN, allowing Claude to query information about tokens and pools and perform swaps through SailFish DEX. This server facilitates token information retrieval, wallet operations, swap execution, and arbitrage opportunity detection.

Installation

To set up the EDUCHAIN Agent Kit MCP server:

  1. Ensure Node.js is installed on your system
  2. Clone the 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"
          }
        }
      }
    }
    

Available Tools

Token and Pool Information

The server provides various tools to access token and pool data:

  • get_token_price: Retrieves current token price on SailFish DEX
  • get_token_info: Gets detailed token information
  • get_pool_info: Retrieves liquidity pool details
  • get_top_tokens: Lists top tokens by TVL
  • get_top_pools: Lists top liquidity pools by TVL
  • get_total_tvl: Gets total value locked in SailFish DEX
  • get_24h_volume: Retrieves 24-hour trading volume
  • get_token_historical_data: Gets historical token data
  • get_pool_historical_data: Gets historical pool data

Wallet Operations

Manage wallets and perform transactions:

  • get_edu_balance: Gets EDU balance for a wallet
  • get_token_balance: Gets token balance with USD value
  • get_multiple_token_balances: Retrieves multiple token balances
  • get_nft_balance: Gets NFT balance for specific collections
  • get_wallet_overview: Gets wallet overview including tokens and NFTs
  • get_wallet_address_from_private_key: Derives wallet address from private key
  • send_edu: Sends EDU to another wallet
  • send_erc20_token: Sends ERC20 tokens to another wallet

Swap Operations

Execute token swaps on SailFish DEX:

  • get_swap_quote: Gets quote for token swaps
  • swap_tokens: Swaps token for token
  • swap_edu_for_tokens: Swaps EDU for tokens
  • swap_tokens_for_edu: Swaps tokens for EDU
  • wrap_edu: Wraps EDU to WEDU
  • unwrap_wedu: Unwraps WEDU to EDU

Arbitrage Operations

Identify arbitrage opportunities:

  • get_external_market_data: Gets EDU data from centralized exchanges
  • check_arbitrage_opportunities: Checks for arbitrage between CEX and DEX
  • update_external_market_config: Updates external market data API configuration
  • get_external_market_config: Gets current external market data configuration

Configuration

Configure the server:

  • set_rpc_url: Sets RPC URL for blockchain interactions
  • get_rpc_url: Gets current RPC URL

Usage Examples

Getting Token Price

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

Obtaining a Swap Quote

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

Swapping Tokens

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

Checking Arbitrage Opportunities

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

Updating 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"
  }
});

Working with EDU and WEDU

// 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

Verify functionality with the testing script:

node build/test.js

This script tests routing and swap quote functionality without executing actual swaps.

How to install this MCP server

For Claude Code

To add this MCP server to Claude Code, run this command in your terminal:

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

See the official Claude Code MCP documentation for more details.

For Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

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

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.

For Claude Desktop

To add this MCP server to Claude Desktop:

1. Find your configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

2. Add this to your configuration file:

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

3. Restart Claude Desktop for the changes to take effect

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later