Morpho API MCP Server

Morpho API MCP Server

Enables interaction with the Morpho GraphQL API, providing tools for accessing market data, vaults, positions, and transactions through a Model Context Protocol (MCP) server.

crazyrabbitLTC

Finance
Databases
Cloud Platforms
JavaScript
Visit Server

Tools

get_vaults

Retrieves all vaults with their current states.

get_vault_positions

Get positions for a specific vault.

get_vault_transactions

Get latest vault transactions.

get_markets

Retrieves markets from Morpho with pagination, ordering, and filtering support.

get_whitelisted_markets

Retrieves only whitelisted markets from Morpho.

get_asset_price

Get current price and yield information for specific assets.

get_market_positions

Get positions overview for specific markets with pagination and ordering.

get_historical_apy

Get historical APY data for a specific market.

get_oracle_details

Get oracle details for a specific market.

get_account_overview

Get account overview including positions and transactions.

get_liquidations

Get liquidation events with filtering and pagination.

get_vault_allocation

Get vault allocation for a specific market.

get_vault_reallocates

Get vault reallocates for a specific vault.

get_vault_apy_history

Get historical APY data for a vault.

README

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

  1. Install the package:
npm install mcp-morpho-server
  1. Add 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 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

Vaults

  • 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

Assets and Accounts

  • get_asset_price: Get current price and yield information
  • get_account_overview: Get account positions and transactions
  • get_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:

  1. Clone the repository
git clone https://github.com/crazyrabbitLTC/mcp-morpho-server.git
  1. Install dependencies:
npm install
  1. Build the project:
npm run build

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

ISC

Author

Created by [Your Name] (your@email)

Recommended Servers

Claude Code MCP

Claude Code MCP

An implementation of Claude Code as a Model Context Protocol server that enables using Claude's software engineering capabilities (code generation, editing, reviewing, and file operations) through the standardized MCP interface.

Featured
Local
JavaScript
contentful-mcp

contentful-mcp

Update, create, delete content, content-models and assets in your Contentful Space

Featured
TypeScript
Supabase MCP Server

Supabase MCP Server

A Model Context Protocol (MCP) server that provides programmatic access to the Supabase Management API. This server allows AI models and other clients to manage Supabase projects and organizations through a standardized interface.

Featured
JavaScript
Crypto Price & Market Analysis MCP Server

Crypto Price & Market Analysis MCP Server

A Model Context Protocol (MCP) server that provides comprehensive cryptocurrency analysis using the CoinCap API. This server offers real-time price data, market analysis, and historical trends through an easy-to-use interface.

Featured
TypeScript
@kazuph/mcp-gmail-gas

@kazuph/mcp-gmail-gas

Model Context Protocol server for Gmail integration. This allows Claude Desktop (or any MCP client) to interact with your Gmail account through Google Apps Script.

Featured
JavaScript
MCP DuckDB Knowledge Graph Memory Server

MCP DuckDB Knowledge Graph Memory Server

A memory server for Claude that stores and retrieves knowledge graph data in DuckDB, enhancing performance and query capabilities for conversations with persistent user information.

Featured
TypeScript
dbt Semantic Layer MCP Server

dbt Semantic Layer MCP Server

A server that enables querying the dbt Semantic Layer through natural language conversations with Claude Desktop and other AI assistants, allowing users to discover metrics, create queries, analyze data, and visualize results.

Featured
TypeScript
Metabase MCP Server

Metabase MCP Server

Enables AI assistants to interact with Metabase databases and dashboards, allowing users to list and execute queries, access data visualizations, and interact with database resources through natural language.

Featured
JavaScript
Linear MCP Server

Linear MCP Server

A Model Context Protocol server that integrates with Linear's issue tracking system, allowing LLMs to create, update, search, and comment on Linear issues through natural language interactions.

Featured
JavaScript
Airtable MCP Server

Airtable MCP Server

A Model Context Protocol server that provides tools for programmatically managing Airtable bases, tables, fields, and records through Claude Desktop or other MCP clients.

Featured
JavaScript