@breezebaby/mcp-server
v1.0.0
Published
Breeze yield aggregator MCP server for Claude and other AI agents
Readme
mcp
MCP server (stdio) for Breeze strategy operations on Solana.
This service exposes Breeze tools to MCP clients (for example Cursor) and handles:
- Strategy info and APY lookup
- Balance/position checks for the configured wallet
- Unsigned deposit/withdraw transaction creation
- Local signing + broadcast for returned transactions
Environment
Create apps/mcp/.env with:
BREEZE_API_KEY=...
WALLET_PRIVATE_KEY=... # base58-encoded secret key
# Optional:
BREEZE_STRATEGY_ID=43620ba3-354c-456b-aa3c-5bf7fa46a6d4
SOLANA_RPC_URL=https://api.mainnet-beta.solana.comRequired:
BREEZE_API_KEYWALLET_PRIVATE_KEY
Optional:
BREEZE_STRATEGY_ID(defaults to the strategy above)SOLANA_RPC_URL(defaults to Solana mainnet public RPC)
Tools
get_strategy_info- returns strategy metadata and APY breakdowncheck_balances- returns current Breeze positions for the configured walletget_deposit_tx- creates an unsigned base64 deposit transactionget_withdraw_tx- creates an unsigned base64 withdraw transactionsign_and_send_tx- signs and sends a base64 transaction
Project Structure
src/index.ts- MCP server bootstrap and transport wiringsrc/tools/register-breeze-tools.ts- Breeze MCP tool registration/handlerssrc/lib/config.ts- env/config loading and SDK/connection setupsrc/lib/tokens.ts- token metadata and symbol/mint resolutionsrc/lib/amounts.ts- amount conversion and formatting helperssrc/lib/results.ts- common MCP text/json/error response helpers
Development
From this directory:
bun run devOr from the repo root:
bun run --filter mcp devScripts
bun run dev- run with Bun watch modebun run build- compile TypeScript todistbun run start- run compiled MCP stdio serverbun run check- TypeScript no-emit checkbun run test- Node test runner
Test With Claude Desktop (Local)
- Create env file:
cp .env.example .env- Fill required values in
apps/mcp/.env:
BREEZE_API_KEYWALLET_PRIVATE_KEY
- Build once:
bun run build- Get your Node binary path:
which nodeUse that exact absolute path in Claude config.
- Add this MCP server to Claude Desktop config (macOS):
~/Library/Application Support/Claude/claude_desktop_config.json
"breeze": {
"command": "node",
"args": ["-y", "@breezebaby/mcp-server"],
"env": {
"BREEZE_API_KEY": "your-breeze-api-key",
"BREEZE_STRATEGY_ID": "strategy-id",
"WALLET_PRIVATE_KEY": "your-private-key",
"SOLANA_RPC_URL": "https://api.mainnet-beta.solana.com"
}
}Restart Claude Desktop.
In Claude, run a quick smoke test prompt, for example:
- "Use
get_strategy_info." - "Use
check_balancesfor my configured wallet."
If tools do not appear:
- Confirm
commandmatcheswhich node. - Confirm
DOTENV_CONFIG_PATHpoints to your real.envfile. - Confirm
bun run buildwas run anddist/index.jsexists. - Avoid
devfor Claude MCP.
