MetaLend for LangChain
io.github.rabeles11/metalend
Browse, deposit, withdraw & rebalance stablecoins on Aave, Morpho & Euler across major EVM chains.
client:LangChain
transport:streamable-http
tools:19
Install MetaLend in LangChain
pip install langchain-mcp-adapters
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"metalend": {
"transport": "streamable_http",
"url": "https://mcp.metalend.tech/mcp",
}
})
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
- list_pools
- get_balances
- get_bridge_balances
- get_config
- get_default_config
- get_rewards
- get_transaction_costs
- get_token_info
- get_withdrawal_version
- get_auth_challenge
- submit_auth_verify
- prepare_deposit
- submit_deposit
- get_deposit_status
- prepare_withdrawal
- submit_withdrawal
- get_withdrawal_status
- prepare_config
- submit_config