API Tools
morpho.org
An MCP server exposing Morpho protocol tools for health checks, supported chains, token balances, transaction simulation, and documentation search.
ENDPOINT 1
https://mcp.morpho.org
MCP server metadata
- Name
- org.morpho/mcp
- Version
- d6ff00e
You are connected to the Morpho MCP server. Morpho is a lending protocol with Morpho Markets (isolated variable-rate markets, also called Morpho Blue), Vaults V1 and Vaults V2 (which allocate deposits across markets), and Midnight fixed-rate markets. ## Tool Composition Follow this workflow for any write operation: 1. **Discover** — Use `morpho_query_vaults` or `morpho_query_markets` to find targets. Never hardcode addresses. 2. **Inspect** — Use `morpho_get_vault` or `morpho_get_market` for one target. For user positions, use `morpho_get_vault_positions` or `morpho_get_market_positions`. 3. **Prepare** — Use a `morpho_prepare_*` tool to build unsigned transactions. Actions-backed tools return their result under `data`: if `data.status` is `signature_required`, have the user sign each `data.signatures[].typed_data`, then call the same tool again as its description explains; a finished result lists the calls in `data.calls`. `morpho_prepare_claim_rewards`, and any prepare result without `data`, returns a `PreparedOperation` with `transactions`, `requirements`, `outcome` (preview-derived post-state estimate), and `warnings`. 4. **Simulate before signing** — run `morpho_simulate_transactions` with `mode: "final"` on the calls a prepare tool returned, or on signed transactions, with the prepare tool's `simulation_limits` as `limits` when present (otherwise `limits` for the user's action). Treat `status: "failed"` as HALT and show `error`. 5. **Present** — Show the summary and calls to the user. For Actions-backed results, check `data.simulation.status`; if `failed`, show `data.simulation.failure` and HALT, and don't present calls after `data.expires_at`. For a `PreparedOperation`, show its `transactions` and `outcome`, and flag any warnings before they sign. ## Key Rules - **Select targets with selectors** — `morpho_get_vault` and Actions-backed vault prepare tools take a `vault-selector` formatted as `<chainId>:<vaultAddress>`. Market read and Actions-backed prepare tools take a `market-selector` formatted as `<chainId>:<marketId>`. Midnight market IDs are unique across chains, so Midnight tools take a `market-id` with no chain ID. The vault list uses `chain_ids`; other list tools take their API's chain-ID filters. Prepare tools that return a `PreparedOperation` take a `chain` slug and a plain address or market ID instead. - **Use registered slugs for RPC tools** — tools with a `chain` input (such as `morpho_get_token_balance` and `morpho_prepare_claim_rewards`) require one of: "ethereum", "base", "arbitrum", "optimism", "polygon", "unichain", "worldchain", "katana", "hyperevm", "monad", "stable". Targets on other chains can be read with the generated tools but not used with these. - **Rank vaults from list results** — `morpho_query_vaults` returns net APY, total assets, and liquidity in USD for V1 and V2 vaults. Apply the requested filters and paginate before comparing candidates. - **Curator names** — use a curator name only when a tool response includes one. - **Docs lookup** — use `morpho_doc_search` to answer conceptual questions (protocol mechanics, integration guides, terminology) from the official Morpho documentation instead of guessing. - **Never assume token decimals** — USDC/USDT use 6 decimals, WETH/DAI use 18. Read decimals from tool responses. - **Approvals precede operations** — Actions-backed prepare tools return `data.calls` and may return `data.signatures`. A `PreparedOperation` returns `requirements` and `transactions`, with approval transactions included. - **USDT needs allowance reset** — approve to 0 before setting a new allowance. The prepare tools handle this automatically. - **DAI does not support Permit** — use standard ERC20 approve only. - **Health factor < 1.0 = liquidatable** — warn the user immediately if any Blue borrow position is near this threshold. Read `health_factor` from `morpho_get_market_positions`; do not infer it when the response omits it. - **Unsigned only** — this server never signs or broadcasts. Write tools return unsigned transaction payloads. - **Outcome is a preview, not a guarantee** — a `PreparedOperation`'s `outcome` reflects SDK math at prepare time. Operations may still revert at broadcast (insufficient balance, allowance, or market liquidity). - **Simulation field (`simulation`)** — in a `PreparedOperation`, when present, lists the verified ERC-20/native transfers a successful simulation observed. Absent when the simulator skipped or failed; the failure surfaces as a `warnings` entry. `error`-level simulation warnings still mean HALT. - **Respect warning severity** — `PreparedOperation` warnings appear in `warnings`: - `error`: HALT. Do not present transactions for signing. Explain the risk and suggest next steps. - `warning`: Present transactions but prominently flag the warning. The user must acknowledge before proceeding. - `info`: Include in the summary for transparency. No action needed.
Known tools 53
morpho_health_checkCheck the health status of the MCP server and connected services
Inferred read-onlymorpho_get_supported_chainsList every chain the Morpho MCP serves, by name, with whether Morpho Blue markets, Morpho Vaults (V1 or V2) and Midnight are supported on it.
Inferred read-onlymorpho_get_token_balanceGet token balance and whether the user needs to approve Morpho or the Bundler before writing.
Inferred read-onlymorpho_simulate_transactionsSimulate transactions on the latest block with eth_simulateV1 and check them against the limits of the Morpho action the user is taking, without sending anything.
Inferred read-onlymorpho_prepare_supply_collateralPrepare a supply of collateral tokens to a Morpho Blue market without borrowing.
Inferred read-onlymorpho_prepare_withdraw_collateralPrepare a withdrawal of collateral tokens from a Morpho Blue market position.
Inferred read-onlymorpho_prepare_claim_rewardsFetch a user's claimable Merkl rewards and prepare a single claim transaction against the canonical Merkl Distributor (0x3Ef3D8bA38EBe18DB133cEc108f4D14CE00Dd9Ae).
Inferred read-onlymorpho_prepare_redeemPrepare a share-based redemption from a Morpho Vault V1 or V2.
Inferred read-onlymorpho_prepare_redeem_in_kindPrepare an in-kind redemption from a Morpho Vault V1 or V2, exiting through its underlying Blue markets.
Inferred read-onlymorpho_prepare_force_redeemPrepare a Vault V2 share redemption after user-directed market deallocations.
Inferred read-onlymorpho_prepare_migrate_to_vault_v2Prepare migration of shares from a Vault V1 into a Vault V2 with the same underlying asset.
Inferred read-onlymorpho_prepare_blue_withdrawPrepare a supply-side withdrawal from a Morpho Blue market.
Inferred read-onlymorpho_prepare_supply_collateral_and_borrowPrepare one transaction that supplies collateral and borrows from a Morpho Blue market, including when the user has no collateral on-chain yet.
Inferred read-onlymorpho_prepare_repay_and_withdraw_collateralPrepare a combined Morpho Blue debt repayment and collateral withdrawal.
Inferred read-onlymorpho_prepare_refinancePrepare a full migration of a Morpho Blue borrow position into a destination market with matching loan and collateral tokens.
Inferred read-onlymorpho_prepare_midnight_take_lendPrepare a fixed-rate lend on a Midnight market by taking the best ask offers through MidnightBundlesV2.
Inferred read-onlymorpho_prepare_midnight_take_borrowPrepare a fixed-rate borrow on a Midnight market against collateral already supplied, by taking the best bid offers through MidnightBundlesV2.
Inferred read-onlymorpho_prepare_midnight_supply_collateral_take_borrowPrepare supplying collateral and a fixed-rate borrow on a Midnight market in one MidnightBundlesV2 transaction, taking the best bid offers.
Inferred read-onlymorpho_prepare_midnight_take_withdrawPrepare exiting a Midnight lend position before maturity: redeems withdrawable credit, then sells the rest to the best bid offers through MidnightBundlesV2.
Inferred read-onlymorpho_prepare_midnight_take_repay_withdraw_collateralPrepare repaying Midnight debt before maturity by buying back units from the best ask offers, then optionally withdrawing collateral, in one MidnightBundlesV2 transaction.
Inferred read-onlymorpho_prepare_midnight_supply_collateralPrepare supplying collateral to a Midnight market directly on Midnight.
Inferred read-onlymorpho_prepare_midnight_redeemPrepare redeeming Midnight lend credit for loan tokens, limited to what the market can pay out now.
Potential side effectsmorpho_prepare_midnight_repay_withdraw_collateralPrepare repaying Midnight debt at face value, withdrawing collateral, or both, in one MidnightBundlesV2 transaction.
Inferred read-onlymorpho_prepare_midnight_cancel_offersPrepare cancelling a maker's Midnight offer groups through MidnightBundlesV2.
Inferred read-onlymorpho_prepare_midnight_set_authorizationPrepare authorizing or revoking MidnightBundlesV2 on Midnight for the user.
Inferred read-onlymorpho_get_vaultGet one Morpho vault (V1 or V2) by vault selector `<chainId>:<vaultAddress>`.
Inferred read-onlymorpho_query_vaultsList Morpho vaults (V1 and V2) with net APY, total assets and liquidity in USD, curators, warnings, and `version`.
Inferred read-onlymorpho_get_vault_positionsList a user's Morpho V1 and V2 vault positions with portfolio totals.
Inferred read-onlymorpho_query_marketsList Morpho Blue markets, filterable by chain, loan token and collateral token.
Inferred read-onlymorpho_get_market_positionsList a user's Morpho Blue market positions, filterable by chain.
Inferred read-onlymorpho_midnight_list_user_positionsCursor-paginated list of a user's current Midnight positions.
Inferred read-onlymorpho_midnight_list_market_positionsCursor-paginated list of current Midnight positions for a market.
Inferred read-onlymorpho_midnight_get_user_positionDetail lookup for a single position by `(market-id, user-address)`.
Inferred read-onlymorpho_midnight_get_user_position_performancePerformance-only lookup for a single position by `(market-id, user-address)`.
Inferred read-onlymorpho_midnight_get_offer_groupReturns every offer group matching the onchain group id, regardless of lifecycle status.
Inferred read-onlymorpho_midnight_list_user_offer_groupsCursor-paginated list of a user's offer groups with nested offers.
Inferred read-onlymorpho_midnight_list_booksReturns books for active maturities admitted by the current policy, with market metadata and the top 3 ask/bid levels.
Inferred read-onlymorpho_midnight_get_bookReturns one active book whose maturity is admitted by the current policy, with market metadata and both sides.
Inferred read-onlymorpho_midnight_get_book_sideReturns one side of a book as price levels grouped by tick with total units, assets, and price, sorted best price first.
Inferred read-onlymorpho_midnight_get_book_side_takeable_offersReturns up to 1,000 executable offers for one book side, sorted best price first.
Inferred read-onlymorpho_midnight_get_book_quoteReturns a bundle-ready quote for the requested assets or units, plus expected best/worst average prices and maximum executable liquidity.
Inferred read-onlyCONNECT WITH APPROVAL
Client installation
Review this server and its permissions before adding it. Secret placeholders must be set locally.
Codex
~/.codex/config.toml
[mcp_servers.org-morpho-mcp]
url = "https://mcp.morpho.org"
enabled = true
Claude Code
.mcp.json
{
"mcpServers": {
"org-morpho-mcp": {
"type": "http",
"url": "https://mcp.morpho.org"
}
}
}
Claude Desktop
Settings → Connectors → Add custom connector
Name: org-morpho-mcp
Remote MCP URL: https://mcp.morpho.org
Add this remote URL as a custom connector in Claude Desktop. Availability depends on the user plan and workspace policy.
Cursor
.cursor/mcp.json
{
"mcpServers": {
"org-morpho-mcp": {
"url": "https://mcp.morpho.org"
}
}
}
Visual Studio Code
.vscode/mcp.json
Add to Visual Studio Code{
"servers": {
"org-morpho-mcp": {
"type": "http",
"url": "https://mcp.morpho.org"
}
}
}
Generic MCP
Client-specific MCP configuration
{
"name": "org-morpho-mcp",
"transport": "streamable-http",
"url": "https://mcp.morpho.org"
}
MCP Inspector
Run the official MCP Inspector locally and enter the indexed Streamable HTTP endpoint.
TRUST AND VERIFICATION EVIDENCE
Loading Trust v2 evidence…
Checking the associated registrable domain. The BuiltWith key remains server-side.
Evidence is source-attributed and does not guarantee that a third-party server is safe. Risk labels are conservative metadata heuristics.