En

A

A real-time stock price query MCP tool based on yfinance.

数据分析 查询实时股价分析股票行情 通用 ★ 19 Updated 2026-08-02

Install & Use

Copy this prompt and send it to your AI assistant (Claude / Cursor / TRAE / Codex / WorkBuddy etc.) to auto-install:

Help me install this AI Skill: A.
It is used for: A real-time stock price query MCP tool based on yfinance.
Details: https://321skill.com/en/skills/a-a-simple-mcp-server/

This Skill addresses the inability to quickly obtain real-time stock price data within AI coding or conversational environments. In practical development, quantitative traders, investors, or data analysts often need to query the latest market data for individual stocks. However, traditional methods require switching to a browser or manually calling APIs, disrupting the workflow.

Usage is straightforward: you only need to configure this MCP server in your AI assistant (e.g., Claude, Cursor). Afterward, you can use natural language instructions to query real-time price, change percentage, trading volume, and other data for any stock. The AI will automatically call the yfinance interface and return structured results.

It is particularly suitable for quantitative traders, individual investors, and financial data analysts who frequently need to query stock market data. Especially for users already employing AI coding assistants for strategy backtesting or market analysis, it integrates seamlessly into their workflow.

It is recommended to consistently use this tool when a quick stock price snapshot is needed, avoiding manual searches. Note that it primarily relies on the free data provided by yfinance, with a delay of approximately 15-20 minutes, making it unsuitable for scenarios requiring real-time Level 2 data.

Key Features

Unlike the Alpha Vantage MCP server, it is based on the free yfinance data source, requiring no API key registration to query stocks from major global markets, offering broader coverage at zero cost.

Limitations

Relies on the yfinance library; data has a delay of approximately 15-20 minutes; does not support real-time US stock Level 2 market data or data from some smaller exchanges.

FAQ

Which stock markets are supported?

Supports major global markets including US stocks, Hong Kong stocks, A-shares, European stocks, etc., depending on yfinance's data coverage.

Is an API key required?

No. yfinance is a free, open-source library. It can be used directly without any registration or keys.