Are you the author? Sign in to claim
📈 东方财富MCP服务器 | A股实时行情+主力资金+板块数据+K线 | Claude Code/Cursor通用
🇨🇳 让 Claude / Cursor / Codex 等 MCP 客户端直接查询 A 股实时数据 — 免 API Key、开箱即用
👆 在 Claude Desktop 中直接用自然语言查询 A 股行情和主力资金
mcp-eastmoney 是基于 Model Context Protocol 的 A 股数据服务器,让 AI 助手能直接调用东方财富的实时行情、主力资金、板块资金流和 K 线数据。
push2delay.eastmoney.com),无需 API Keyuvx mcp-eastmoney 一键运行| Tool | 说明 | 示例 |
|---|---|---|
get_stock_quote | 获取实时行情(价格、涨跌、成交量、PE、换手率) | get_stock_quote(code="300750") |
search_stock | 按关键词/拼音/代码搜索股票 | search_stock(keyword="宁德") |
main_fund_rank | 主力资金净流入排名(超大单/大单/中单/小单) | main_fund_rank(market="all", limit=10) |
sector_fund_flow | 行业/概念板块资金流向 + 领涨股 | sector_fund_flow(kind="industry", limit=10) |
get_kline | 历史 K 线(日/周/月线,前复权) | get_kline(code="600519", period="daily", count=30) |
uvx mcp-eastmoney
pip install mcp-eastmoney
mcp-eastmoney
编辑 ~/Library/Application Support/Claude/claude_desktop_config.json(macOS)或 %APPDATA%\Claude\claude_desktop_config.json(Windows):
{
"mcpServers": {
"eastmoney": {
"command": "uvx",
"args": ["mcp-eastmoney"]
}
}
}
重启 Claude Desktop,即可看到 5 个新工具。
📚 完整集成教程:
examples/CLAUDE_DESKTOP.md— 含故障排查 + 50+ 实战 prompts (sample_prompts.md)
在 Cursor 设置 → MCP 中添加:
{
"mcpServers": {
"eastmoney": {
"command": "uvx",
"args": ["mcp-eastmoney"]
}
}
}
向 Claude 提问:
你: 帮我看一下宁德时代现在的股价和主力资金情况
Claude (自动调用
get_stock_quote+main_fund_rank): 宁德时代(300750)当前 ¥394.85,涨 3.31%,成交 162.79亿。今日主力净流入 19.74亿,居全市场第一,其中超大单净流入 15.04亿,机构资金高度集中…
你: 今天哪些行业板块资金流入最多?
Claude (调用
sector_fund_flow):
- 有色金属:+144.09亿(领涨股 金钼股份 +10.0%)
- 电力设备:+91.76亿(领涨股 宁德时代)
- 工业金属:+83.69亿…
{
"code": "300750",
"name": "宁德时代",
"price": 394.85,
"change": 12.65,
"change_pct": 3.31,
"open": 389.99,
"high": 399.54,
"low": 383.30,
"prev_close": 382.20,
"volume": 414208,
"amount": "162.79亿",
"turnover_rate": 0.97,
"pe": 12.65
}
欢迎 PR!计划中的功能:
MIT
mcp-eastmoney is an MCP (Model Context Protocol) server that exposes China's A-share stock market data to AI assistants — powered by Eastmoney's free public APIs.
uvx mcp-eastmoney| Tool | Description |
|---|---|
get_stock_quote | Real-time quote (price, change, volume, PE, turnover) |
search_stock | Search by keyword / pinyin / code |
main_fund_rank | Main capital net inflow ranking (super-large / large / medium / small orders) |
sector_fund_flow | Industry / concept sector capital flow with leading stocks |
get_kline | Historical OHLCV (daily / weekly / monthly, forward-adjusted) |
Install with uvx:
uvx mcp-eastmoney
Add to Claude Desktop config:
{
"mcpServers": {
"eastmoney": {
"command": "uvx",
"args": ["mcp-eastmoney"]
}
}
}
Data is delayed (~15 min) and provided "as-is" by Eastmoney. Not financial advice. Use responsibly.
MIT
Run Claude Code as an MCP server so any agent can delegate coding tasks to it
Browser automation using accessibility snapshots instead of screenshots
Google's universal MCP server supporting PostgreSQL, MySQL, MongoDB, Redis, and 10+ databases
Official GitHub integration for repos, issues, PRs, and CI/CD workflows