Pyth Pro MCP Server
平台与服务by pyth-network
提供 500 多种 crypto、equities、FX 与 commodities 资产的实时与历史价格数据源。
给金融分析应用或交易智能体找行情源时,Pyth Pro MCP Server 能一站拿到500多种资产的实时与历史价格,省下多源接入和清洗功夫。
什么是 Pyth Pro MCP Server?
提供 500 多种 crypto、equities、FX 与 commodities 资产的实时与历史价格数据源。
README
Pyth Crosschain
This repository acts as a monorepo for the various components that make up Pyth protocols.
Within this monorepo you will find the following subprojects:
Table of Contents
Target Chains
This directory contains on-chain contracts and SDKs for all of the various blockchain runtimes that Pyth supports. Each subdirectory corresponds to a blockchain runtime. Inside each subdirectory, there are subfolders for contracts and SDKs.
Hermes
Hermes is an off-chain service which constantly observes Pythnet and the Wormhole network watching for price updates emitted from the Pyth contract. It exposes all observed attestations via a public API over HTTPS/WSS which can be consumed by client-side applications that wish to use Pyth pricing data.
The price_service/client directory provides an SDK for interacting with Hermes.
However, most users will interact with the price service via a chain-specific SDK
For a guide on utilising this service in your project, see the chain-specific SDK
and examples for your blockchain runtime in the target_chains directory.
Fortuna
Fortuna is an off-chain service which can be used by Entropy providers.
Pyth Lazer Pusher
Price feed pushers that deliver Pyth Lazer data to external systems. Currently supports pushing to Bulk Trade validators.
Local Development
Setup
Please install the following tools in order to work in this repository:
- NVM to manage your node version, then run
nvm use 22to ensure you are using node version 22.- Optionally, you can also use mise. If you install
mise, you can run all of your commands like the following:mise x -- pnpm <SOME_COMMAND>, which will ensure you are running your commands while using the correct tool versions for this repository.
- Optionally, you can also use mise. If you install
- Foundry in order to use
forgefor Ethereum contract development - Solana CLI for working with Solana programs.
- After installing, please run
solana keygen newto generate a local private key.
- After installing, please run
- Anchor for developing Solana programs.
- Pre-commit is used to automatically format and lint the repository.
- After installing, please run
pre-commit installin the root of the repo to configure the checks to run on each git commit.
- After installing, please run
- Rust
Pull requests
Use the Conventional Commits format for your commit messages and PR titles. In the PR description, please include a summary of the changes and any relevant context. Also, please make sure to update the package versions following the Semantic Versioning rules.
See also: Code guidelines
Releases
The repository has several CI workflows that automatically release new versions of the various components when a new Github release is published.
Each component's workflow uses a specific tag format including the component name and version number (e.g., Fortuna uses the tag fortuna-vX.Y.Z).
The general process for creating a new release is:
- Update the version number of the component in the repo, e.g., in
package.jsonorCargo.tomlor wherever. Please follow Semantic Versioning for package versions. - Submit a PR with the changes and merge them in to main.
- Create a new release on github. Configure the release to create a new tag when published. Set the tag name and version for the component you wish to release -- see the Releases page to identify the relevant tag.
- Publish the release. This step will automatically trigger a Github Action to build the package and release it. This step will e.g., publish packages to NPM, or build and push docker images.
- Note that when publishing a public package, you should prune the auto-generated Github release notes to only include changes relevant to the release. Otherwise, the changelog will include commits from unrelated projects in the monorepo since the previous release.
Note that all javascript packages are released together using a tag of the form pyth-js-v<number>. (The number is arbitrary.)
If you have a javascript package that shouldn't be published, simply add "private": "true" to the package.json file
and it will be excluded from the publishing workflow. If you are creating a new public javascript package, you should add
the following config option to package.json:
"publishConfig": {
"access": "public"
},
Typescript Monorepo
All of the typescript / javascript packages in this repository are part of a turborepo monorepo.
Setting up
If you use nix and direnv, just cd to the project directory and direnv allow.
If you use nix but not direnv, just cd to the project directory and enter a nix
development shell with nix develop.
If you don't use nix at all, then install the required system packages:
- Node.js -- match the version to
.nvmrc; you can use nvm to manage your Node.js version. - pnpm -- match the version to the version specified in
package.json; you can experiment with corepack to manage your pnpm version for you.
Common tasks
The following tasks are the most common ways to interact with the monorepo.
Thanks to turborepo, these tasks will
coordinate building any needed dependencies, and task execution will be cached
and will only re-run as necessary. For any of the following tasks, you can pass
any valid turbo run option
after --, for instance you could run pnpm test -- --concurrency 2.
pnpm turbo test: Run all unit tests, integration tests, linting, and format checks, as well as whatever other code checks any packages support.pnpm turbo fix: Run auto fixes, including reformatting code and auto-fixing lint rules where possible.pnpm turbo start:dev: Start all development servers in parallel.pnpm turbo start:prod: Run production builds and start production mode servers in parallel.
Building a new web app, JS / TS library or CLI tool
To quickly get started, from the root of this repo, you can run the following:
pnpm create-pyth-package- Answer the prompts
- Once the script is done, you will have your new webb app, library or CLI tool bootstrapped with all the current best practices.
If you'd like to read more about the best practices, checkout this best practices doc: 🔗 Creating a new JavaScript / TypeScript Package
Audit / Feature Status
⚠ This software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. Or plainly spoken - this is a very complex piece of software which targets a bleeding-edge, experimental smart contract runtime. Mistakes happen, and no matter how hard you try and whether you pay someone to audit it, it may eat your tokens, set your printer on fire or startle your cat. Cryptocurrencies are a high-risk investment, no matter how fancy.
常见问题
Pyth Pro MCP Server 是什么?
提供 500 多种 crypto、equities、FX 与 commodities 资产的实时与历史价格数据源。
相关 Skills
Slack动图
by anthropics
面向Slack的动图制作Skill,内置emoji/消息GIF的尺寸、帧率和色彩约束、校验与优化流程,适合把创意或上传图片快速做成可直接发送的Slack动画。
✎ 帮你快速做出适配 Slack 的动图,内置约束规则和校验工具,少踩上传与播放坑,做表情包和演示都更省心。
MCP构建
by anthropics
聚焦高质量 MCP Server 开发,覆盖协议研究、工具设计、错误处理与传输选型,适合用 FastMCP 或 MCP SDK 对接外部 API、封装服务能力。
✎ 想让 LLM 稳定调用外部 API,就用 MCP构建:从 Python 到 Node 都有成熟指引,帮你更快做出高质量 MCP 服务器。
接口测试套件
by alirezarezvani
扫描 Next.js、Express、FastAPI、Django REST 的 API 路由,自动生成覆盖鉴权、参数校验、错误码、分页、上传与限流场景的 Vitest 或 Pytest 测试套件。
✎ 帮你把API与集成测试自动化跑顺,减少回归漏测;能力全面,尤其适合复杂接口场景的QA团队。
相关 MCP Server
Slack 消息
编辑精选by Anthropic
Slack 是让 AI 助手直接读写你的 Slack 频道和消息的 MCP 服务器。
✎ 这个服务器解决了团队协作中需要 AI 实时获取 Slack 信息的痛点,特别适合开发团队让 Claude 帮忙汇总频道讨论或发送通知。不过,它目前只是参考实现,文档有限,不建议在生产环境直接使用——更适合开发者学习 MCP 如何集成第三方服务。
by netdata
io.github.netdata/mcp-server 是让 AI 助手实时监控服务器指标和日志的 MCP 服务器。
✎ 这个工具解决了运维人员需要手动检查系统状态的痛点,最适合 DevOps 团队让 Claude 自动分析性能数据。不过,它依赖 NetData 的现有部署,如果你没用过这个监控平台,得先花时间配置。
by d4vinci
Scrapling MCP Server 是专为现代网页设计的智能爬虫工具,支持绕过 Cloudflare 等反爬机制。
✎ 这个工具解决了爬取动态网页和反爬网站时的头疼问题,特别适合需要批量采集电商价格或新闻数据的开发者。不过,它依赖外部浏览器引擎,资源消耗较大,不适合轻量级任务。