Zyfai
io.github.ondefyv1.0.0更新于 Oct 3, 2026
Discover DeFi yield opportunities and manage Zyfai positions with self-custodial AI agents.
概览
让助手发现 DeFi 收益机会,并在通过身份验证后查看 Zyfai 持仓、准备受支持的账户操作。
- 功能
- 这是一个托管在远程的 Streamable HTTP MCP 服务器,通过自然语言工具提供 Zyfai 的收益发现与 DeFi 代理能力。它可以列出保守型和激进型收益机会,并比较 APY、TVL、协议、池子、链、资产和风险信息。在已通过身份验证的 Zyfai 会话中,它还能查看投资组合与当前持仓、查看收益、交易历史和再平衡信息,并在启用时准备受支持的存款和账户操作。
- 适用场景
- 适合让助手研究或比较 DeFi 收益策略,或查看并准备现有 Zyfai 账户上的操作,而无需自行构建集成。公开的机会发现无需登录;投资组合和写入流程需要身份验证。
- 运行要求
- 需要一个支持 Streamable HTTP 的远程 MCP 客户端,并指向托管端点。使用托管服务器无需本地运行时;若改为本地运行,则需要 Node.js 18+ 和 pnpm,并在 .env 中设置 ZYFAI_API_KEY 才能调用实时 API。个人投资组合和写入工具需要已通过身份验证的 Zyfai 会话,OAuth 挑战通过 HTTP 401 和 WWW-Authenticate 返回。
安装
在 SourceWeft 中
- 打开 控制台中的 Zyfai,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。
其他 MCP 客户端
把它添加到你客户端的 mcpServers 配置中。
{
"mcpServers": {
"zyfai": {
"type": "http",
"url": "https://mcp.zyf.ai/mcp"
}
}
}README
Zyfai DeFi MCP Server
Use Zyfai from Claude, Grok and Grok Bot, Cursor, Claude Code, compatible custom agents, and a limited ChatGPT preview.
This public Model Context Protocol server exposes Zyfai's yield discovery and personalized DeFi agent through natural-language tools. Discover opportunities, compare strategies, inspect positions, review earnings, and prepare supported account actions without building a separate integration.
Hosted MCP endpoint:
https://mcp.zyf.ai/mcp
You do not need to clone or run this repository to use the hosted server.
What you can do
- Discover conservative and aggressive yield opportunities
- Compare APY, TVL, protocol, pool, chain, asset, and available risk information
- Inspect an authenticated user's Zyfai portfolio and active positions
- Review earnings, transaction history, and rebalancing information
- Prepare supported deposits and account actions when enabled
- Integrate Zyfai into any compatible Streamable HTTP MCP client
The server is built on @zyfai/sdk and uses remote Streamable HTTP transport.
Connect a client
For current screenshots, authentication behaviour, mobile/desktop availability, and troubleshooting, see Use Zyfai with AI.
Cursor
Claude Code
Run this outside an active Claude Code session:
Claude
In Claude, open Settings → Connectors, add a custom connector, and use:
Grok and Grok Bot
Open grok.com/connectors, select New Connector → Custom, and enter the hosted endpoint. In Grok Bot, attach the installed Zyfai connector with @ when needed.
Grok Bot is the better fit for longer-running or repeat workflows. Grok web also supports the connector for ad hoc conversations, although tool-heavy requests can take longer to complete.
Try it
Start with public opportunity discovery:
Using Zyfai, show me conservative USDC opportunities on Base. Compare APY, TVL, protocol, and risk.
Then compare strategies:
Now compare those with the aggressive strategy and explain the additional risk rather than recommending purely by APY.
After authentication:
Show my current Zyfai positions and earnings. Do not prepare any transaction.
For a controlled action flow:
Help me prepare a 1 USDC deposit on Base using the conservative strategy. Explain each step and ask before anything requiring a wallet signature.
Authentication and safety
Zyfai separates general discovery from personal account access.
- Opportunity and protocol discovery use public market and strategy data.
- Portfolio, position, earnings, history, and personalized tools require an authenticated Zyfai session.
- Supported write flows require authentication and may return a Zyfai signing URL.
- Connecting the MCP server does not transfer assets or give an AI custody of a wallet.
- The server never needs a seed phrase or raw private key from chat.
- Users should verify the chain, asset, amount, strategy, destination, and wallet request before signing.
OAuth challenges are returned through standard HTTP 401 and WWW-Authenticate responses so compatible clients can begin the authentication flow.
Documentation
Run locally
Requirements: Node.js 18+ and pnpm.
Local endpoints:
- MCP:
http://localhost:3005/mcp - Health:
http://localhost:3005/health
Set ZYFAI_API_KEY in .env for live Zyfai API calls. See .env.example for authentication, backend, CORS, write-tool, and signing configuration.
For workspace-linked SDK development, local OAuth, integration testing, and the full repository architecture, read AGENTS.md.
Validate changes
This runs TypeScript validation, the production build, and unit tests. Integration suites are opt-in; see AGENTS.md.
Related projects
This public server is separate from zyf-knowledge-mcp, Zyfai's internal code and documentation search service.
License
ISC
来源:README.md,提交 a533d4e
工具
0版本历史
1- v1.0.0最新Oct 3, 2026
