lends-mcp-server
Enables interaction with the LENDS protocol for lending, borrowing, PSM conversion, and staking, providing read-only tools and unsigned transaction construction without private key handling.
README
LENDS MCP Server
Local Model Context Protocol server for LENDS lending/borrowing, the leUSD PSM, and sleUSD staking.
The server exposes:
- on-chain protocol, market, position, token, PSM, staking, unstake, and read-only liquidation-plan tools;
- unsigned transaction construction for approvals, lending, repayment, PSM conversion, and the sleUSD stake/unstake lifecycle;
- deterministic protocol-math tools using raw integer units.
It contains no signer, accepts no private key, never broadcasts, and exposes no admin, liquidation-execution, reserve, harvest, loss, configuration, pause, ownership, upgrade, LENDS purchase, lock, liquidity, or vesting action.
Install and run
Publish or install @lendsprotocol/sdk first, then:
npm install -g @lendsprotocol/mcp-server
LENDS_RPC_URL=https://your-rpc.example lends-mcp
LENDS_RPC_URL is read from the child process environment. It is required only for on-chain read tools; transaction builders and math tools work offline. The server uses stdio, so an MCP client starts it as a local child process—there is no HTTP API or hosted LENDS service.
Example MCP client configuration:
{
"mcpServers": {
"lends": {
"command": "lends-mcp",
"env": {
"LENDS_RPC_URL": "https://your-rpc.example"
}
}
}
}
For a local checkout, use "command": "node" and "args": ["/absolute/path/to/lends-mcp-server/dist/index.js"].
Inputs and outputs
All uint256-compatible inputs are unsigned base-10 strings, not JSON numbers. This prevents precision loss:
{
"collateral": "0xd0601CE157Db5bdC3162BbaC2a2C8aF5320D9EEC",
"amount": "1000000000000000000"
}
Big integers in results are also base-10 strings. Prepared transactions contain only to, data, value, and chainId; the calling wallet must review, sign, and submit them.
Development
npm ci
npm run check
npm test
npm run build
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.