๐Ÿ–ฅ๏ธ MCP (Claude/Cursor)
For AI Agents

MCP Server

For interactive AI assistants like Claude Desktop, Cursor, or Windsurf. The MCP server exposes all VAEA tools via the Model Context Protocol standard.

โ„น๏ธ Note
MCP is for human-in-the-loop agents (chat assistants). For autonomous agents, use the Agent Kit or GOAT plugins instead โ€” they're more direct and don't require an MCP client.

Claude Desktop

Add to claude_desktop_config.json:

json
{
  "mcpServers": {
    "vaea-flash": {
      "command": "npx",
      "args": ["-y", "@vaea/mcp-server"],
      "env": { "VAEA_API_URL": "https://api.vaea.fi" }
    }
  }
}

Cursor / Windsurf

json
{
  "mcpServers": {
    "vaea-flash": {
      "command": "npx",
      "args": ["-y", "@vaea/mcp-server"]
    }
  }
}

MCP Tools

The MCP server exposes 8 tools โ€” the 5 core tools shared with all plugins, plus 3 bonus tools:

ToolTypeDescription
vaea_check_capacityCoreAvailable liquidity per token
vaea_get_quoteCoreFee breakdown for a borrow
vaea_find_best_routeCoreBest protocol + comparison
vaea_check_profitabilityCoreProfit/loss after all costs
vaea_build_flash_loanCoreBuild unsigned TX
vaea_get_protocol_statusMCP onlyHealth of each lending protocol
vaea_get_liquidity_matrixMCP onlyToken ร— Protocol capacity grid
vaea_build_sandwichMCP onlyBuild multi-token flash loan TX

MCP Resources (6)

Live data exposed as MCP resources for context injection:

URIDescription
vaea://liquidityReal-time token liquidity across all protocols
vaea://feesCurrent fee configuration and per-protocol rates
vaea://protocolsLending protocol list, status, and health
vaea://matrixFull liquidity matrix (token ร— protocol)
vaea://statsAPI usage stats and uptime
vaea://discoveryToken discovery summary

MCP Prompts (3)

Pre-built strategy prompts for common use cases:

PromptWhat It Does
flash_arbitrageGuides the agent through a full arbitrage flow: discover โ†’ route โ†’ build
flash_liquidationWalks through borrowing to liquidate an undercollateralized position
flash_collateral_swapSteps the agent through a collateral swap without closing the position

Rust Server

For lower memory and faster startup, use the native Rust binary (~4 MB, starts in milliseconds):

bash
cd mcp/rust && cargo build --release
# Binary: target/release/vaea-mcp
json
{
  "mcpServers": {
    "vaea-flash": {
      "command": "/path/to/vaea-mcp",
      "env": { "VAEA_API_URL": "https://api.vaea.fi" }
    }
  }
}
โš ๏ธ Devnet Only
Mainnet โ€” April 2026
๐Ÿ”