Morpho for LangChain
org.morpho/mcp
Read Morpho vaults and markets data and prepare unsigned transactions.
client:LangChain
transport:streamable-http
tools:53
Install Morpho in LangChain
pip install langchain-mcp-adapters
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"mcp": {
"transport": "streamable_http",
"url": "https://mcp.morpho.org/",
}
})
tools = await client.get_tools()
get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs
What LangChain can do once it is connected
- morpho_health_check
- morpho_get_supported_chains
- morpho_get_token_balance
- morpho_simulate_transactions
- morpho_doc_search
- morpho_prepare_deposit
- morpho_prepare_withdraw
- morpho_prepare_supply
- morpho_prepare_borrow
- morpho_prepare_repay
- morpho_prepare_supply_collateral
- morpho_prepare_withdraw_collateral
- morpho_prepare_claim_rewards
- morpho_prepare_redeem
- morpho_prepare_redeem_in_kind
- morpho_prepare_force_withdraw
- morpho_prepare_force_redeem
- morpho_prepare_migrate_to_vault_v2
- morpho_prepare_blue_withdraw
- morpho_prepare_supply_collateral_and_borrow
- morpho_prepare_repay_and_withdraw_collateral
- morpho_prepare_refinance
- morpho_prepare_midnight_take_lend
- morpho_prepare_midnight_take_borrow