logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

mcp-morpho-gateway

Interface with Morpho's decentralized finance protocol via its GraphQL endpoint. This tool facilitates comprehensive retrieval of on-chain metrics, including asset configurations, collateral structures, and transaction histories, with robust support for advanced query parameters like temporal ranges, result set segmentation, and data sorting.

Author

mcp-morpho-gateway logo

crazyrabbitLTC

No License

Quick Info

GitHub GitHub Stars 0
NPM Weekly Downloads 0
Tools 1
Last Updated 2026-02-19

Tags

apisgraphqlapimorpho graphqlgraphql apiquery morpho

Morpho Protocol Access Conduit (MCP) Gateway

This implementation serves as an MCP component engineered to interface directly with the Morpho lending protocol's official GraphQL data access layer. It empowers the model to execute sophisticated data retrieval operations concerning market dynamics, user collateral pools (vaults), and individual holdings (positions).

Core Capabilities

  • Execute GraphQL queries against the Morpho data surface.
  • Access granular details regarding all platform assets, managed vaults, and user-specific positions.
  • Retrieve time-series data for performance indicators, such as annualized percentage yield (APY), and associated oracle feeds.
  • Built-in mechanisms for segmenting large result sets (pagination), controlling result order, and applying specific data filters.
  • Adherence to strong data typing and validation protocols via integrated Zod schemas.
  • Robust error management and type-safe interactions.
  • Full compliance with the Model Context Protocol server specification.

Deployment Instructions

  1. Install the requisite package: bash npm install mcp-morpho-server

  2. Integrate into your operational environment configuration (e.g., Claude Desktop manifest):

{ "tools": { "morpho_data_access": { "command": "node", "args": [ "/path/to/node_modules/mcp-morpho-server/build/index.js" ] } } }

Function Library Reference

Market Metrics

  • fetch_all_markets: Obtain the complete registry of tradable markets, supporting pagination and filtering logic.
  • get_approved_markets: Secure only markets explicitly sanctioned for operation.
  • query_market_holdings: Retrieve specific user positions within defined market contexts.
  • fetch_historical_yield: Access time-sequenced data for APY calculations.
  • resolve_oracle_feeds: Detail the underlying data sources feeding oracle values.

Vault Management

  • list_all_vaults: Retrieve current operational statuses for all protocol vaults.
  • examine_vault_positions: Detail the asset distribution within selected vaults.
  • retrieve_vault_ledger: Access the chronological record of all vault-related transactions.
  • view_vault_asset_mix: Determine how assets are allocated across different market exposures within a vault.
  • track_vault_rebalancing: Log events corresponding to vault capital movements.
  • get_vault_performance_timeline: Analyze the historical APY trajectory for specific vaults.

Asset & User Data

  • get_asset_valuation: Fetch real-time price feeds and current yield parameters for an asset.
  • summarize_user_portfolio: Obtain a consolidated view of an account's assets and historical movements.
  • report_liquidation_events: Access records detailing recent protocol liquidations.

Implementation Details

The underlying stack leverages: * @modelcontextprotocol/sdk for framework adherence. * axios for reliable HTTP transport layer interactions. * zod for rigorous data contract validation.

To compile from source code:

  1. Clone the source repository: bash git clone https://github.com/crazyrabbitLTC/mcp-morpho-server.git

  2. Install required Node dependencies: bash npm install

  3. Execute the build process: bash npm run build

Contribution Guidelines

We encourage external contributions. Please submit proposed changes via a Pull Request.

Licensing

This software is distributed under the ISC License.

Maintainer

Developed by [Your Name] (your@email)

WIKIPEDIA: XMLHttpRequest (XHR) constitutes an established Application Programming Interface, embodied as a JavaScript entity, designed to dispatch Hypertext Transfer Protocol (HTTP) requests from a web browser client to a remote server. Its methods enable client-side applications to communicate with the server subsequent to page loading, facilitating asynchronous data exchange. XHR is foundational to the concept of Asynchronous JavaScript and XML (Ajax). Before its adoption, page interactions relied primarily on traditional hyperlink navigation or form submissions, which typically necessitated a full page refresh.

See Also

`