一个获取实时股票数据服务和分析的MCP服务器
Wellknown found it in public sources; nobody has proven control of it yet. Claiming takes one click if the repository is under your GitHub account, or a small file on your domain otherwise. Verified owners get the badge, 15-minute checks, status alerts, edits that outrank crawled data, and a ranking boost.
Agents can do it too: POST https://wellknown.network/api/v1/claims with {"agent":"real-time-stock-mcp-service","method":"well_known_file"} — machine-readable steps at claim.json, guide at /docs/claim.
Everything here was measured by our prober or read from a registry. Nothing is self-reported.
Attributed to the source that supplied each field. Treated as claims, not facts.
# 实时股票分析 MCP 服务 --- 这是一个实时股票数据服务的MCP服务器。它通过东方财富网和雪球网获取金融数据,并将这些数据以工具的形式暴露给支持MCP的Agent。 > **代码仓库:** https://github.com/DannyWongIsAvailable/real-time-stock-mcp-service.git - 免费免登录获取数据 ## 功能特性 - 📊 查找股票 - 📈 K线数据查询(支持B股,H股,大盘,分时图) - 📉 技术指标分析 (MA,MACD,BOLL,RSI等等) - 💰 基本面数据分析(主营构成、经营范围等) - 📊 财务分析(财务比率、业绩概况等) - 💰 估值分析数据(市盈率、市净率等) - 📈 市场行情跟踪(板块行情、同行对比、资金流向等) - 🤖 智能点评和评分 共34个MCP工具 ## 使用方法 您可以通过以下3种方式使用本服务: ### 1. 魔搭社区免费云资源一键部署 您可以在魔搭社区MCP实验场中在线体验该服务,也支持客户端远程连接(streamable HTTP或SSE协议) https://modelscope.cn/mcp/servers/DannyWong/real-time-stock-mcp ### 2. 本地stdio模式(安装软件包运行) 添加以下配置: ```json { "mcpServers": { "stock-mcp": { "command": "uvx", "args": [ "real-time-stock-mcp-service" ], "env": { "EASTMONEY_COOKIE": "从浏览器复制的东方财富 Cookie", "XUEQIU_COOKIE": "从浏览器复制的雪球 Cookie" } } } } ``` ### 3. 本地stdio模式(源代码运行) ```json { "mcpServers": { "stock-mcp": { "command": "path/to/python.exe", "args": ["-m", "stock_mcp"], "cwd": "path/to/real-time-stock-mcp-service", "env": { "EASTMONEY_COOKIE": "从浏览器复制的东方财富 Cookie", "XUEQIU_COOKIE": "从浏览器复制的雪球 Cookie" } } } } ``` > **注意:** 将路径替换为你的实际项目路径。 ### Cookie 环境变量 部分接口(如东方财富 datacenter、雪球实时行情/K 线)需要浏览器 Cookie 才能正常访问。请在 MCP 配置的 `env` 字段中设置: | 环境变量 | 说明 | |----------|------| | `EASTMONEY_COOKIE` | 东方财富 Cookie,用于 datacenter、push2 等接口 | | `XUEQIU_COOKIE` | 雪球 Cookie,用于实时行情、K 线等接口 | | `LOG_LEVEL` | 可选,日志级别,默认 `INFO` | **获取 Cookie:** 1. 浏览器登录 [eastmoney.com](https://www.eastmoney.com) 或 [xueqiu.com](https://xueqiu.com) 2. 打开开发者工具(F12)→ Network → 任意请求 → Request Headers 3. 复制 `Cookie` 字段的完整内容,填入 MCP 配置对应环境变量 Cookie 会过期,若出现 403 或数据异常,重新复制并更新配置后重启 MCP 服务即可。 > **安全提示:** 请勿将 Cookie 写入源码或提交到 Git,仅保存在本机 MCP 配置中。 #### 视频教程参考: - [火遍全网的MCP是什么?怎么用?如何自己开发一个MCP服务?一个视频带你入门!](https://www.bilibili.com/video/BV13R5EzbE6E/?spm_id_from=333.337.search-card.all.click&vd_source=08fc400fe0cfc7eaa723687b764b29f3) - [Cherry Stud…
Mapped onto the structured taxonomy from declared text and observed tool names. Confidence shown for derived entries.
Every source is kept verbatim. Field changes are logged as events.