
A stateless streamable HTTP MCP server for interacting with the official source of government spending data.

A Model Context Protocol server that connects to the Tushare Pro API to provide financial data querying for AI assistants.
Smart Financial MCP is cataloged as an MCP server attributed to yuhai0. A Model Context Protocol server that connects to the Tushare Pro API to provide financial data querying for AI assistants. It is categorized under finance crypto. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.
能力定义尚未审核。未核验的采集内容不会作为可信接口展示。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for Smart Financial MCP are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
README.md · 797e6c3beeec · 采集于 2026-11-13 12:39:54 UTC
保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。
当前显示最后一次成功采集的文档快照,请以来源页面为准。
基于 Model Context Protocol (MCP) 的智能股票数据助手,提供与 AI 助手自然对话获取股票数据的能力。
Smart Financial MCP 是一个基于 Model Context Protocol 的金融数据 MCP 服务器,连接 Tushare Pro API,为投资研究、财务分析、行业分析从业者及 AI 助手用户提供便捷的股票数据查询能力。
graph TD
subgraph "用户交互层"
AI[AI助手<br/>如Claude]
end
subgraph "MCP服务层"
MCP[MCP服务器]
Prompt[提示模板]
end
subgraph "数据服务层"
Server[server.py]
Tushare[Tushare Pro API]
end
subgraph "安全与配置"
Env[环境变量]
Token[Token管理]
end
AI --> |自然语言查询| MCP
MCP --> |调用工具函数| Server
Server --> |API请求| Tushare
Tushare --> |返回数据| Server
Server --> |格式化结果| MCP
MCP --> |自然语言响应| AI
Env --> |安全存储| Token
Token --> |验证| Server
首次使用需要配置 Tushare Pro API Token:
setup_tushare_token 工具进行配置{
"mcpServers": {
"smart-financial-mcp": {
"command": "uvx",
"args": ["smart-financial-mcp"],
"env": {
"TUSHARE_TOKEN": "your-tushare-token"
}
}
}
}
| 工具名称 | 功能描述 | 主要参数 | 返回内容 |
|---|---|---|---|
| Token 管理 | |||
check_token_status | 检查 Tushare token 配置状态 | 无 | Token 状态信息和配置指导 |
| 股票基础信息 | |||
get_stock_basic_info | 获取股票基础信息 | ts_code(股票代码)name(股票名称) | 股票代码、名称、所属地区、行业、上市日期、市场类型等 |
search_stocks | 智能搜索股票 | keyword(必填,搜索关键词) | 匹配的股票列表,支持模糊匹配代码和名称 |
| 行情数据 | |||
get_daily_stock_price | 获取 A 股日线行情数据 | ts_code(股票代码,支持多股票)trade_date(交易日期)start_date、end_date(日期范围) | 开盘价、最高价、最低价、收盘价、涨跌额、涨跌幅、成交量、成交额、统计分析 |
get_realtime_stock_price | 获取实时行情数据 | ts_code(必填,支持通配符如 6*.SH) | 实时价格、涨跌幅、成交信息、市场统计 |
get_etf_daily_price | 获取 ETF 日线行情 | ts_code(基金代码)trade_date(交易日期)start_date、end_date(日期范围) | ETF 价格走势、成交数据、市场统计 |
get_index_daily_price | 获取指数日线行情 | ts_code(必填,指数代码如 399300.SZ)trade_date(交易日期)start_date、end_date(日期范围) | 指数点位、涨跌幅、成交量、成交额 |
get_futures_daily_price | 获取期货日线行情 | trade_date(交易日期)ts_code(合约代码)exchange(交易所代码)start_date、end_date(日期范围) | 期货价格、结算价、持仓量、成交数据 |
| 基本面分析 | |||
get_daily_basic_indicators | 获取每日基本面指标 | ts_code(股票代码)trade_date(交易日期)start_date、end_date(日期范围) | PE、PB、PS、股息率、换手率、量比、总股本、流通股本、市值数据 |
get_income_statement | 获取利润表数据并生成智能分析 | ts_code(必填,股票代码)start_date、end_date(日期范围)report_type(报告类型,默认合并报表) | 财务数据表格、收入分析、盈利能力分析、成本费用分析、每股指标分析 |
| 市场数据 | |||
get_stock_limit_prices | 获取涨跌停价格数据 | ts_code(股票代码)trade_date(交易日期)start_date、end_date(日期范围) | 涨停价、跌停价、全市场涨跌停统计、价格区间分析 |
get_financial_news | 获取财经快讯新闻 | src(必填,新闻来源)start_date、end_date(必填,时间范围) | 新闻列表、时间分布统计、热门关键词提取 |
| 提示模板 | |||
income_statement_query | 利润表查询引导模板 | 无 | 利润表查询的详细指导和示例 |
指数代码示例:
期货交易所:
新闻来源:
"查询平安银行的基本信息"
"搜索包含新能源的股票"
"获取贵州茅台最近一个月的股价"
"分析平安银行2023年的利润表"
"查询沪深300指数最近一周的走势"
"获取今日涨停股票统计"
"获取今日财联社快讯"
"查询创业板ETF的实时行情"
"分析中证500的每日基本面指标"
~/.tushare_mcp/.env 文件git checkout -b feature/AmazingFeaturegit commit -m 'Add some AmazingFeature'git push origin feature/AmazingFeature# 克隆仓库
git clone https://github.com/YUHAI0/smart-financial-mcp.git
cd smart-financial-mcp
# 安装开发依赖
pip install -e ".[dev]"
# 运行代码质量检查
black smart_financial_mcp/
isort smart_financial_mcp/
flake8 smart_financial_mcp/
mypy smart_financial_mcp/
本项目采用 MIT 协议开源 - 查看 LICENSE 文件了解详情。
⭐ 如果这个项目对你有帮助,请给它一个星标!
🚀 开始使用 Smart Financial MCP,让 AI 助手成为你的专业金融数据分析师!
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for Smart Financial MCP from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/smart-finacial-mcp)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。
尚无已审核的包 / 镜像标识,暂不展示下载统计。
Alternative and complementary servers in the same category

A stateless streamable HTTP MCP server for interacting with the official source of government spending data.

A hosted, remote MCP server for Fortnox that lets AI assistants answer questions from a company's bookkeeping and propose changes for approval before writing them.

OptimistFi is a read-only remote MCP server that provides perpetual futures market data, perps prop firm rules and pricing, and US equity investment research.