agu-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., "@agu-mcp 查一下贵州茅台的实时行情"
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.
agu-mcp — A股行情分析 MCP Server
让 Claude 直接查询和分析 A 股数据!实时行情、K线、技术指标、基本面、AI选股,一站式搞定。
✨ 功能
工具 | 说明 |
| 实时行情(价格、涨跌幅、PE/PB、市值、52周高低) |
| 批量行情查询 |
| K线数据(日/周/月,支持前复权) |
| 技术指标(MACD/RSI/KDJ/布林带/均线系统) |
| 股票搜索(代码/名称/拼音) |
| 行业/概念板块涨跌排行 |
| 资金流向(主力/散户/大单/中单/小单) |
| 基本面数据(ROE/毛利率/负债率/营收/利润) |
| 新闻公告 |
| 智能选股(PE、PB、技术指标、均线排列等条件) |
Related MCP server: AI-Kline MCP Server
🚀 快速开始
安装
# 克隆项目
cd agu-mcp
npm install
npm run build配置 Claude Code
项目自带了 .mcp.json,重启 Claude Code 即可自动加载。
或者在 ~/.claude/mcp.json 中添加全局配置:
{
"mcpServers": {
"agu": {
"command": "node",
"args": ["path/to/agu-mcp/dist/index.js"]
}
}
}使用示例
"查一下贵州茅台的实时行情"
"分析600519的MACD和RSI指标"
"今天哪些行业板块涨得好?"
"筛选PE在10-20之间、MACD金叉的股票"
"查看宁德时代近5日的资金流向"🏗 技术架构
agu-mcp/
├── src/
│ ├── index.ts # 入口 + 服务注册
│ ├── config.ts # 配置(缓存TTL、数据源)
│ ├── tools/ # 10个MCP工具实现
│ │ ├── quote.ts # 实时行情
│ │ ├── kline.ts # K线数据
│ │ ├── indicators.ts # 技术指标
│ │ ├── search.ts # 股票搜索
│ │ ├── sector.ts # 板块行情
│ │ ├── moneyflow.ts # 资金流向
│ │ ├── fundamentals.ts # 基本面
│ │ ├── news.ts # 新闻公告
│ │ ├── screening.ts # AI选股
│ │ └── formatters.ts # 输出格式化
│ ├── data/
│ │ ├── eastmoney.ts # 东方财富HTTP适配器
│ │ └── cache.ts # 内存+SQLite缓存
│ ├── analysis/
│ │ ├── indicators.ts # 技术指标计算引擎
│ │ └── screening.ts # 选股筛选引擎
│ └── utils/
│ ├── stockCode.ts # 股票代码解析
│ └── logger.ts # 日志工具
└── dist/ # 编译输出📊 数据来源
东方财富 HTTP API(免费,无需注册,无需API Key)
腾讯行情接口(备用)
所有数据均为公开行情数据
💡 注意事项
数据源为东方财富公开接口,仅供个人学习研究使用
高频请求可能被限流,缓存策略已内置(实时行情5秒,K线1分钟等)
非交易时段返回的是最近一个交易日的数据
本工具不构成任何投资建议
📜 License
MIT
Available Tools
10 toolsai_stock_screeningB
智能选股筛选 - 根据PE/PB/技术指标/均线排列等条件筛选A股
Inputs: limit, pb_max, pe_max, pe_min, +8 more.
get_batch_quotesB
批量获取多只股票实时行情
Inputs: codes (required).
get_fundamentalsA
获取A股基本面数据(营收/利润/ROE/毛利率/负债率等)
Inputs: code (required).
get_klineA
获取A股历史K线数据(日/周/月,前复权)
Inputs: code (required), period, end_date, start_date.
get_money_flowA
获取A股资金流向数据(主力/散户净流入、大单中单小单分布)
Inputs: code (required), days.
get_realtime_quoteB
获取A股实时行情(当前价、涨跌幅、成交量、PE/PB、市值等)
Inputs: code (required).
get_sector_performanceB
获取A股行业板块/概念板块涨跌幅排名
Inputs: top, type.
get_stock_newsC
获取个股相关新闻公告
Inputs: code (required), limit.
get_technical_indicatorsB
计算A股技术指标(MACD、RSI、KDJ、布林带、均线系统)
Inputs: code (required), period.
search_stocksA
搜索A股股票(支持代码、名称、拼音模糊搜索)
Inputs: keyword (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 10 tools
Each tool targets a distinct aspect of A-share market data: quotes, klines, indicators, search, sector, money flow, fundamentals, news, and screening. The only minor overlap between single and batch quotes is clearly differentiated by description. No ambiguity in tool selection.
Most tools follow a consistent 'get_noun' pattern (get_realtime_quote, get_kline, etc.), but 'search_stocks' and 'ai_stock_screening' deviate from the verb-noun convention. This is a minor inconsistency that does not hinder readability or predictability.
With 10 tools, the server is well-scoped for a comprehensive A-share data and analysis platform. Each tool covers a distinct data type or analysis function, and the count is within the ideal range for usability.
The tool set covers the full spectrum of stock market data needs: real-time quotes, historical klines, technical analysis, fundamental data, news, sector performance, money flow, and advanced screening. No obvious gaps for a data-focused A-share server.
Maintenance
Related MCP Connectors
China A-share & equity research MCP server (回声投研) for market quotes, filings, financials, fund flows, concepts & sentiment.
China A-share market data for research, backtesting and AI agents via MCP.
MCP server for real-time China A-share stock quotes, indices and market data.
China A-share market data over MCP: 22 tools for quotes, K-line, financials, money flow, top-trader boards, sectors, macro, convertible bonds and factor screening. Five tools need no API key, so you can connect and try it immediately.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenance基于Model Context Protocol (MCP) 的A股实时行情查询服务器,支持查询A股实时价格、历史K线数据、财务信息及市场概况。43 PyPI8MIT
- FlicenseNot gradedqualityDmaintenanceMCP server for A-share stock technical analysis and AI prediction, enabling LLM-based interaction to analyze stocks.345-
- AlicenseCqualityCmaintenance提供A股实时行情、历史K线、财务报表、技术指标等全方位数据查询的MCP服务器,支持盘中即时更新及批量查询。6729MIT
- FlicenseNot gradedqualityDmaintenance提供股票数据查询的MCP服务器,支持股票信息、K线历史、财务指标等市场数据获取。1-