Project description
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客户端刷新重连服务端
如果site-packages\akshare_mcp\config.py无权限修改,可以从github上复制config.py文件到任意路径,然后使用--config参数
python -m akshare_mcp --config D:\config.py
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file iflow_mcp_wukan1986_akshare_mcp-0.1.3.tar.gz.
File metadata
-
Download URL: iflow_mcp_wukan1986_akshare_mcp-0.1.3.tar.gz
- Upload date:
-
Size: 5.4 kB
- Tags: Source
-
Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.27 {"installer":{"name":"uv","version":"0.9.27","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
Hashes for iflow_mcp_wukan1986_akshare_mcp-0.1.3.tar.gz
| Algorithm |
Hash digest |
|
| SHA256 |
ddfacfd63f7606a47f524cf17702f5ff502d5798edfdc0443f5e2383b72340b5
|
|
| MD5 |
aadaf169da4852acde636e08b59a736b
|
|
| BLAKE2b-256 |
8acb010148b7cc93001a6472ece86209cd89d5e0dc6d366c8f8fc28078fd3241
|
|
See more details on using hashes here.
File details
Details for the file iflow_mcp_wukan1986_akshare_mcp-0.1.3-py3-none-any.whl.
File metadata
-
Download URL: iflow_mcp_wukan1986_akshare_mcp-0.1.3-py3-none-any.whl
- Upload date:
-
Size: 5.8 kB
- Tags: Python 3
-
Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.27 {"installer":{"name":"uv","version":"0.9.27","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
Hashes for iflow_mcp_wukan1986_akshare_mcp-0.1.3-py3-none-any.whl
| Algorithm |
Hash digest |
|
| SHA256 |
f511022d38c0ff9086cb1174b82114357df139788c39b7f3576ba6bbd215e8f9
|
|
| MD5 |
a267c3fb99848ca46c33f632d1a0ffd4
|
|
| BLAKE2b-256 |
d760fd0f058416034013432274801be96f0f595150258930127f62fb78d47f2e
|
|
See more details on using hashes here.