Open Markets
@danchev
关于 Open Markets
A Model Context Protocol (MCP) server for agentic retrieval of financial data. This server leverages YFinance to provide a simple and efficient way to access historical stock prices, dividends, stock splits, company information, and other financial metrics.
基本信息
配置
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"yfinance": {
"command": "uvx",
"args": [
"openmarkets@latest"
]
}
}
}工具
71Retrieve analyst recommendations for a given ticker. Args: ticker (str): The symbol of the security. Returns: Any: Analyst recommendations data from the repository.
Retrieve earnings estimates for a given ticker. Args: ticker (str): The symbol of the security. Returns: Any: Earnings estimates data from the repository.
Retrieve EPS (Earnings Per Share) trends for a given ticker. Args: ticker (str): The symbol of the security. Returns: Any: EPS trends data from the repository.
Retrieve a full analysis report for a given ticker, aggregating all available analysis data. Args: ticker (str): The symbol of the security. Returns: dict: Dictionary containing all analysis data for the ticker.
Retrieve growth estimates for a given ticker. Args: ticker (str): The symbol of the security. Returns: Any: Growth estimates data from the repository.
Retrieve price targets for a given ticker. Args: ticker (str): The symbol of the security. Returns: Any: Price targets data from the repository.
Retrieve changes in analyst recommendations for a given ticker. Args: ticker (str): The symbol of the security. Returns: Any: Recommendation changes data from the repository.
Retrieve revenue estimates for a given ticker. Args: ticker (str): The symbol of the security. Returns: Any: Revenue estimates data from the repository.
Retrieve a proxy value for the crypto fear and greed index. Args: tickers (list[str] | None, optional): List of crypto tickers to include. If None, uses a default set. Returns: str: Proxy value or description for the fear/greed index.
Retrieve historical price data for a cryptocurrency. Args: ticker (str): The symbol of the cryptocurrency. period (str, optional): Time period for history. Valid periods: 1d, 5d, 1mo, 3mo, 6mo, 1y, 2y, 5y, 10y, ytd, max. Defaults to '1y'. interval (str, optional): Data interval. Valid intervals: 1m, 2m, 5m, 15m, 30m, 60m, 90m, 1h, 1d, 5d, 1wk, 1mo, 3mo. Defaults to '1d'. Returns: list[CryptoHistory]: List of historical data points.
Retrieve fast information for a specific cryptocurrency. Args: ticker (str): The symbol of the cryptocurrency (e.g., 'BTC'). Returns: CryptoFastInfo: Fast info data for the given ticker.
Retrieve a list of the top cryptocurrencies by market cap or volume. Args: count (int, optional): Number of top cryptocurrencies to fetch. Defaults to 10. Returns: list[CryptoFastInfo]: List of top cryptocurrencies.
Retrieve the balance sheet for a given ticker. Args: ticker (str): The symbol of the security. Returns: list[BalanceSheetEntry]: List of balance sheet entries.
Retrieve EPS (Earnings Per Share) history for a given ticker. Args: ticker (str): The symbol of the security. Returns: list[EPSHistoryEntry]: List of EPS history entries.
Retrieve the financial calendar for a given ticker. Args: ticker (str): The symbol of the security. Returns: FinancialCalendar: Financial calendar data.
Retrieve a full set of financial data for a given ticker, aggregating all available financial statements and records. Args: ticker (str): The symbol of the security. Returns: dict: Dictionary containing all financial data for the ticker.
Retrieve the income statement for a given ticker. Args: ticker (str): The symbol of the security. Returns: list[IncomeStatementEntry]: List of income statement entries.
Retrieve SEC filings for a given ticker. Args: ticker (str): The symbol of the security. Returns: list[SecFilingRecord]: List of SEC filing records.
Retrieve the trailing twelve months (TTM) cash flow statement for a given ticker. Args: ticker (str): The symbol of the security. Returns: list[TTMCashFlowStatementEntry]: List of TTM cash flow statement entries.
Retrieve the trailing twelve months (TTM) income statement for a given ticker. Args: ticker (str): The symbol of the security. Returns: list[TTMIncomeStatementEntry]: List of TTM income statement entries.
Retrieve asset class holdings for a specific fund. Args: ticker (str): The symbol of the fund. Returns: FundAssetClassHolding | None: Asset class holdings data or None if unavailable.
Retrieve the bond holdings for a specific fund. Args: ticker (str): The symbol of the fund. Returns: list[FundBondHolding]: List of bond holdings in the fund.
Retrieve the equity holdings for a specific fund. Args: ticker (str): The symbol of the fund. Returns: list[FundEquityHolding]: List of equity holdings in the fund.
Retrieve general information for a specific fund. Args: ticker (str): The symbol of the fund. Returns: FundInfo: Information about the fund.
Retrieve operations data for a specific fund. Args: ticker (str): The symbol of the fund. Returns: FundOperations | None: Operations data or None if unavailable.
Retrieve an overview for a specific fund. Args: ticker (str): The symbol of the fund. Returns: FundOverview | None: Overview data or None if unavailable.
Retrieve sector weighting data for a specific fund. Args: ticker (str): The symbol of the fund. Returns: FundSectorWeighting | None: Sector weighting data or None if unavailable.
Retrieve the top holdings for a specific fund. Args: ticker (str): The symbol of the fund. Returns: list[FundTopHolding]: List of top holdings in the fund.
Retrieve a full set of holdings data for a given ticker, aggregating all available holdings information. Args: ticker (str): The symbol of the security. Returns: dict: Dictionary containing all holdings data for the ticker.
Retrieve insider purchases for a given ticker. Args: ticker (str): The symbol of the security. Returns: Any: Insider purchases data from the repository.
Retrieve institutional holdings for a given ticker. Args: ticker (str): The symbol of the security. Returns: Any: Institutional holdings data from the repository.
Retrieve major holders for a given ticker. Args: ticker (str): The symbol of the security. Returns: Any: Major holders data from the repository.
Retrieve mutual fund holdings for a given ticker. Args: ticker (str): The symbol of the security. Returns: Any: Mutual fund holdings data from the repository.
Retrieve the current status of major market indices. Returns: dict: Market indices status data.
Retrieve a summary of the overall market performance. Returns: dict: Market summary data.
Retrieve call options for a given ticker and expiration date. Args: ticker (str): The symbol of the security. expiration (date | None, optional): The expiration date. If None, uses the nearest expiration. Returns: list[CallOption] | None: List of call options or None if unavailable.
Retrieve the option contract chain for a given ticker and expiration date. Args: ticker (str): The symbol of the security. expiration (date | None, optional): The expiration date. If None, uses the nearest expiration. Returns: OptionContractChain: The option contract chain data.
Retrieve available option expiration dates for a given ticker. Args: ticker (str): The symbol of the security. Returns: list[OptionExpirationDate]: List of available expiration dates.
Retrieve options filtered by moneyness for a given ticker and expiration date. Args: ticker (str): The symbol of the security. expiration_date (str | None, optional): The expiration date as a string. If None, uses the nearest expiration. moneyness_range (float, optional): The moneyness range for filtering. Defaults to 0.1. Returns: dict: Options data filtered by moneyness.
Retrieve options skew analysis for a given ticker and expiration date. Args: ticker (str): The symbol of the security. expiration_date (str | None, optional): The expiration date as a string. If None, uses the nearest expiration. Returns: dict: Options skew analysis data.
Retrieve options volume analysis for a given ticker and expiration date. Args: ticker (str): The symbol of the security. expiration_date (str | None, optional): The expiration date as a string. If None, uses the nearest expiration. Returns: dict: Volume analysis data.
Retrieve put options for a given ticker and expiration date. Args: ticker (str): The symbol of the security. expiration (date | None, optional): The expiration date. If None, uses the nearest expiration. Returns: list[PutOption] | None: List of put options or None if unavailable.
Retrieve a list of all industries, optionally filtered by sector. Args: sector (str | None): The name of the sector to filter by, or None to retrieve all industries. Returns: list[str]: A list of all industries, or industries in the specified sector.
Retrieve an overview of a specific industry. Args: industry (str): The name of the industry. Returns: IndustryOverview: An overview of the specified industry.
Retrieve a list of top companies within a specific industry. Args: industry (str): The name of the industry. Returns: list[IndustryTopCompaniesEntry]: A list of top companies in the industry.
Retrieve a list of top growth companies within a specific industry. Args: industry (str): The name of the industry. Returns: list[IndustryTopGrowthCompaniesEntry]: A list of top growth companies in the industry.
Retrieve a list of top performing companies within a specific industry. Args: industry (str): The name of the industry. Returns: list[IndustryTopPerformingCompaniesEntry]: A list of top growth companies in the industry.
Retrieve a list of industries within a specific sector. Args: sector (str): The name of the sector. Returns: list[str]: A list of industries in the sector.
Retrieve overview information for a specific sector. Args: sector (str): The name of the sector. Returns: SectorOverview: Overview data for the sector.
Retrieve overview information for a specific sector based on a stock ticker. Args: ticker (str): The stock ticker symbol. Returns: SectorOverview: Overview data for the sector associated with the ticker.
Retrieve a list of research reports within a specific sector. Args: sector (str): The name of the sector. Returns: list[IndustryResearchReportEntry]: A list of research reports in the sector.
Retrieve a list of top companies within a specific sector. Args: sector (str): The name of the sector. Returns: list[SectorTopCompaniesEntry]: A list of top companies in the sector.
Retrieve a list of top companies within a specific sector based on a stock ticker. Args: ticker (str): The stock ticker symbol. Returns: list[SectorTopCompaniesEntry]: A list of top companies in the sector associated with the ticker.
Retrieve a list of top ETFs within a specific sector. Args: sector (str): The name of the sector. Returns: list[SectorTopETFsEntry]: A list of top ETFs in the sector.
Retrieve a list of top mutual funds within a specific sector. Args: sector (str): The name of the sector. Returns: list[SectorTopMutualFundsEntry]: A list of top mutual funds in the sector.
Retrieve corporate actions for a stock. Args: ticker (str): The symbol of the stock. Returns: list[CorporateActions]: List of corporate action records.
Retrieve a summary of dividend data for a stock. Args: ticker (str): The symbol of the stock. Returns: dict: Dividend summary data.
Retrieve dividend history for a stock. Args: ticker (str): The symbol of the stock. Returns: list[StockDividends]: List of dividend records.
Retrieve fast info for a specific stock ticker. Args: ticker (str): The symbol of the stock. Returns: StockFastInfo: Fast info data for the given ticker.
Retrieve a financial summary for a stock. Args: ticker (str): The symbol of the stock. Returns: dict: Financial summary data.
Retrieve an alternative version of the financial summary for a stock. Args: ticker (str): The symbol of the stock. Returns: dict: Financial summary data (version 2).
Retrieve historical price data for a stock. Args: ticker (str): The symbol of the stock. period (str, optional): Valid periods: 1d, 5d, 1mo, 3mo, 6mo, 1y, 2y, 5y, 10y, ytd, max. Defaults to '1y'. interval (str, optional): Valid intervals: 1m, 2m, 5m, 15m, 30m, 60m, 90m, 1h, 1d, 5d, 1wk, 1mo, 3mo. Defaults to '1d'. Returns: list[StockHistory]: List of historical data points.
Retrieve detailed info for a specific stock ticker. Args: ticker (str): The symbol of the stock. Returns: StockInfo: Detailed info data for the given ticker.
Retrieve news items for a stock. Args: ticker (str): The symbol of the stock. Returns: list[NewsItem]: List of news items.
Retrieve price target data for a stock. Args: ticker (str): The symbol of the stock. Returns: dict: Price target data.
Retrieve quick technical indicators for a stock. Args: ticker (str): The symbol of the stock. Returns: dict: Technical indicators data.
Retrieve risk metrics for a stock. Args: ticker (str): The symbol of the stock. Returns: dict: Risk metrics data.
Retrieve stock split history for a stock. Args: ticker (str): The symbol of the stock. Returns: list[StockSplit]: List of stock split records.
Retrieve support and resistance levels for a given ticker and period. Args: ticker (str): The symbol of the security. period (str, optional): Time period for levels (e.g., '6mo'). Defaults to '6mo'. Returns: SupportResistanceLevelsDict: Support and resistance levels data.
Retrieve technical indicators for a given ticker and period. Args: ticker (str): The symbol of the security. period (str, optional): Time period for indicators (e.g., '6mo'). Defaults to '6mo'. Returns: TechnicalIndicatorsDict: Technical indicators data.
Retrieve volatility metrics for a given ticker and period. Args: ticker (str): The symbol of the security. period (str, optional): Time period for metrics (e.g., '1y'). Defaults to '1y'. Returns: VolatilityMetricsDict: Volatility metrics data.
概览
What is Open Markets?
Open Markets is a Model Context Protocol (MCP) server for agentic retrieval of financial market data. It leverages YFinance to access historical stock prices, dividends, stock splits, company information, and other financial metrics. It is designed for LLM applications that support MCP, such as Claude Desktop and Cursor.
How to use Open Markets?
Connect to the server via an MCP-compatible client and call the available tools. The README lists the tools and their arguments but does not provide installation or configuration instructions.
Key features of Open Markets
- Stock information, historical data, and analyst recommendations
- Corporate actions: dividends and stock splits
- Market data: sector performance, indices, trending tickers
- Stock screening by market cap, P/E, yield, sector, and more
- Technical analysis: indicators, volatility, support/resistance
- Options chain, volume analysis, and moneyness filtering
Use cases of Open Markets
- Retrieve historical price data for a stock or multiple tickers
- Gather analyst recommendations and price targets for investment research
- Screen stocks by financial criteria to build watchlists
- Analyze fund/ETF holdings, sector allocation, and performance
- Fetch cryptocurrency info and historical data
FAQ from Open Markets
What data can I retrieve with Open Markets?
You can retrieve stock information, historical prices, dividends, splits, analyst recommendations, price targets, market status, sector performance, index data, screened stocks, technical indicators, options data, financial summaries, fund/ETF profiles, and cryptocurrency data.
Does it support multiple tickers at once?
Yes, tools like get_multiple_tickers and download_bulk_data accept lists of tickers for bulk data retrieval.
Can I get options data?
Yes, the server provides tools for options expiration dates, option chains, volume analysis, and filtering by moneyness.
Is cryptocurrency data available?
Yes, you can get crypto info, historical data, top cryptocurrencies, and a fear/greed proxy using dedicated tools.
How can I find valid periods and intervals for historical data?
Use get_ticker_history_metadata(ticker) to retrieve available periods, intervals, and other metadata for a specific ticker.
金融与商务 分类下的更多 MCP 服务器
Octagon: MCP for Market Data
OctagonAIAn MCP server for public & prediction markets research. Ask natural-language questions and get structured, source-backed answers across SEC filings, earnings transcripts, company financials, stock & crypto market data, and prediction markets news & research. Built for investors,
Alpaca Trading MCP Server
laukikkMCP for the Alpaca trading API to manage stock and crypto portfolios, place trades, and access market data
Polygon.io MCP Server
polygon-ioAn MCP server for Massive.com Financial Market Data
中国股票数据
elsejj这是一个为大模型提供 A 股数据的的 MCP(Model Content Protocol) 服务。
Financial Modeling Prep MCP Server
cdtaitFinancial Modeling Prep MCP Server
评论