Morpho API MCP Server
启用与 Morpho GraphQL API 的交互,通过模型上下文协议 (MCP) 服务器提供访问市场数据、金库、仓位和交易的工具。
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 服务器
一个模型上下文协议 (MCP) 服务器,提供用于查询 Morpho API 的工具。此服务器使 Claude 能够与 Morpho 的 GraphQL API 交互,从而访问市场数据、金库、头寸等。
功能
- 通过 GraphQL 查询 Morpho 市场数据
- 完全支持金库、头寸和交易
- 历史 APY 数据和预言机信息
- 全面的分页、排序和过滤选项
- 使用 Zod 模式进行数据验证
- 错误处理和类型安全
- 符合 MCP 的服务器实现
安装
- 安装包:
npm install mcp-morpho-server
- 添加到您的 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
: 获取预言机信息
金库
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 服务器实现
- axios 用于 API 请求
- zod 用于模式验证
要从源代码构建:
- 克隆存储库
git clone https://github.com/crazyrabbitLTC/mcp-morpho-server.git
- 安装依赖项:
npm install
- 构建项目:
npm run build
贡献
欢迎贡献!请随时提交 Pull Request。
许可证
ISC
作者
由 [您的名字] (your@email) 创建
推荐服务器
Claude Code MCP
一个实现了 Claude Code 作为模型上下文协议(Model Context Protocol, MCP)服务器的方案,它可以通过标准化的 MCP 接口来使用 Claude 的软件工程能力(代码生成、编辑、审查和文件操作)。
contentful-mcp
在你的 Contentful Space 中更新、创建、删除内容、内容模型和资源。

Supabase MCP Server
一个模型上下文协议(MCP)服务器,它提供对 Supabase 管理 API 的编程访问。该服务器允许 AI 模型和其他客户端通过标准化的接口来管理 Supabase 项目和组织。
Crypto Price & Market Analysis MCP Server
一个模型上下文协议 (MCP) 服务器,它使用 CoinCap API 提供全面的加密货币分析。该服务器通过一个易于使用的界面提供实时价格数据、市场分析和历史趋势。 (Alternative, slightly more formal and technical translation): 一个模型上下文协议 (MCP) 服务器,利用 CoinCap API 提供全面的加密货币分析服务。该服务器通过用户友好的界面,提供实时价格数据、市场分析以及历史趋势数据。
@kazuph/mcp-gmail-gas
用于 Gmail 集成的模型上下文协议 (Model Context Protocol, MCP) 服务器。它允许 Claude Desktop(或任何 MCP 客户端)通过 Google Apps Script 与您的 Gmail 帐户进行交互。
MCP DuckDB Knowledge Graph Memory Server
一个为 Claude 设计的记忆服务器,它使用 DuckDB 存储和检索知识图谱数据,从而增强了对话的性能和查询能力,并能持久保存用户信息。
Metabase MCP Server
使人工智能助手能够与 Metabase 数据库和仪表板进行交互,允许用户通过自然语言列出和执行查询、访问数据可视化以及与数据库资源进行交互。

Linear MCP Server
一个模型上下文协议(Model Context Protocol)服务器,它与 Linear 的问题跟踪系统集成,允许大型语言模型(LLM)通过自然语言交互来创建、更新、搜索和评论 Linear 问题。

Airtable MCP Server
一个模型上下文协议(Model Context Protocol,MCP)服务器,通过 Claude Desktop 或其他 MCP 客户端,为以编程方式管理 Airtable 数据库、表格、字段和记录提供工具。
mcp-shodan
用于查询 Shodan API 和 Shodan CVEDB 的 MCP 服务器。该服务器提供 IP 查询、设备搜索、DNS 查询、漏洞查询、CPE 查询等工具。