Morpho API MCP Server
The Morpho API MCP Server enables interaction with Morpho's GraphQL API to query and analyze financial data with the following capabilities:
Market Data: Retrieve markets with pagination, filtering, and ordering options; access whitelisted markets, market positions, historical APY, and oracle details
Vault Management: View vault states, positions, transactions, allocations, reallocations, and historical APY
Asset Information: Get current prices and yield insights for assets
Account Data: Access account overviews including positions and transaction history
Liquidation Events: Retrieve and filter liquidation data
Advanced Features: Comprehensive pagination, filtering, sorting, data validation, and error handling using Zod for schema validation
Enables querying Morpho's GraphQL API for market data, vaults, positions, and other financial information
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Morpho API MCP Server get historical APY data for vaults from the last 30 days"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Morpho API MCP Server
A Model Context Protocol (MCP) server that provides tools for querying the Morpho API. This server enables Claude to interact with Morpho's GraphQL API, providing access to market data, vaults, positions, and more.
Features
Query Morpho markets data through GraphQL
Full support for vaults, positions, and transactions
Historical APY data and oracle information
Comprehensive pagination, ordering, and filtering options
Data validation using Zod schemas
Error handling and type safety
MCP-compliant server implementation
Related MCP server: TrueRAG MCP Server
Installation
Install the package:
npm install mcp-morpho-serverAdd to your Claude Desktop configuration:
{
"tools": {
"morpho": {
"command": "node",
"args": [
"/path/to/node_modules/mcp-morpho-server/build/index.js"
]
}
}
}Available Tools
Markets
get_markets: Retrieve all markets with pagination and filteringget_whitelisted_markets: Get only whitelisted marketsget_market_positions: Get positions for specific marketsget_historical_apy: Get historical APY dataget_oracle_details: Get oracle information
Vaults
get_vaults: Get all vaults with their current statesget_vault_positions: Get positions for specific vaultsget_vault_transactions: Get vault transaction historyget_vault_allocation: Get vault market allocationsget_vault_reallocates: Get vault reallocation historyget_vault_apy_history: Get historical APY data for vaults
Assets and Accounts
get_asset_price: Get current price and yield informationget_account_overview: Get account positions and transactionsget_liquidations: Get liquidation events
Development
The project is written in TypeScript and uses:
@modelcontextprotocol/sdk for MCP server implementation
axios for API requests
zod for schema validation
To build from source:
Clone the repository
git clone https://github.com/crazyrabbitLTC/mcp-morpho-server.gitInstall dependencies:
npm installBuild the project:
npm run buildContributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
ISC
Author
Created by [Your Name] (<your@email>)
Available Tools
14 toolsget_account_overviewC
Get account overview including positions and transactions.
Inputs: address (required), chainId.
get_asset_priceC
Get current price and yield information for specific assets.
Inputs: symbol (required), chainId, first, skip.
get_historical_apyC
Get historical APY data for a specific market.
Inputs: endTimestamp (required), interval (required), marketUniqueKey (required), startTimestamp (required), +1 more.
get_liquidationsC
Get liquidation events with filtering and pagination.
Inputs: endTimestamp, first, marketUniqueKeys, orderBy, +3 more.
get_market_positionsB
Get positions overview for specific markets with pagination and ordering.
Inputs: marketUniqueKey (required), first, orderBy, orderDirection, +1 more.
get_marketsB
Retrieves markets from Morpho with pagination, ordering, and filtering support.
Inputs: first, orderBy, orderDirection, skip, +1 more.
get_oracle_detailsC
Get oracle details for a specific market.
Inputs: marketUniqueKey (required), chainId.
get_vault_allocationC
Get vault allocation for a specific market.
Inputs: address (required), chainId.
get_vault_apy_historyC
Get historical APY data for a vault.
Inputs: address (required), options (required).
get_vault_positionsC
Get positions for a specific vault.
Inputs: vaultAddress (required), first, orderBy, orderDirection, +1 more.
get_vault_reallocatesC
Get vault reallocates for a specific vault.
Inputs: vaultAddress (required), first, orderBy, orderDirection, +1 more.
get_vaultsC
Retrieves all vaults with their current states.
Inputs: first, orderBy, orderDirection, skip.
get_vault_transactionsC
Get latest vault transactions.
Inputs: first, orderBy, orderDirection, skip, +1 more.
get_whitelisted_marketsB
Retrieves only whitelisted markets from Morpho.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 14 tools
Most tools have distinct purposes targeting different resources like accounts, markets, vaults, and specific data types (e.g., prices, APY, liquidations). However, some overlap exists between get_markets and get_whitelisted_markets, which could cause confusion as both retrieve market data with similar filtering capabilities.
All tools follow a consistent snake_case naming pattern with a clear 'get_' prefix followed by a descriptive noun phrase (e.g., get_account_overview, get_historical_apy). This uniformity makes the toolset predictable and easy to navigate.
With 14 tools, the server is well-scoped for its purpose of providing comprehensive data access to Morpho's DeFi platform. Each tool serves a specific, necessary function covering accounts, markets, vaults, and historical data without appearing bloated or sparse.
The toolset offers extensive read-only coverage for querying account details, market data, vault information, and historical metrics like APY and transactions. A minor gap exists in the lack of write or action-oriented tools (e.g., for interacting with positions or vaults), but this may be intentional for a data-focused server.
Maintenance
Related MCP Connectors
Official Aave MCP for V3 and V4 markets, positions, governance, and transaction preparation.
Historical tick, order book and settlement data for Polymarket and Predict.fun crypto up/down markets, plus smart-money lists and backtest quotes, over a read-only MCP server.
The Grafbase MCP server sits in front of a GraphQL API and exposes an MCP protocol-compliant interface that allows AI agents and LLMs to explore and query GraphQL APIs using natural language. It provides tools to search schemas, introspect types and fields, and execute GraphQL queries while minimizing context bloat by returning only relevant schema subsets, with built-in support for authentication, authorization, and configurable access control.
The Graph MCP — indexed blockchain data via subgraph GraphQL queries
Related MCP Servers
- MIT
- FlicenseNot gradedqualityDmaintenanceEnables interaction with a TrueRAG system through a GraphQL API using the Model Context Protocol (MCP), facilitating access to policies with a Python SDK and GQL library integration.2-
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that enables LLMs to interact with GraphQL APIs by providing schema introspection and query execution capabilities.938 npm3MIT
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that enables LLMs to interact with GraphQL APIs by providing schema introspection and query execution capabilities.11 npmMIT