Skip to main content
Glama
Financial Datasets MCP Server

Financial Datasets MCP Server

Official

金融数据集 MCP 服务器

介绍

这是一个模型上下文协议 (MCP) 服务器,提供对来自金融数据集的股票市场数据的访问。

它允许 Claude 和其他 AI 助手直接通过 MCP 界面检索损益表、资产负债表、现金流量表、股票价格和市场新闻。

Related MCP server: Yahoo Finance MCP Server

可用工具

该 MCP 服务器提供以下工具:

  • get_income_statements :获取公司的收入报表。

  • get_balance_sheets :获取公司的资产负债表。

  • get_cash_flow_statements :获取公司的现金流量表。

  • get_current_stock_price :获取公司当前/最新价格。

  • get_historical_stock_prices :获取公司的历史股票价格。

  • get_company_news :获取公司新闻。

  • get_available_crypto_tickers :获取所有可用的加密货币代码。

  • get_crypto_prices :获取加密货币的历史价格。

  • get_historical_crypto_prices :获取加密货币的历史价格。

  • get_current_crypto_price :获取加密货币的当前/最新价格。

设置

先决条件

  • Python 3.10 或更高版本

  • uv包管理器

安装

  1. 克隆此存储库:

    git clone https://github.com/financial-datasets/mcp-server
    cd mcp-server
  2. 如果您没有安装 uv,请安装它:

    # macOS/Linux
    curl -LsSf https://astral.sh/uv/install.sh | sh
    
    # Windows
    curl -LsSf https://astral.sh/uv/install.ps1 | powershell
  3. 安装依赖项:

    # Create virtual env and activate it
    uv venv
    source .venv/bin/activate  # On Windows: .venv\Scripts\activate
    
    # Install dependencies
    uv add "mcp[cli]" httpx  # On Windows: uv add mcp[cli] httpx
    
    
  4. 设置环境变量:

    # Create .env file for your API keys
    cp .env.example .env
    
    # Set API key in .env
    FINANCIAL_DATASETS_API_KEY=your-financial-datasets-api-key
  5. 运行服务器:

    uv run server.py

连接到 Claude Desktop

  1. 如果你还没有安装Claude Desktop

  2. 创建或编辑 Claude Desktop 配置文件:

    # macOS
    mkdir -p ~/Library/Application\ Support/Claude/
    nano ~/Library/Application\ Support/Claude/claude_desktop_config.json
  3. 添加以下配置:

    {
      "mcpServers": {
        "financial-datasets": {
          "command": "/path/to/uv",
          "args": [
            "--directory",
            "/absolute/path/to/financial-datasets-mcp",
            "run",
            "server.py"
          ]
        }
      }
    }

    将/path/to/uv替换为which uv的结果,将/absolute/path/to/financial-datasets-mcp替换为此项目的绝对路径。

  4. 重启Claude桌面

  5. 您现在应该看到 Claude Desktop 的工具菜单中提供的财务工具(锤子图标)

  6. 尝试向克劳德询问以下问题:

    • “苹果最近的损益表是怎样的?”

    • “显示特斯拉股票的当前价格”

    • “获取 MSFT 从 2024 年 1 月 1 日至 2024 年 12 月 31 日的历史价格”

Available Tools

11 tools
get_available_crypto_tickersC

Gets all available crypto tickers.

Inputs: no named parameters.

get_balance_sheetsB

Get balance sheets for a company.

Args:
    ticker: Ticker symbol of the company (e.g. AAPL, GOOGL)
    period: Period of the balance sheet (e.g. annual, quarterly, ttm)
    limit: Number of balance sheets to return (default: 4)

Inputs: ticker (required), period, limit.

get_cash_flow_statementsB

Get cash flow statements for a company.

Args:
    ticker: Ticker symbol of the company (e.g. AAPL, GOOGL)
    period: Period of the cash flow statement (e.g. annual, quarterly, ttm)
    limit: Number of cash flow statements to return (default: 4)

Inputs: ticker (required), period, limit.

get_company_newsB

Get news for a company.

Args:
    ticker: Ticker symbol of the company (e.g. AAPL, GOOGL)

Inputs: ticker (required).

get_crypto_pricesC

Gets historical prices for a crypto currency.

Inputs: ticker (required), start_date (required), end_date (required), interval, +1 more.

get_current_crypto_priceA

