About Yfinance
Yfinance is an MCP server published by 9nate-drake in the Developer Tools category: mCP Server for fething yfinance financial data into Claude Desktop. Conduid read 2 tools from its source: get_historical_data and get_stock_metric. No package is published for it, so it installs from a source checkout.
The repository has 20 stars and 5 forks, and its last commit was on 7 Dec 2024. Conduid has no tagged release on record for it. It passes 2 of the 6 static checks Conduid ran on the repository; it does not pass License declared, Tests present, Dependencies pinned and Scoped permissions. Its topics include financial-data, fix-yahoo-finance, market-data, pandas, stock-data and yahoo-finance.
Install
git clone https://github.com/9nate-drake/mcp-yfinanceTools (2)
get_historical_dataGet historical stock data for a symbol| Parameter | Type | Description |
|---|---|---|
| period | string | Time period (1d, 5d, 1mo, 3mo, 6mo, 1y, 2y, 5y, 10y, ytd, max) |
| symbol * | string | Stock symbol |
get_stock_metricGet a specific metric for a stock using yfinance field names. Common requests and their exact field names: Stock Price & Trading Info: - Current/Stock Price: currentPrice - Opening Price: open - Day's High: dayHigh - Day's Low: dayLow - Previous Close: previousClose - 52 Week High: fiftyTwoWeekHigh - 52 Week Low: fiftyTwoWeekLow - 50 Day Average: fiftyDayAverage - 200 Day Average: twoHundredDayAverage - Trading Volume: volume - Average Volume: averageVolume - Average Daily Volume (10 day): averageDailyVolume10Day - Market Cap/Capitalization: marketCap - Beta: beta - Bid Price: bid - Ask Price: ask - Bid Size: bidSize - Ask Size: askSize Company Information: - Company Name: longName - Short Name: shortName - Business Description/About/Summary: longBusinessSummary - Industry: industry - Sector: sector - Website: website - Number of Employees: fullTimeEmployees - Country: country - State: state - City: city - Address: address1 Financial Metrics: - PE Ratio: trailingPE - Forward PE: forwardPE - Price to Book: priceToBook - Price to Sales: priceToSalesTrailing12Months - Enterprise Value: enterpriseValue - Enterprise to EBITDA: enterpriseToEbitda - Enterprise to Revenue: enterpriseToRevenue - Book Value: bookValue Earnings & Revenue: - Revenue/Total Revenue: totalRevenue - Revenue Growth: revenueGrowth - Revenue Per Share: revenuePerShare - EBITDA: ebitda - EBITDA Margins: ebitdaMargins - Net Income: netIncomeToCommon - Earnings Growth: earningsGrowth - Quarterly Earnings Growth: earningsQuarterlyGrowth - Forward EPS: forwardEps - Trailing EPS: trailingEps Margins & Returns: - Profit Margin: profitMargins - Operating Margin: operatingMargins - Gross Margins: grossMargins - Return on Equity/ROE: returnOnEquity - Return on Assets/ROA: returnOnAssets Dividends: - Dividend Yield: dividendYield - Dividend Rate: dividendRate - Dividend Date: lastDividendDate - Ex-Dividend Date: exDividendDate - Payout Ratio: payoutRatio Balance Sheet: - Total Cash: totalCash - Cash Per Share: totalCashPerShare - Total Debt: totalDebt - Debt to Equity: debtToEquity - Current Ratio: currentRatio - Quick Ratio: quickRatio Ownership: - Institutional Ownership: heldPercentInstitutions - Insider Ownership: heldPercentInsiders - Float Shares: floatShares - Shares Outstanding: sharesOutstanding - Short Ratio: shortRatio Analyst Coverage: - Analyst Recommendation: recommendationKey - Number of Analysts: numberOfAnalystOpinions - Price Target Mean: targetMeanPrice - Price Target High: targetHighPrice - Price Target Low: targetLowPrice - Price Target Median: targetMedianPrice Risk Metrics: - Overall Risk: overallRisk - Audit Risk: auditRisk - Board Risk: boardRisk - Compensation Risk: compensationRisk Other: - Currency: currency - Exchange: exchange - Year Change/52 Week Change: 52WeekChange - S&P 500 Year Change: SandP52WeekChange| Parameter | Type | Description |
|---|---|---|
| metric * | string | The metric to retrieve, use camelCase |
| symbol * | string | Stock symbol |
Security checks
Static checks derived from the repository a month ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 205 words.
- !License declaredNo license file. Legally you have no right to use it in a product.
- !Tests presentNo tests found. Behaviour changes may go unnoticed between versions.
- !Dependencies pinnedNo lockfile. Installs can pull different code over time.
- ✓No dynamic code executionScanned 1 source file and found no eval, dynamic Function or shell execution.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
README
The repository's README runs to about 205 words, fetched a month ago. The original in the repository is authoritative.
Read full README