MCP Server for akshare stock data - A股股票数据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":"akshare-stock-mcp","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.
# akshare-stock-mcp 📈 > 基于 MCP (Model Context Protocol) 标准协议的 A 股股票数据服务 <div align="center"> <h3>让任何 AI Agent 读懂 A 股</h3> <p>Claude Desktop / OpenClaw / Hermes / Cursor / 任何MCP客户端 · 20个专业工具 · 智能缓存 · 标准协议</p> <p> <img src="https://img.shields.io/badge/Protocol-MCP_1.0-blue?style=flat-square" alt="MCP"> <img src="https://img.shields.io/badge/Python-3.10+-3776ab?style=flat-square" alt="Python"> <img src="https://img.shields.io/badge/Data-Akshare-orange?style=flat-square" alt="Akshare"> <img src="https://img.shields.io/badge/Transport-stdio%20%7C%20SSE%20%7C%20HTTP-brightgreen?style=flat-square" alt="Transport"> <img src="https://img.shields.io/badge/License-MIT-lightgrey?style=flat-square" alt="License"> </p> </div> --- **akshare-stock-mcp** 是连接 AI 与 [akshare](https://github.com/akfamily/akshare) 金融数据的桥梁。它实现了 Model Context Protocol (MCP) 标准协议,让任何支持 MCP 的 AI 客户端能够直接调用 **20 个**专业股票数据接口——实时行情、历史K线、财务报表、北向资金、龙虎榜等。 **零 API Key**:akshare 是免费开源库,无需注册、无需 Token,装上就能用。 --- ## 🚀 快速开始(3步,60秒) ### 第 1 步:安装 ```bash git clone <repository-url> akshare-mcp-server cd akshare-mcp-server # 创建虚拟环境 python3 -m venv .venv source .venv/bin/activate # 安装依赖 pip install -e . ``` ### 第 2 步:验证 ```bash # 测试 Server 能否启动 python -m akshare_stock_mcp.server --help ``` 输出应显示: ``` usage: server [-h] [--transport {stdio,sse,streamable-http}] [--host HOST] [--port PORT] ``` ### 第 3 步:连接你的 AI 客户端 选择你使用的客户端,复制对应的配置 ↓ --- ## 🔌 客户端接入指南 ### Claude Desktop 编辑 `~/Library/Application Support/Claude/claude_desktop_config.json`: ```json { "mcpServers": { "akshare-stock": { "command": "/你的路径/akshare-mcp-server/.venv/bin/python", "args": ["-m", "akshare_stock_mcp.server"], "cwd": "/你的路径/akshare-mcp-server/src" } } } ``` 重启 Claude Desktop,输入 "帮我查一下贵州茅台的实时行情" 测试。 --- ### OpenClaw 编辑 `~/.openclaw/openclaw.json`: ```json { "mcpServers": { "akshare-stock": { "command": "/你的路径/akshare-mcp-server/.venv/bin/python", "ar…
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.