pigi.finance — DeFi Vault Intelligence

io.github.pigi-fi由 GitHub 账号 pigi-fi 发布v0.1.3更新于 Oct 25, 2026

DeFi vault data from pigi.finance: yields, TVL, history and risk ratings across chains.

发布方自己的服务:Finance Foundation

已验证Streamable HTTP可网页运行金融数据与分析

概览

AI 生成的概览

一个托管型 MCP 服务器,让助手以只读方式访问 pigi.finance 的 DeFi 金库数据:收益率、TVL、历史、风险评级与漏洞损失。

可以做什么
列出并查看 DeFi 金库的 TVL、APR、资产类别、链、协议、风险等级与风险分数,可按收益率或风险调整后收益率筛选和排序,并获取单个金库的完整记录及 TVL、APR、APY 和净流入的每日历史或区间统计。查询 pigi 对协议的累计风险评级以及影响该评分的金库。获取 DeFi 基准利率与 3 个月美国国债利率,并查询 DeFi 黑客与漏洞损失事件及汇总。查看账户本月请求数与套餐上限。
适用场景
适合跨协议、跨链比较借贷与金库收益率,筛选低风险稳定币金库,查看某个金库或协议的风险评级,或把 DeFi 收益率与漏洞损失放在一起评估。它是只读数据源,不是钱包或交易工具。
运行要求
通过网络访问的远程 Streamable HTTP 端点,多数客户端无需本地安装。需要 OAuth 登录,首次登录会自动创建免费账户。仅支持 stdio 的客户端需要 mcp-remote 之类的桥接,或使用提供的 Docker 镜像,该镜像会打印登录链接并把令牌保存在卷中。非交互场景可使用 pigi.finance 发放的服务令牌代替 OAuth。
安装前请注意
登录会创建或关联 pigi.finance 账户,已有的 REST API 账户会共用其套餐与配额。免费额度为每月 1,000 次请求,更高额度和持有人分析需要付费套餐。传给 Docker 镜像的服务令牌属于凭据,应避免写入共享配置。所有工具均为读取数据,服务器不会转移资金。

安装

在 SourceWeft 中

  1. 打开 控制台中的 pigi.finance — DeFi Vault Intelligence,将其添加到工作区。
  2. 连接 所需的 凭据。它们会被私密存储,绝不会在公开页面上展示。
  3. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/io.github.pigi-fi%2Fpigi-mcp/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。 客户端会在首次连接时完成 OAuth 登录。

{
  "mcpServers": {
    "pigi-finance-defi-vault-intelligence": {
      "type": "http",
      "url": "https://mcp.pigi.finance/api/mcp"
    }
  }
}

README

[pigi.finance]

pigi.finance — DeFi Vault Intelligence MCP

Query 2,000+ DeFi vaults across 25+ protocols and 14 EVM chains. Get vault risk scores, APR/APY and TVL history, risk-adjusted yield, DeFi base rates and hack/exploit data — for Claude, Cursor, Codex, Gemini CLI and any other MCP client.

  • Remote server, no install. Point your client at one URL, sign in with OAuth. No API key to copy, no environment variables.
  • Cross-protocol. One tool surface over Aave, Morpho, Euler, Uniswap, Fluid, SparkLend, Yearn and more — compare vaults across protocols instead of one at a time.
  • Risk-rated. Each assessed vault carries pigi's published risk_band (A safest … F) and risk_score (0–100), so an agent can rank by safety, not just yield.
  • Free tier. 1,000 requests/month, all vault metrics and history. Pro raises the limit and adds holder analytics. See pigi.finance/api-keys.

Listed in the official MCP registry as io.github.pigi-fi/pigi-mcp.

Endpoint: https://mcp.pigi.finance/api/mcp (Streamable HTTP)

Install

Any MCP client (Claude Desktop, Cursor, Windsurf and most others: add to the MCP config file)

json
{  "mcpServers": {    "pigi": { "url": "https://mcp.pigi.finance/api/mcp" }  }}

Or paste this into your agent and let it do the setup:

Read https://raw.githubusercontent.com/pigi-fi/pigi-skills/refs/heads/main/pigi-setup/SKILL.md and follow the instructions to connect to pigi.finance MCP

CLI clients:

Claude Code

bash
claude mcp add pigi --transport http https://mcp.pigi.finance/api/mcp

Codex

bash
codex mcp add pigi --url https://mcp.pigi.finance/api/mcp

Gemini CLI

json
{  "mcpServers": {    "pigi": { "httpUrl": "https://mcp.pigi.finance/api/mcp" }  }}

OpenCode

json
{  "mcp": {    "pigi": { "type": "remote", "url": "https://mcp.pigi.finance/api/mcp" }  }}

Stdio-only clients (bridge through mcp-remote)

json
{  "mcpServers": {    "pigi": {      "command": "npx",      "args": ["-y", "mcp-remote", "https://mcp.pigi.finance/api/mcp"]    }  }}

Docker (stdio bridge to the hosted server, for runners that need a local process)

