akshare_mcp
If you are the rightful owner of akshare_mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
AKShare MCP Server provides a comprehensive interface to access all AKShare data endpoints, facilitating user interaction with over a thousand data interfaces.
akshare_mcp
AKShare
数据接口的MCP Server
封装
项目背景
AKShare
提供了上千个数据接口,但Github
上提供的服务都只支持少量接口,所以本项目将所有接口都暴露出来,方便用户使用。
安装
- 在虚拟环境下执行
pip install akshare_mcp
或uv pip install akshare_mcp
, - 运行
python -m akshare_mcp -h
检查是否安装成功,留意打印的配置文件路径
配置
{
"mcpServers": {
"akshare_mcp": {
"command": "D:\\Users\\Kan\\miniconda3\\envs\\py312\\python.exe",
"args": [
"-m",
"akshare_mcp",
"--format",
"markdown"
]
}
}
}
注意
- 1000+接口,全部暴露成工具,将会消耗大量
Token
- 部分MCP客户端只支持少量的工具,例如
Trae
最多支持40个工具
所以,请一定在使用前配置需要使用的接口。
- 运行
python -m akshare_mcp -h
,查看配置文件的位置。例如d:\Users\Kan\miniconda3\envs\py312\Lib\site-packages\akshare_mcp\config.py
- 编辑配置文件
config.py
,添加需要使用的接口。接口名参考https://akshare.akfamily.xyz/data/index.html
- MCP客户端刷新重连服务端