MCP โ Flash Loans for AI Agents
The VAEA MCP Server gives AI agents (Claude, Cursor, ElizaOS, GPT) direct access to flash loan liquidity on Solana. Discover pools, simulate strategies, and build atomic transactions โ all through the standard Model Context Protocol.
What is VAEA MCP
An MCP server is a standard interface that lets AI agents call tools, read resources, and use prompts. VAEA's MCP server exposes flash loan operations as tools that any MCP-compatible AI agent can invoke.
The agent doesn't need to understand Solana transactions, PDAs, or lending protocols. It calls vaea_get_capacity to discover available liquidity, vaea_find_best_route to plan its strategy, and vaea_build_flash_loan to get a ready-to-sign transaction.
How It Works
Tools Overview
The MCP server exposes 8 tools, 6 resources, and 3 prompts.
| Tool | Category | What It Does |
|---|---|---|
| vaea_get_capacity | ๐๏ธ Eyes | Available liquidity per token across all protocols |
| vaea_get_quote | ๐๏ธ Eyes | Fee breakdown for a specific borrow |
| vaea_find_best_route | ๐๏ธ Eyes | Best protocol + confidence score |
| vaea_check_profitability | ๐๏ธ Eyes | Net profit after all costs |
| vaea_get_protocol_status | ๐๏ธ Eyes | Protocol health (active/paused) |
| vaea_get_liquidity_matrix | ๐๏ธ Eyes | Full token ร protocol breakdown |
| vaea_build_flash_loan | ๐คฒ Hands | Build unsigned flash loan TX |
| vaea_build_sandwich | ๐คฒ Hands | Build multi-token sandwich TX |
Security Model
Packages
| Package | Language | Install |
|---|---|---|
| @vaea/mcp-server | TypeScript | npx @vaea/mcp-server |
| vaea-mcp (binary) | Rust | cargo install vaea-mcp |
Both implementations expose the exact same 8 tools, 6 resources, and 3 prompts. Use TypeScript for quick setup, Rust for performance-critical deployments.