Get the current / latest price of a crypto currency.

Args:
    ticker: Ticker symbol of the crypto currency (e.g. BTC-USD). The list of available crypto tickers can be retrieved via the get_available_crypto_tickers tool.

Inputs: ticker (required).

get_current_stock_priceB

Get the current / latest price of a company.

Args:
    ticker: Ticker symbol of the company (e.g. AAPL, GOOGL)

Inputs: ticker (required).

get_historical_crypto_pricesB

Gets historical prices for a crypto currency.

Args:
    ticker: Ticker symbol of the crypto currency (e.g. BTC-USD). The list of available crypto tickers can be retrieved via the get_available_crypto_tickers tool.
    start_date: Start date of the price data (e.g. 2020-01-01)
    end_date: End date of the price data (e.g. 2020-12-31)
    interval: Interval of the price data (e.g. minute, hour, day, week, month)
    interval_multiplier: Multiplier of the interval (e.g. 1, 2, 3)

Inputs: ticker (required), start_date (required), end_date (required), interval, +1 more.

get_historical_stock_pricesB

Gets historical stock prices for a company.

Args:
    ticker: Ticker symbol of the company (e.g. AAPL, GOOGL)
    start_date: Start date of the price data (e.g. 2020-01-01)
    end_date: End date of the price data (e.g. 2020-12-31)
    interval: Interval of the price data (e.g. minute, hour, day, week, month)
    interval_multiplier: Multiplier of the interval (e.g. 1, 2, 3)

Inputs: ticker (required), start_date (required), end_date (required), interval, +1 more.

get_income_statementsB

Get income statements for a company.

Args:
    ticker: Ticker symbol of the company (e.g. AAPL, GOOGL)
    period: Period of the income statement (e.g. annual, quarterly, ttm)
    limit: Number of income statements to return (default: 4)

Inputs: ticker (required), period, limit.

get_sec_filingsB

Get all SEC filings for a company.

Args:
    ticker: Ticker symbol of the company (e.g. AAPL, GOOGL)
    limit: Number of SEC filings to return (default: 10)
    filing_type: Type of SEC filing (e.g. 10-K, 10-Q, 8-K)

Inputs: ticker (required), limit, filing_type.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.3/5.0

    Scored across 11 tools

    Disambiguation4/5

    Most tools have distinct purposes, but there is some potential confusion between get_crypto_prices and get_historical_crypto_prices, as their names and descriptions overlap significantly. Other tools are clearly differentiated by resource type (crypto vs. stock vs. financial statements).

    Naming Consistency5/5

    All tools follow a consistent verb_noun pattern with snake_case naming. The pattern 'get_[resource]_[specific]' is applied uniformly across all 11 tools, making them predictable and easy to understand.

    Tool Count5/5

    With 11 tools, the server is well-scoped for financial data access. It covers crypto and stock prices, financial statements, news, and SEC filings, providing comprehensive coverage without being overwhelming or sparse.

    Completeness4/5

    The tool set covers key financial data domains well, including prices, statements, news, and filings. Minor gaps exist, such as no update or delete operations (which may not be needed) and limited filtering options for some tools, but core workflows are fully supported.

    Maintenance

    ActivityInactive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      B
      maintenance
      A Model Context Protocol server built with FastMCP that provides financial data tools for AI agents, enabling them to access and analyze stock market information from Yahoo Finance through natural language queries.
      2
      -
    • A
      license
      A
      quality
      C
      maintenance
      Provides access to real-time stock prices, financial statements, news, and options data via the Model Context Protocol. It enables AI assistants to retrieve comprehensive market data, including historical prices and analyst recommendations, through a standardized interface.
      9
      45 PyPI
      3
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      FinImpulse MCP connects Claude, ChatGPT, Cursor and other AI agents to global market data: stocks, ETFs, mutual funds, indices and forex with price history back to 1970, financial statements, analyst estimates, insider transactions, ETF holdings and SEC filings. Use the hosted endpoint with OAuth or run it locally with npx. Free plan: 500 requests per month, no credit card.
      2
      39
      612 npm
      11
      ISC
    • A
      license
      A
      quality
      C
      maintenance
      MCP server that provides access to SiftingIO market data, including live prices, SEC filings, OHLCV bars, 13F holdings, market status, and economic calendar tools for AI assistants.
      36
      37 npm
      1
      MIT