- Home
- MCP servers
- Morpho API
Morpho API
- typescript
0
GitHub Stars
typescript
Language
7 months ago
First Indexed
3 months ago
Catalog Refreshed
Documentation & install
Readme and setup notes from the catalogue, plus a client-ready config you can copy for your MCP host.
Installation
Add the following to your MCP client configuration file.
Configuration
View docs{
"mcpServers": {
"mcp-mirror-crazyrabbitltc_mcp-morpho-server": {
"command": "node",
"args": [
"/path/to/node_modules/mcp-morpho-server/build/index.js"
]
}
}
}You can run the Morpho API MCP Server to query Morpho's GraphQL data and expose markets, vaults, positions, APY history, and more to your MCP client. This server provides structured, queryable access with type safety and proper error handling so you can build reliable integrations with Morpho data.
How to use
Launch the MCP server locally and connect your MCP client to the running process. The server exposes a set of tools you can call to retrieve markets, vaults, asset prices, and account information, with support for pagination, filtering, and historical data. Use the client to request data such as market lists, vault allocations, historical APY data, and oracle details, then process responses in your application.
How to install
Prerequisites you need on your system before installing:
- Node.js (version 14.x or later) is installed and available on your PATH.
Install the MCP Morpho Server package.
npm install mcp-morpho-server
Configuration and run details
Configure your MCP client to run the Morpho MCP Server with a local stdio process. The example below shows how to start the server as a local process so your client can spawn and communicate with it.
{
"tools": {
"morpho": {
"command": "node",
"args": [
"/path/to/node_modules/mcp-morpho-server/build/index.js"
]
}
}
}
Available tools and what you can query
You can access a wide range of data through the server. Important capabilities include querying Morpho markets, vaults, and assets, as well as getting positions, transactions, APY history, and oracle details. The server supports pagination, ordering, and filtering to focus on specific data slices.
Notes and tips
-
The server uses TypeScript for implementation and provides type-safe responses with Zod validation to catch invalid data early.
-
If you encounter connectivity or data issues, verify that the MCP server process is running and your client is configured to point to the correct local stdio channel.
Available tools
get_markets
Retrieve all markets with pagination and filtering.
get_whitelisted_markets
Get only whitelisted markets.
get_market_positions
Get positions for specific markets.
get_historical_apy
Get historical APY data.
get_oracle_details
Get oracle information.
get_vaults
Get all vaults with their current states.
get_vault_positions
Get positions for specific vaults.
get_vault_transactions
Get vault transaction history.
get_vault_allocation
Get vault market allocations.
get_vault_reallocates
Get vault reallocation history.
get_vault_apy_history
Get historical APY data for vaults.
get_asset_price
Get current price and yield information.
get_account_overview
Get account positions and transactions.
get_liquidations
Get liquidation events.