Claude Skill
gadicc/yahoo-finance2
yahoo-finance2 is an unofficial Yahoo Finance API offering CLI, MCP server, and Claude Skill for stock quotes, historical data, and market info. Ideal for developers and AI agents.
Overview
Repository
Install this Skill
$ npx yahoo-finance2 --helpRegistry
$ npx yahoo-finance2 --help$ npx yahoo-finance2 search AMZN$ npx yahoo-finance2 quoteSummary GOOGL$ npx yahoo-finance2 quoteSummary NVDA '{"modules":["assetProfile", "secFilings"]}'$ npm install -g yahoo-finance2
Summary
yahoo-finance2 is an unofficial, community-driven API for Yahoo Finance that provides a CLI, MCP server, and Claude Skill (Agent Skill) for accessing financial data. It enables developers and AI agents to query stock quotes, historical data, and market information programmatically.
Yahoo Finance 的非官方 API,支持命令行界面(CLI)、MCP 和 Agent Skill(Claude Skill)
Key features
- Unofficial Yahoo Finance API with CLI support
- MCP server integration for AI agents
- Claude Skill (Agent Skill) for natural language queries
- Access to stock quotes, historical data, and market info
- Lightweight and easy-to-use JavaScript/TypeScript library
Use cases
- Building financial dashboards and stock trackers
- Automating market data retrieval via CLI scripts
- Integrating real-time finance data into AI agents
- Performing historical analysis for trading strategies
- Enabling natural language queries for financial insights
README excerpt
# yahoo-finance2 Unofficial API for Yahoo Finance with CLI, MCP and Agent Skill. Copyright (c) 2021 by Gadi Cohen and Pilwon Huh. [MIT licensed](./LICENSE). [](https://www.npmjs.com/package/yahoo-finance2) [](https://github.com/gadicc/yahoo-finance2/actions/workflows/release.yaml) [](https://codecov.io/gh/gadicc/yahoo-finance2) [](https://github.com/semantic-release/semantic-release) [](http://www.typescriptlang.org/) [](./LICENSE) You are reading the latest **Development docs**. For the **v2 docs**, click [here](https://github.com/gadicc/yahoo-finance2/tree/2.x). The dev docs are in the process of being updated for the upcoming **v3** - for more info see [UPGRADING](./docs/UPGRADING.md). [Live Demo on CodeSandbox](https://codesandbox.io/p/devbox/gxvftx) (Updated 2024-06-17; NextJS with both RSC and Hook-Relay examples) NB: Recently **the repo was renamed** from `node-yahoo-finance2` to `yahoo-finance2`, and the following **branches were named**, `master` to `main`, and `devel` to `dev`. See [UPGRADING.md#dev](./docs/UPGRADING.md#dev) for the git commands to update your local installation. ## Supported runtimes: - **Bun**: v1+. - **Cloudflare**: Modern releases (we support but don't test for this, please report issues). - **Deno**: v2+. - **Node**: [Current and Active LTS](https://endoflife.date/nodejs)