Docs

Get Started

Connect Claude Code, Codex, or Cursor to Morpho — query vaults, markets, and positions, and prepare unsigned transactions from your agent.

Morpho Agents gives an AI agent structured access to the Morpho protocol. Ask it for a vault's realized average APY, a market's borrow rate, or a wallet's health factor, and it answers from live onchain and API data. Ask it to deposit, borrow, or repay, and it hands back an unsigned transaction for you to review and sign.

Quickstart

To try Morpho from a chat client or coding agent, the shortest path is the hosted MCP server. It needs no account, no API key, and nothing to install — point your agent at https://mcp.morpho.org/ and it can read Morpho.

claude mcp add morpho --scope user --transport http https://mcp.morpho.org/
codex mcp add morpho --url https://mcp.morpho.org/

Add the server to .cursor/mcp.json:

{ "mcpServers": { "morpho": { "type": "http", "url": "https://mcp.morpho.org/" } } }

Then ask your agent a question:

For vault 0x… on Base, what are its realized average APY, TVL, curator, and fee rates?

For per-client setup, the full tool reference, and more prompts, see Morpho MCP.

Two ways to connect

Morpho MCP and Morpho Skills serve different tasks. Use the hosted server to query the protocol or prepare unsigned transactions in a conversation. Install the skills when an agent is building, updating, or reviewing product code.

Morpho MCPMorpho Skills
How the agent uses itTool calls to a hosted serverLocal product guidance, references, and review checkers
SetupConnect to https://mcp.morpho.org/npx skills add morpho-org/morpho-skills
Best forLive queries and unsigned transactionsBuilding and reviewing Earn and Borrow products

The earn-integration and borrow-integration skills each include build/update and review modes. They cover current data sources, SDK transaction flows, product UI, safety checks, and evidence-based pre-launch reviews.

What your agent can do

Read — list and inspect vaults and markets, fetch a user's positions and token balances, and check which chains are supported.

Prepare — build unsigned transactions for vault deposits and withdrawals, market supply, borrow, and repay, collateral supply and withdrawal, and rewards claims.

Morpho Agents works across every chain Morpho is deployed on. Rather than hardcoding a list that will drift, ask your agent to call morpho_get_supported_chains — it returns each chain's name and whether Morpho Blue, Morpho Vaults and Midnight are supported there.

Production reads over REST

Morpho Agents isn't ready for production systems yet. For an agent or backend tool that needs deterministic, versioned reads today, call the public REST API at https://api.morpho.org directly. It needs no API key. To read a wallet's indexed positions, call these four lists and follow cursor until it is null. Omit chain_ids to cover every chain. By default the Blue and vault lists return only active positions. Add active_only=false to include exited ones, for example before reading their earnings. The Midnight list returns only current positions, and active_only=true there also drops matured markets:

The vault lists return both shares and assets. The Blue list returns supply_shares and borrow_shares, not asset amounts, plus collateral_assets: convert shares with the market's /v0/blue/markets/{market-selector}/state totals and Morpho Blue's virtual offsets: supply assets = supply_shares × (total_supply_assets + 1) / (total_supply_shares + 1e6) rounded down, and borrow assets = borrow_shares × (total_borrow_assets + 1) / (total_borrow_shares + 1e6) rounded up, in BigInt. Earnings are read per position, not per wallet: use each vault's or market's /users/{user-address}/position/performance route. See Migrate from GraphQL for more REST recipes.

Next steps

  • Morpho MCP — endpoint details, per-client setup, the full tool table, and prompt examples.
  • Morpho Skills — install the Earn and Borrow builder skills, and see when to use each mode.
  • Using LLMs — feed these docs to an agent as plain Markdown.