leverage — Claude Code MCP server: Morpho strategy data
Feeds your agent Morpho leveraged-yield strategies: the list, APY and LTV numbers. Read-only, no signing.
claude mcp add --transport http leverage https://api.spiralstake.xyz/mcpWhat leverage does
The server composes strategy data for Morpho leveraged-yield positions and serves it over MCP. Under the hood: a TypeScript composition core, adapters for upstreams such as DeFiLlama, Pendle, Royco and StableWatch, a two-layer cache and a background warmer. Reads never hit upstreams directly. They take warmed data, and when a source fails the last good value comes back with a visible stale age.
The data sits behind endpoints for strategies, borrow-rate history, collateral APY history, prices, charts and protocol TVL. An OpenAPI 3.1 spec lives at /openapi.json, plus /health and /ready. You connect it at https://api.spiralstake.xyz/mcp.
It is read-only: contract writes, transaction building and signing are not part of it. Running it locally means a .env file with RPC and API keys, plus Node.js and npm. Transaction building and partner auth are left for later steps.
What it helps with
- list leveraged-yield strategies on Morpho
- compare APY across 30, 60 and 90 day windows
- pull borrow-rate history for one market
- fetch token prices and charts for calculations
- read protocol TVL across supported chains
Example prompts for the agent
- List Morpho strategies with the highest 90-day APY
- Show borrow-rate history for market
0x... - What is the protocol TVL and how many positions does it hold?
How to install leverage
Platform CLI: remote server
claude mcp add --transport http leverage https://api.spiralstake.xyz/mcpPlatform CLI: remote server
codex mcp add leverage --url https://api.spiralstake.xyz/mcpConfig file
{
"mcpServers": {
"leverage": {
"url": "https://api.spiralstake.xyz/mcp"
}
}
}Config file
{
"servers": {
"leverage": {
"type": "http",
"url": "https://api.spiralstake.xyz/mcp"
}
}
}Platform CLI: remote server
gemini mcp add -t http leverage https://api.spiralstake.xyz/mcpStep by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about leverage
How do I install leverage in Claude Code?
Run claude mcp add --transport http leverage https://api.spiralstake.xyz/mcp.
What does leverage do?
It gives your agent Morpho leveraged-yield strategy data: the strategy list, APY, LTV, rate history, prices and protocol TVL. Read-only.
Can it build and sign a transaction?
No. The server is read-only; transaction building, contract writes and signing are out of scope.