Docs

Morpho MCP

Morpho's hosted MCP server — query vaults, markets, and positions, and prepare unsigned transactions from any MCP-compatible agent.

Morpho MCP is Morpho's hosted, remote MCP server. It gives any MCP-compatible agent live access to Morpho vaults, markets, and positions, and lets it prepare unsigned transactions for you to review and sign.

Setup and Usage

The server is hosted, public, and read-only by design. There is nothing to install and no key to manage.

Endpointhttps://mcp.morpho.org/
TransportStreamable HTTP
AuthenticationNone — no API key, no account
Server namemorpho-mcp

Two conventions apply to protocol calls:

  • Query tools accept chain IDs. Pass exactly one of chainId or chain to morpho_query_vaults and morpho_query_markets. Prefer the numeric chainId from morpho_get_supported_chains. The legacy chain slug remains supported.
  • RPC tools require registered slugs. The get, position, and prepare tools still require chain. They accept only entries where morpho_get_supported_chains returns supportsRpcTools: true. REST-only chain IDs work only with the two query tools.
  • Discover before you write. Find a target with morpho_query_vaults or morpho_query_markets, inspect it with morpho_get_vault or morpho_get_market, then call a morpho_prepare_* tool. Never hardcode addresses.

morpho_get_supported_chains also returns supportedProtocols when Core REST provides it. Registered chains include a slug, explorer URL, and testnet status. REST-only entries can omit those fields.

A morpho_prepare_* tool returns a PreparedOperation: the transactions to sign, any requirements such as ERC-20 approvals (already included in transactions), an outcome preview of the resulting position, and a warnings array. Warnings carry a severity — an error means stop, and the transactions must not be presented for signing.

Setup Examples

Claude Code

Add the server with the claude mcp add command. The --scope user flag registers it once for every project on your machine; drop it to scope the server to the current project.

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

Confirm it connected:

claude mcp list

Inside a session, /mcp lists the connected servers and the tools each exposes.

Codex

Add the server with codex mcp add, passing --url to select the Streamable HTTP transport:

codex mcp add morpho --url https://mcp.morpho.org/

Confirm it connected:

codex mcp list

You can also declare the server in ~/.codex/config.toml to make it global, or in a trusted project's .codex/config.toml to scope it to that project:

[mcp_servers.morpho]
url = "https://mcp.morpho.org/"

Other clients

Any MCP client that speaks the Streamable HTTP transport can connect by pointing at the endpoint. In Cursor, add it to .cursor/mcp.json:

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

Tools

The server exposes eighteen tools. Read tools answer questions about protocol state or the documentation; prepare tools return unsigned transactions.

CategoryToolDescription
Utilitymorpho_health_checkCheck the server and its connected services.
Utilitymorpho_get_supported_chainsList known chains, Core protocols, and RPC-tool support.
Vaultsmorpho_query_vaultsList and sort one vault version, with asset filtering and cursor pagination.
Vaultsmorpho_get_vaultGet one vault's details.
Marketsmorpho_query_marketsList markets with REST-supported asset and listed filters and cursor pagination.
Marketsmorpho_get_marketGet one market's details.
Positionsmorpho_get_market_positionsGet positions for a user across 1–100 explicit market IDs.
Positionsmorpho_get_vault_positionsList a user's V1 or V2 vault positions with cursor pagination.
Positionsmorpho_get_token_balanceA token balance, plus whether Morpho or the Bundler still needs an approval.
Docsmorpho_doc_searchSearch the Morpho documentation by semantic similarity.
Transactionsmorpho_prepare_depositDeposit into a vault, including any approval.
Transactionsmorpho_prepare_withdrawWithdraw from a vault. Accepts "max".
Transactionsmorpho_prepare_supplySupply to a market, including any approval.
Transactionsmorpho_prepare_borrowBorrow from a market, with a health-factor check.
Transactionsmorpho_prepare_repayRepay a market borrow. Accepts "max".
Transactionsmorpho_prepare_supply_collateralSupply collateral without borrowing, including any approval.
Transactionsmorpho_prepare_withdraw_collateralWithdraw collateral. Accepts "max".
Transactionsmorpho_prepare_claim_rewardsClaim Merkl rewards against the canonical Distributor.

For product implementation and review guidance, install the separate Morpho Skills.

Vault apyPct is a realized average APY. Market supplyApyPct and borrowApyPct are 24-hour averages. All three are percentage strings from the Core REST API and exclude rewards. V2 vault fees are separate: performanceFeePct is charged against distributed interest, while managementFeeAprPct annualizes the per-second fee charged against total assets.

Both query responses always include chainId as a string. They also include chain when the ID has a registered MCP slug. Vault queries can sort by address, name, creationTimestamp, creationBlockNumber, or performanceFee. V2 queries can also sort by managementFee. Pass sortBy and sortDirection (asc or desc) together, or omit both.

Prompt Examples

Once the server is connected, ask in plain language. Your agent picks the tools.

  1. For vault 0x… on Base, show its realized average APY, TVL, curator, and fee rates. Note that the APY excludes rewards.
  2. Compare the borrow rates on the wstETH/WETH markets on Ethereum and Arbitrum.
  3. For 0x… on Base, show positions in market IDs 0x… and 0x…, and flag any health factor below 1.2.
  4. List the V2 vault positions for 0x… on Base, following every cursor page.
  5. Prepare a 1,000 USDC deposit into vault 0x… on Base for 0x…, and show me the approval and deposit transactions before I sign anything.
  6. If I borrow 1 WETH against my wstETH collateral on Ethereum, what is my health factor afterwards?
  7. Do I have claimable Merkl rewards on Base? If so, prepare the claim.
  8. Which chains does Morpho support, and what are their chain IDs?