AIGroup Market MCP
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@AIGroup Market MCP What's the latest news on AI stocks?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
🤖 AIGroup Market MCP Server
基于 Tushare 和百度新闻的金融数据 MCP(Model Context Protocol)服务器,面向股票、基金、宏观经济、财经资讯等多类查询场景。
📌 项目概览
aigroup-market-mcp 提供统一的金融数据 MCP 接口,适合在 Claude Desktop、RooCode、各类 MCP 客户端或自建 AI 工作流中使用。
核心能力包括:
股票、指数、基金、宏观经济等结构化金融数据查询
财经新闻与 7×24 热点资讯检索
A 股 / 港股 / 美股等多市场支持
技术指标计算与格式化输出
stdio 与 HTTP 两种接入方式
Related MCP server: FinanceMCP
✨ 核心特性
数据能力
Tushare API:股票、基金、宏观经济、财务等权威数据
百度新闻抓取:补充财经新闻资讯与热点信息
多市场覆盖:A 股、美股、港股、外汇、期货、加密货币等
工具能力
行情数据:日 K、分钟 K、指数与技术指标
财务数据:利润表、资产负债表、现金流、财务指标
基金与债券:基金净值、基金经理、可转债等
市场交易数据:大宗交易、资金流向、融资融券、龙虎榜
新闻与宏观数据:财经新闻、7×24 热点、宏观经济指标
技术实现
MCP SDK 1.27.1:使用现代
McpServerAPIZod 参数校验:提高类型安全与输入可靠性
Streamable HTTP 传输:更适合远程部署与服务化接入
通知防抖优化:降低批量场景下的网络噪音
🚀 快速开始
环境要求
Node.js >= 18
npm >= 8
可用的
TUSHARE_TOKEN
方式一:直接运行(推荐)
export TUSHARE_TOKEN=your_tushare_token_here
npx -y aigroup-market-mcp如需 HTTP 模式:
export TUSHARE_TOKEN=your_tushare_token_here
npx -y aigroup-market-mcp-http方式二:本地源码运行
git clone https://github.com/jackdark425/aigroup-market-mcp.git
cd aigroup-market-mcp
npm install
npm run build
export TUSHARE_TOKEN=your_tushare_token_here
npm run start:stdioHTTP 模式:
npm run start:http⚙️ 环境变量
TUSHARE_TOKEN=your_tushare_token_here
TUSHARE_API_URL=https://api.tushare.pro
PORT=3000
NODE_ENV=development获取 Tushare Token:https://tushare.pro
🔌 MCP 客户端配置
使用 npx
{
"mcpServers": {
"aigroup-market-mcp": {
"command": "npx",
"args": ["-y", "aigroup-market-mcp"],
"env": {
"TUSHARE_TOKEN": "your_tushare_token_here"
}
}
}
}使用本地构建结果
{
"mcpServers": {
"aigroup-market-mcp": {
"command": "node",
"args": ["build/index.js"],
"cwd": "/path/to/aigroup-market-mcp",
"env": {
"TUSHARE_TOKEN": "your_tushare_token_here"
}
}
}
}🛠️ 主要工具
工具名称 | 功能描述 | 数据来源 |
| 获取当前东八区时间戳 | 系统生成 |
| 财经媒体新闻搜索 | 百度新闻爬虫 |
| 股票历史行情数据 | Tushare |
| 分钟 K 线数据 | Tushare |
| 股票指数数据 | Tushare |
| 宏观经济数据 | Tushare |
| A 股公司综合表现数据 | Tushare |
| 公募基金数据 | Tushare |
| 基金经理信息查询 | Tushare |
| 可转债数据 | Tushare |
| 大宗交易数据 | Tushare |
| 资金流向数据 | Tushare |
| 融资融券数据 | Tushare |
| 美股公司业绩数据 | Tushare |
| 中证指数成分股数据 | Tushare |
| 龙虎榜机构成交明细 | Tushare |
| 7×24 热点新闻 | Tushare |
📚 文档
🏗️ 项目结构
aigroup-market-mcp/
├── src/
│ ├── index.ts
│ ├── httpServer.ts
│ ├── config.ts
│ ├── core/
│ ├── tools/
│ └── utils/
├── docs/
├── exports/
├── csv_exports/
└── README.md🔧 开发
npm install
npm run build
npm run dev常用脚本:
npm run start:stdionpm run start:httpnpm run devnpm run watch
🤝 贡献
欢迎通过 Issue 或 Pull Request 提交改进建议。
基本流程:
Fork 仓库
创建功能分支
提交更改
推送分支
发起 Pull Request
📄 许可证与使用说明
本项目采用 MIT License。
这意味着你可以在遵守 MIT 许可证文本的前提下,自由地:
使用本项目进行个人或商业用途
复制、修改、合并和分发代码
将本项目作为更大系统的一部分进行二次开发
在保留原始版权与许可证声明的情况下发布衍生版本
请注意:
你必须保留 原仓库中的版权声明与 MIT 许可证文本
本项目按“原样”提供(AS IS),作者不对适销性、特定用途适用性或非侵权提供担保
第三方数据源条款不等于 MIT:使用 Tushare、新闻源等服务时,仍需自行遵守其服务条款、调用限制与数据合规要求
完整授权文本见 LICENSE。
🙏 致谢
参考项目
guangxiangdebizi/FinanceMCP
参考范围: 整体产品方向、金融数据 MCP 组织方式、部分能力设计
数据与生态支持
Tushare:优秀的金融数据服务平台
百度新闻:丰富的财经资讯来源
MCP 社区:为跨平台工具集成提供协议与生态支持
📞 支持
Available Tools
19 toolsbasic_infoBasic InfoA
获取基础信息数据,包括股票列表、交易日历、新股列表、港股列表、美股列表、指数列表、ETF列表
Inputs: info_type (required), exchange, list_status, start_date, +3 more.
block_tradeBlock TradeA
获取大宗交易数据,包括成交价格、成交量、买卖双方营业部等详细信息
Inputs: start_date (required), end_date (required), code.
company_performanceCompany PerformanceB
获取上市公司综合表现数据,包括业绩预告、业绩快报、财务指标、分红送股、主营业务构成、股东变动数据、管理层信息、公司基本信息、资产负债表、现金流量表、利润表等完整财务报表数据,支持CSV/JSON格式导出
Inputs: ts_code (required), data_type (required), start_date (required), end_date (required), +3 more.
company_performance_hkCompany Performance HkB
获取港股上市公司综合表现数据,包括利润表、资产负债表、现金流量表等财务报表数据
Inputs: ts_code (required), data_type (required), start_date (required), end_date (required), +2 more.
company_performance_usCompany Performance UsA
获取美股上市公司综合表现数据,包括利润表、资产负债表、现金流量表和财务指标数据
Inputs: ts_code (required), data_type (required), start_date (required), end_date (required), +1 more.
convertible_bondConvertible BondA
获取可转债非行情数据,支持两种查询方式:1)使用issue类型按时间范围查询可转债发行数据;2)使用info类型按代码查询可转债详细信息
Inputs: data_type (required), ts_code, start_date, end_date.
csi_index_constituentsCsi Index ConstituentsA
获取中证指数公司(CSI)指数(含行业/主题)的区间行情、成分权重与估值/财务摘要(PE TTM、PB、股息率、ROE、ROA、净利率、每股经营现金流、资产负债率、营收同比、资产周转率、毛利率、三费比率、现金分红率)。
Inputs: index_code (required), start_date (required), end_date (required).
current_timestamp🕐 当前时间戳A
获取当前东八区(中国时区)的时间戳,包括年月日时分秒信息
Inputs: format.
dragon_tiger_instDragon Tiger InstB
龙虎榜机构成交明细(top_inst)。必填:交易日期;可选:股票TS代码。返回表格包含买入/卖出/净额及上榜理由等。
Inputs: trade_date (required), ts_code.
finance_newsFinance NewsA
通过真正的搜索API获取主流财经媒体的新闻内容,支持单个或多个关键词智能搜索
Inputs: query (required).
fund_dataFund DataA
获取公募基金全面数据,包括基金列表、基金经理、基金净值、基金分红、基金持仓等数据,支持CSV/JSON格式导出
Inputs: ts_code (required), data_type (required), start_date, end_date, +3 more.
fund_manager_by_nameFund Manager By NameA
根据基金经理姓名查询基金经理详细信息,包括管理的基金列表、个人背景、任职经历等
Inputs: name (required), ann_date.
hot_news_7x24Hot News 7x24B
7x24热点:从Tushare新闻接口获取最新的财经、政治、科技、体育、娱乐、军事、社会、国际等新闻
Inputs: limit.
index_dataIndex DataB
获取指定股票指数的数据,例如上证指数、深证成指等,支持CSV/JSON格式导出
Inputs: code (required), start_date (required), end_date (required), output_format, +1 more.
macro_econMacro EconB
获取宏观经济数据,包括Shibor利率、LPR利率、GDP、CPI、PPI、货币供应量、PMI、社融数据、Shibor报价、Libor、Hibor等,支持CSV/JSON格式导出
Inputs: indicator (required), start_date (required), end_date (required), output_format, +1 more.
margin_tradeMargin TradeB
获取融资融券相关数据,支持多种数据类型:标的股票、交易汇总、交易明细、转融券汇总等
Inputs: data_type (required), start_date (required), ts_code, end_date, +1 more.
money_flowMoney FlowB
获取个股和大盘资金流向数据,包括主力资金、超大单、大单、中单、小单的净流入净额和净占比数据
Inputs: start_date (required), end_date (required), ts_code.
stock_dataStock DataC
获取指定股票/加密资产的历史行情数据,支持A股、美股、港股、外汇、期货、基金、债券逆回购、可转债、期权、加密货币(通过Binance)
Inputs: code (required), market_type (required), start_date, end_date, +3 more.
stock_data_minutesStock Data MinutesB
获取分钟K线数据:A股/加密。支持1MIN/5MIN/15MIN/30MIN/60MIN,时间范围需提供起止日期时间
Inputs: code (required), market_type (required), start_datetime (required), end_datetime (required), +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 19 tools
每个工具针对独立的金融数据类型(如股票行情、基本面、新闻、基金等),边界清晰。即使有多个指数相关工具(如index_data和csi_index_constituents),它们分别覆盖不同指数范围和详细程度,不会混淆。
所有工具名称采用蛇形命名法(snake_case),且多为名词短语(如basic_info, stock_data),模式一致。但少数名称包含数字(hot_news_7x24)或缩写(csi_index_constituents),略有偏差,整体仍保持良好一致性。
19个工具覆盖股票、基金、债券、宏观经济、新闻等多个子领域,每个工具承担明确的数据获取职责,没有冗余。虽然数量略高于典型范围(3-15),但对于全面的金融市场数据服务而言,仍然合理。
工具集覆盖了行情、基本面、新闻、宏观、资金流向等主要数据维度,基本满足投资分析需求。但缺少针对行业板块、期货基本面等特定数据的工具,存在细微缺口,整体较为全面。
Maintenance
Related MCP Connectors
China A-share & equity research MCP server (回声投研) for market quotes, filings, financials, fund flows, concepts & sentiment.
MCP server for real-time China A-share stock quotes, indices and market data.
Financial data MCP for market, company, news, macro, and US Congress research.
MCP server for Financial Modeling Prep API with 250+ financial data tools
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceA Model Context Protocol server that provides intelligent stock data assistance through Tushare's financial data API, enabling users to query comprehensive stock information, financial data, and market indices through natural language.51MIT
- AlicenseBqualityDmaintenanceProfessional financial data MCP server integrating Tushare API, providing real-time financial data and technical indicators analysis for stocks, indices, funds, bonds, and cryptocurrencies across multiple markets (A-share, US, HK, crypto).1893 npmMIT
- AlicenseAqualityDmaintenanceA financial data server integrating Tushare API to provide sector indexes, market trends, and constituent stock data from East Money and Flush. It enables MCP-compatible clients to query comprehensive industry and concept block information through stdio or HTTP modes.625 npm44Apache 2.0
- AlicenseNot gradedqualityDmaintenanceA MCP server that provides HTTP-based access to Tushare financial data, enabling AI assistants to query stocks, indices, funds, and more.2MIT