
Oracle Feeds Mcp
io.github.rileybuilds由 GitHub 账号 rileybuilds 发布v0.1.0更新于 Oct 27, 2026
On-chain price oracles: Chainlink (5 chains) + Pyth, staleness-flagged, no forced RPC key.
概览
只读的 MCP 服务器,让助手获取 Chainlink 与 Pyth 的链上预言机价格数据,并附带时间戳与过期标记。
- 可以做什么
- 按链和交易对查询 Chainlink 最新价格,并返回过期标记
- 按轮次 ID 查询 Chainlink 指定历史轮次价格
- 列出精选的 Chainlink 喂价列表与支持的 EVM 链
- 按符号或原始喂价 ID 获取 Pyth 最新价格,以及指定 Unix 时间点的历史价格
- 在 Pyth 实时喂价目录中搜索符号
- 适用场景
- 适合助手需要直接从链上预言机获取加密货币与稳定币的当前或历史价格,或需要判断某个报价是否已过期再决定是否采用时。更适合分析与监控用途,而非交易执行。
- 运行要求
- 以本地 stdio 进程运行,需要 Node.js(安装、构建后让客户端指向构建产物入口)。无需 API 密钥或环境变量:Chainlink 读取使用免费公共 RPC 端点,Pyth 读取使用其公共 Hermes REST API,因此需要网络访问。
安装
在 SourceWeft 中
- 打开 控制台中的 Oracle Feeds Mcp,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
oracle-feeds-mcp
An MCP server for on-chain price oracle data, covering two independent providers — Chainlink and Pyth Network — instead of one.
Why this exists
The only prior MCP server in this space, kukapay/chainlink-feeds-mcp, is Chainlink-only, hard-requires an Infura API key, has a queryPriceByRound tool that's a placeholder (it silently calls latestRoundData() again regardless of the round you asked for), and ships with no tests. This project covers the same ground plus more, and fixes those specific gaps:
This is a data-access tool: it returns oracle-reported prices as-is, with a timestamp and an age-based staleness flag. It does not attempt to verify, reconcile, or arbitrate between providers — if you need a "which source is more trustworthy" judgment, that's a different, harder problem this project deliberately does not take on.
Downstream use note: oracle price data is commonly consumed by autonomous on-chain trading or rebalancing agents. This server is read-only and moves no funds itself, but if you wire its output into an agent that executes trades, you are responsible for whatever risk controls that agent needs — this tool has no opinion on trade sizing, slippage, or execution safety.
Tools
getChainlinkPrice({ chain, pair })— latest Chainlink price, with staleness flag.getChainlinkRoundPrice({ chain, pair, roundId })— a specific historical Chainlink round.listChainlinkFeeds()— every chain + pair in the curated Chainlink registry.listSupportedChains()— just the chain list.getPythPrice({ symbol })— latest Pyth price, by symbol (SOL/USD) or raw feed ID.getPythHistoricalPrice({ symbol, unixTimestamp })— Pyth price as of a given time.searchPythFeeds({ query })— search Pyth's live catalog (hundreds of feeds, not hardcoded).
Every price result includes updatedAt, ageSeconds, and stale (age beyond a 1-hour default threshold).
Coverage
Chainlink feeds are a curated registry (not an exhaustive mirror) across 5 EVM chains — Ethereum, Base, Arbitrum, Polygon, Optimism — with major pairs (BTC, ETH, USDC, USDT, DAI, LINK, SOL, and a few chain-native assets) on each. See src/feeds/chainlink.ts; it's a plain data file, easy to extend with more chains or pairs.
Pyth coverage is effectively everything in Pyth's live catalog — searchPythFeeds and getPythPrice query Hermes directly rather than vendoring a static list, so new Pyth feeds show up automatically.
Install & run
Runs as a standard stdio MCP server — point any MCP client at node dist/index.js.
No API keys or environment variables are required. Chainlink reads use free public RPC endpoints (*.publicnode.com); Pyth reads use its public Hermes REST API.
Development
Disclosure
This repository is built and maintained by an AI agent (rileybuilds), operating with human oversight. See the account bio.
License
MIT
来源:README.md,提交 002a858
工具
0版本历史
1- v0.1.0最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分