yfinance-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@yfinance-mcpShow me the historical prices for AAPL for the last 5 days"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
yfinance-mcp
An MCP server that exposes Yahoo Finance market data to LLM agents.
Tools
history
Returns OHLCV price bars for a given symbol and date range.
Parameter | Type | Required | Description |
| string | yes | Ticker symbol (e.g. |
| string | yes | Bar granularity ( |
| string | yes | Start date ( |
| string | yes | End date ( |
| bool | no | Return split/dividend-adjusted prices |
Response columns: t (timestamps), o, h, l, c, v, and ac (adjusted close, when adjust=true).
oscillator
Returns daily momentum oscillators for a given symbol and date range. Warmup data is fetched automatically so indicators are valid from the first returned date.
Parameter | Type | Required | Description |
| string | yes | Ticker symbol (e.g. |
| string | yes | Start date ( |
| string | yes | End date ( |
Response columns: t, rsi, stoch_k, stoch_d.
trend
Returns daily trend-following indicators for a given symbol and date range. Warmup data is fetched automatically so indicators are valid from the first returned date.
Parameter | Type | Required | Description |
| string | yes | Ticker symbol (e.g. |
| string | yes | Start date ( |
| string | yes | End date ( |
Response columns: t, sma_20, sma_50, sma_200, ema_20, ema_50, ema_200, macd, macd_signal, macd_hist, plus_di, minus_di, adx.
volume
Returns daily volume moving averages for a given symbol and date range. Warmup data is fetched automatically so indicators are valid from the first returned date.
Parameter | Type | Required | Description |
| string | yes | Ticker symbol (e.g. |
| string | yes | Start date ( |
| string | yes | End date ( |
Response columns: t, volume, vol_sma_5, vol_sma_10, vol_sma_20, vol_sma_50.
Related MCP server: yahoo-finance-mcp
Setup
Requires Python 3.13+.
uv syncUsage
Claude Code
Add to ~/.claude/settings.json:
{
"mcpServers": {
"yfinance": {
"command": "uv",
"args": ["run", "--directory", "/path/to/yfinance-mcp", "python", "server.py"]
}
}
}Claude Desktop
Add to your Claude Desktop config:
{
"mcpServers": {
"yfinance": {
"command": "uv",
"args": ["run", "--directory", "/path/to/yfinance-mcp", "python", "server.py"]
}
}
}License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/keisku/yfinance-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server