Agents

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 net 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.

Morpho Agents is experimental and pre-v1.0. Tool schemas, command syntax, and behavior may change without notice. Do not build production systems against it yet.

Quickstart

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:

What is the highest net-APY USDC vault on Base right now?

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

Two ways to connect

Both routes reach the same protocol surface — the same sixteen read and prepare operations. They differ in how your agent calls them.

Morpho MCPMorpho CLI & Skills
How the agent calls itTool calls to a hosted serverShell commands in your terminal
InstallNothing@morpho-org/cli, via npm or npx
Best forFastest setup, and any MCP-capable clientPiping JSON into jq, scripts, and CI

Skills add something the MCP does not cover: morpho-builder teaches a code-generation agent to write Morpho integrations, rather than operate on the protocol conversationally.

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.

Prepare operations return unsigned transaction payloads. Nothing signs and nothing broadcasts — you always review and submit the transaction yourself. Treat every payload as untrusted until you have read it.

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 slug, chain ID, and explorer URL.

Next steps

  • Morpho MCP — endpoint details, per-client setup, the full tool table, and prompt examples.
  • Morpho CLI & Skills — install the CLI, add the morpho-cli and morpho-builder skills, and see what each is for.
  • Using LLMs — feed these docs to an agent as plain Markdown.

On this page