Skip to main content
Glama
financial-datasets

Financial Datasets MCP Server

Official

金融数据集 MCP 服务器

介绍

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

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

Related MCP server: AlphaVantage 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 日的历史价格”

Install Server
A
security – no known vulnerabilities
A
license - permissive license
-
quality - not tested

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

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