Skip to main content
Glama

Financial Datasets MCP Server

Official
MIT License
322
  • Apple

金融数据集 MCP 服务器

介绍

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

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

可用工具

该 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 日的历史价格”
-
security - not tested
A
license - permissive license
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

MCP 服务器通过模型上下文协议接口为 AI 助手提供对股票市场数据的访问,包括财务报表、股票价格和市场新闻。

  1. 介绍
    1. 可用工具
      1. 设置
        1. 先决条件
        2. 安装
      2. 连接到 Claude Desktop

        Related MCP Servers

        • A
          security
          A
          license
          A
          quality
          A Model Context Protocol (MCP) server that provides real-time access to financial market data through the free Alpha Vantage API. This server implements a standardized interface for retrieving stock quotes and company information.
          Last updated -
          5
          30
          Python
          MIT License
          • Apple
        • -
          security
          A
          license
          -
          quality
          An MCP server that integrates with the AlphaVantage financial data API, providing access to stock market data, technical indicators, and fundamental financial information.
          Last updated -
          Python
          MIT License
          • Linux
          • Apple
        • -
          security
          F
          license
          -
          quality
          Provides real-time access to global stock market data including current prices, historical charts, and company financial information through a Model Context Protocol (MCP) server for AI assistants.
          Last updated -
          TypeScript
          • Linux
          • Apple
        • A
          security
          F
          license
          A
          quality
          MCP server that exposes Alpaca Market Data & Broker API as tools, enabling access to financial data like stock bars, assets, market days, and news through the Message Control Protocol.
          Last updated -
          4
          102
          2
          TypeScript

        View all related MCP servers

        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/financial-datasets/mcp-server'

        If you have feedback or need assistance with the MCP directory API, please join our Discord server