Morpho

by crazyrabbitltc

466 downloads
Not rated
GitHub

About

Integrates with Morpho DeFi protocol's GraphQL API to enable querying market data, vaults, positions, and historical APY information for portfolio management and yield optimization.

Details

Author
crazyrabbitltc
Repository
crazyrabbitLTC/mcp-morpho-server
Downloads
466
Categories
AI, Design, Developer Tools, Search, Frontend, API
Tags
#integration, #visualization

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

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name Morpho
    Command (node, npx, python, etc.) node
    Arguments
    • Argument 1 /path/to/node_modules/mcp-morpho-server/build/index.js

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

1. Install the package:

npm install mcp-morpho-server

2. Add to your Claude Desktop configuration:

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

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.

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "morpho": {
            "cwd": "string (optional)",
            "env": {},
            "args": [
                "/path/to/node_modules/mcp-morpho-server/build/index.js"
            ],
            "shell": false,
            "command": "node"
        }
    }
}

Linux

{
    "cwd": "string (optional)",
    "env": [],
    "args": [
        "/path/to/node_modules/mcp-morpho-server/build/index.js"
    ],
    "shell": false,
    "command": "node"
}

Macos

{
    "cwd": "string (optional)",
    "env": [],
    "args": [
        "/path/to/node_modules/mcp-morpho-server/build/index.js"
    ],
    "shell": false,
    "command": "node"
}

Windows

{
    "cwd": "string (optional)",
    "env": [],
    "args": [
        "/c",
        "node",
        "/path/to/node_modules/mcp-morpho-server/build/index.js"
    ],
    "shell": false,
    "command": "cmd"
}

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

2. 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

2. Install dependencies:

npm install

3. 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>)

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.