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.
To set up the EDUCHAIN Agent Kit MCP server:
npm install
npm run build
{
"mcpServers": {
"sailfish": {
"command": "node",
"args": ["/path/to/SubgraphMCP/build/index.js"],
"env": {
"RPC_URL": "https://your-edu-rpc-url.com"
}
}
}
}
The server provides various tools to access token and pool data:
Manage wallets and perform transactions:
Execute token swaps on SailFish DEX:
Identify arbitrage opportunities:
Configure the server:
use_mcp_tool("sailfish", "get_token_price", {
"tokenId": "0x836d275563bAb5E93Fd6Ca62a95dB7065Da94342"
});
use_mcp_tool("sailfish", "get_swap_quote", {
"tokenIn": "0xd02E8c38a8E3db71f8b2ae30B8186d7874934e12",
"tokenOut": "0x836d275563bAb5E93Fd6Ca62a95dB7065Da94342",
"amountIn": "10"
});
use_mcp_tool("sailfish", "swap_tokens", {
"privateKey": "YOUR_PRIVATE_KEY",
"tokenIn": "0xd02E8c38a8E3db71f8b2ae30B8186d7874934e12",
"tokenOut": "0x836d275563bAb5E93Fd6Ca62a95dB7065Da94342",
"amountIn": "10",
"slippagePercentage": 0.5
});
use_mcp_tool("sailfish", "check_arbitrage_opportunities", {
"threshold": 1.5
});
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"
});
Verify functionality with the testing script:
node build/test.js
This script tests routing and swap quote functionality without executing actual swaps.
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.
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.
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"
}
}
}
}
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.
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.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.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