stock-mcp
by huweihua123·★ 146·综合分 48
专业的金融市场数据 MCP 服务器,支持A股/美股/加密货币,提供HTTP API供AI Agent使用。
概述
Stock MCP 是一个综合性的金融数据服务,提供MCP和HTTP API两种接口。它提供A股、美股、ETF、指数和加密货币的市场数据,以及技术分析、基本面分析、资金流分析、新闻检索和文件处理功能。该服务器采用模块化架构,具有能力和提供者插件,支持多种认证模式,并包含处理国内外数据源的代理边界。
试试问 AI
装完之后,这里有 5 个你可以让 AI 做的事:
什么时候选它
当您需要为 AI 智能体提供统一的市场数据服务,同时支持国内外多个数据源和技术分析功能时,选择 stock-mcp。
什么时候不要选它
如果您需要专业衍生品交易支持,或者需要对市场数据进行写入操作(这是一个只读服务),请不要选择这个。
此 server 暴露的工具
从 README 抽取出 8 个工具get_kline_dataRetrieve K-line/candlestick data for a given financial symbol
calculate_technical_indicatorsCalculate technical indicators like RSI, MACD, moving averages for a symbol
get_market_dataFetch market data including price, volume, and basic info for financial symbols
get_fundamental_dataRetrieve fundamental and financial metrics for companies
get_money_flowAnalyze money flow and chip distribution for financial instruments
search_newsSearch financial news using Tavily's unified search
get_filingsRetrieve SEC/EDGAR filings or A-share company announcements
export_dataExport financial data as CSV or JSON for code execution workflows
说明:Tool names inferred from MCP call example and described capabilities. The README describes functionality but doesn't explicitly list all tool names with complete signatures.
可对比工具
安装
安装
Docker Compose(推荐)
git clone https://github.com/huweihua123/stock-mcp.git
cd stock-mcp
cp .env.example .env
docker compose up -d --build本地开发
uv sync --dev
cp .env.example .env
export STOCK_MCP_AUTH_MODE=none
uv run python -m uvicorn src.server.app:app --host 127.0.0.1 --port 9898Claude Desktop配置
添加到 claude_desktop_config.json:
{
"mcpServers": {
"stock-mcp": {
"command": "uv",
"args": ["run", "python", "-c", "import src.server.mcp.server as m; m.create_mcp_server().run(transport='stdio')"],
"env": {
"STOCK_MCP_AUTH_MODE": "none"
}
}
}
}FAQ
- 支持哪些金融市场?
- 该服务器支持A股、美股、ETF、指数和加密货币,提供市场数据、技术分析、基本面分析和新闻功能。
- 如何认证服务器?
- 支持三种认证模式:none(用于开发)、token(静态Bearer令牌)和jwt(OIDC/JWT兼容,用于生产环境)。
stock-mcp 对比
最后更新于 · 由 README + GitHub 公开数据自动生成。