bash
git clone https://github.com/pigi-fi/pigi-mcp.git && cd pigi-mcpdocker build -t pigi-mcp .docker run -i --rm -p 3334:3334 -v pigi-mcp-auth:/home/node/.mcp-auth pigi-mcp

First run prints a sign-in URL; open it on the host. The callback lands on port 3334, and the named volume keeps the token so later runs skip sign-in.

For non-interactive use (a directory inspector, a service), pass a service token instead and OAuth is skipped: docker run -i --rm -e PIGI_MCP_TOKEN=... pigi-mcp. Service tokens are issued by pigi.finance for specific integrations.

Runners that clone this repo into their own image instead of building the Dockerfile (Glama does this) need one build step, npm install -g [email protected], and the command ["/app/entrypoint.sh"]; the script carries its own defaults.

Authenticate

On first connect the client opens an OAuth 2.1 sign-in (WorkOS AuthKit). A free account is provisioned on first login. If you already use the pigi.finance REST API, sign in with the same email: the MCP shares that account's plan and quota.

Headless environments: mcp-remote prints the sign-in URL; open it anywhere, then pass the callback URL back.

Skills (optional)

pigi-fi/pigi-skills teaches an agent when and how to use the tools:

bash
npx skills add pigi-fi/pigi-skills --yes

What you can ask

  • "Find USDC lending vaults on Ethereum with APR above 10% and TVL over $10M, then rank them by risk score."
  • "Compare the top Morpho and Euler USDC vaults on risk-adjusted yield over the last 90 days."
  • "Which vaults in Morpho had net outflows this month?"
  • "How does the DeFi base rate compare with the 3-month T-bill right now?"
  • "How much was lost to bridge exploits in 2025?"
  • "How does pigi rate Aave V3 on Ethereum as a protocol, and which vaults drive that number?"

Tools

  • list_vaults — List DeFi vaults with TVL, APR, asset class, age, protocol, chain and, where assessed, risk_band, risk_score and risk_adjusted_apr. Filter by protocol_name, chain_id, asset_class (stable / mixed / non-stable), search (name substring, e.g. USDC), risk_band (e.g. ["A","B"]), min_risk_score, tvl_filter, apr_filter, age_filter; sort by apr_desc, tvl_desc, risk_score_desc or risk_adjusted_apr_desc; paginate with limit / offset. Returns id (for get_vault) and strategy_id (for history and stats).
  • get_vault — Full record for one vault by pool id.
  • list_protocols — pigi's cumulative protocol rating for every rated protocol node, in one call: score = 0.6 × the protocol node's own rating + 0.4 × the TVL-weighted mean of the published scores of the vaults that deposit into it, with band (A safest .. F), the node rating and the vault aggregates. Node ids look like aave-v3-ethereum, euler-v2, morpho-blue-ethereum. Optional chain_id narrows which vaults count.
  • get_protocol — One protocol node's cumulative rating with the vaults that counted (published score, band, TVL, weight; largest first). Arguments: node_id (from list_protocols), optional chain_id.
  • get_vault_history — Daily series for a vault: TVL, APR, APY, risk-adjusted APR (APR minus a penalty derived from the risk score) and 30-day moving averages. Arguments: strategy_id, range (7D / 30D / 90D / 180D).
  • get_vault_stats — Windowed aggregates for a vault: TVL low/high, APR, APY and net inflows over weekly, monthly, quarterly and yearly windows. Arguments: strategy_id, optional period.
  • get_rates — DeFi Base Rate (stablecoin and ETH vault-set mean yield) and the 3-month U.S. T-bill rate, last ~30 daily points. No arguments.
  • get_hacks — DeFi hack and exploit loss events plus major TradFi losses, with a summary totalling the whole filtered set. Arguments: category, type (DeFi / Dexes / Bridges), from, to, min_amount, sort, limit, offset.
  • get_usage — Your request count this month and plan limit. No arguments.

"Best low-risk USDC vault" is a single call: list_vaults({ search: "USDC", asset_class: "stable", risk_band: ["A", "B"], sort: "risk_adjusted_apr_desc" }).

Coverage

2,000+ vaults · 25+ protocols · 14 EVM chains · lending markets, ERC-4626 vaults, AMM pools and stability pools. Data is refreshed daily. Risk ratings are published for the vaults pigi has assessed; the live count is on pigi.finance.

About this repo

This repo is the public listing for the pigi.finance MCP server: the registry manifest (server.json), the publish workflow, and this README. The server itself is a hosted service; its code is not published here.

Releases: bump version in server.json, commit, tag vX.Y.Z and push the tag. The workflow validates the manifest and publishes to the registry with GitHub OIDC. The registry never overwrites a published version.

Links

Tags: DeFi · Finance · Cryptocurrency · Blockchain · Web3 · Yield · Vaults · Risk · Risk Analytics · On-chain Data · Aave · Morpho · Euler · Uniswap · EVM

来源:README.md,提交 9f3e712

工具

0
该服务器需要登录,因此 SourceWeft 无法在没有账号的情况下读取其工具,也未收录。已连接账号所能看到的内容可能因账号及其权限而异。

版本历史

1
  1. v0.1.3最新Sep 16, 2026

评分

已满足适用检查项的 85%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

其他 Finance 集成