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
Installation
- Install the package:
- Add to your Claude Desktop configuration:
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
- Install dependencies:
- Build the project:
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
ISC
Author
Created by [Your Name] (<your@email>)
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Tools
支持与 Morpho GraphQL API 交互,提供通过模型上下文协议 (MCP) 服务器访问市场数据、保险库、头寸和交易的工具。
Related Resources
Related MCP Servers
- AsecurityAlicenseAqualityMCP for working with GraphQL servers.Last updated -2431263MIT License
- -securityAlicense-qualityA Model Context Protocol server that enables LLMs to interact with GraphQL APIs by providing schema introspection and query execution capabilities.Last updated -4311MIT License
- -securityFlicense-qualityA Model Context Protocol server that enables LLMs to interact with GraphQL APIs by providing schema introspection and query execution capabilities.Last updated -4
- AsecurityAlicenseAqualityGraphQL MCP Server that acts as a bridge allowing MCP clients (like Cursor or Claude Desktop) to interact with target GraphQL APIs through standard tools for schema introspection and operation execution.Last updated -273MIT License