Morpho API MCP Server

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.

Integrations

  • Enables querying Morpho's GraphQL API for market data, vaults, positions, and other financial information

Morpho API MCP 服务器

一个模型上下文协议 (MCP) 服务器,提供用于查询 Morpho API 的工具。该服务器使 Claude 能够与 Morpho 的 GraphQL API 交互,从而提供对市场数据、保险库、仓位等的访问。

特征

  • 通过 GraphQL 查询 Morpho 市场数据
  • 全面支持保险库、仓位和交易
  • 历史 APY 数据和预言机信息
  • 全面的分页、排序和过滤选项
  • 使用 Zod 模式进行数据验证
  • 错误处理和类型安全
  • 符合 MCP 标准的服务器实现

安装

  1. 安装软件包:
npm install mcp-morpho-server
  1. 添加到您的 Claude Desktop 配置:
{ "tools": { "morpho": { "command": "node", "args": [ "/path/to/node_modules/mcp-morpho-server/build/index.js" ] } } }

可用工具

市场

  • get_markets :通过分页和过滤检索所有市场
  • get_whitelisted_markets :仅获取白名单市场
  • get_market_positions :获取特定市场的仓位
  • get_historical_apy :获取历史 APY 数据
  • get_oracle_details :获取 oracle 信息

保险库

  • get_vaults :获取所有保险库及其当前状态
  • get_vault_positions :获取特定保险库的位置
  • get_vault_transactions :获取保险库交易历史记录
  • get_vault_allocation :获取保险库市场分配
  • get_vault_reallocates :获取保险库重新分配历史记录
  • get_vault_apy_history :获取保险库的历史 APY 数据

资产和账户

  • get_asset_price :获取当前价格和收益率信息
  • get_account_overview :获取账户头寸和交易
  • get_liquidations :获取清算事件

发展

该项目使用 TypeScript 编写并使用:

  • @modelcontextprotocol/sdk 用于 MCP 服务器实现
  • 用于 API 请求的 axios
  • zod 用于模式验证

从源代码构建:

  1. 克隆存储库
git clone https://github.com/crazyrabbitLTC/mcp-morpho-server.git
  1. 安装依赖项:
npm install
  1. 构建项目:
npm run build

贡献

欢迎贡献代码!欢迎提交 Pull 请求。

执照

国际学习中心

作者

[您的姓名] ( <your@email> ) 创建

-
security - not tested
F
license - not found
-
quality - not tested

支持与 Morpho GraphQL API 交互,提供通过模型上下文协议 (MCP) 服务器访问市场数据、保险库、头寸和交易的工具。

  1. Features
    1. Installation
      1. Available Tools
        1. Markets
        2. Vaults
        3. Assets and Accounts
      2. Development
        1. Contributing
          1. License
            1. Author
              ID: t3vqcxa90h