金融数据集 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包管理器
安装
克隆此存储库:
git clone https://github.com/financial-datasets/mcp-server cd mcp-server如果您没有安装 uv,请安装它:
# macOS/Linux curl -LsSf https://astral.sh/uv/install.sh | sh # Windows curl -LsSf https://astral.sh/uv/install.ps1 | powershell安装依赖项:
# 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设置环境变量:
# 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运行服务器:
uv run server.py
连接到 Claude Desktop
如果你还没有安装Claude Desktop
创建或编辑 Claude Desktop 配置文件:
# macOS mkdir -p ~/Library/Application\ Support/Claude/ nano ~/Library/Application\ Support/Claude/claude_desktop_config.json添加以下配置:
{ "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
替换为此项目的绝对路径。重启Claude桌面
您现在应该看到 Claude Desktop 的工具菜单中提供的财务工具(锤子图标)
尝试向克劳德询问以下问题:
“苹果最近的损益表是怎样的?”
“显示特斯拉股票的当前价格”
“获取 MSFT 从 2024 年 1 月 1 日至 2024 年 12 月 31 日的历史价格”
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.
Tools
MCP 服务器通过模型上下文协议接口为 AI 助手提供对股票市场数据的访问,包括财务报表、股票价格和市场新闻。
Related Resources
Related MCP Servers
- AsecurityAlicenseAqualityA 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 -72MIT License
- -securityAlicense-qualityAn MCP server that integrates with the AlphaVantage financial data API, providing access to stock market data, technical indicators, and fundamental financial information.Last updated -MIT License
- -securityFlicense-qualityProvides 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 -
- AsecurityFlicenseAqualityMCP 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 -402