akshare_mcp
About
aksharemcp is an MCP (Model Context Protocol) server wrapper that exposes all data interfaces from the AKShare financial data library as tools for MCP clients. It is built for users who need access to AKShare's full dataset without manually limiting to a small subset.
Details
- Author
- wukan1986
- GitHub stars
- 15
- Downloads
- 248
- Categories
- Other
Jump to
- Exposes all 1,000+ AKShare data interfaces as MCP tools
- Supports custom selection of interfaces via configuration files
- Outputs data in markdown format for readability
- Allows external configuration file path via --config parameter
- Compatible with any MCP client that supports tool invocation
Setting up with Highlight
This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:
- Download and install Highlight from highlightai.com/download
- Navigate to the plugins tab and select "Add Custom Plugin"
-
Configure the plugin with the settings below
Plugin Name
akshare_mcpCommand (node, npx, python, etc.)Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.
- Enable "Start Automatically" if you want the plugin to start when Highlight launches
From the repository
Install via pip install akshare_mcp or uv pip install akshare_mcp, then run python -m akshare_mcp -h to verify installation and note the configuration file path. In your MCP client’s JSON configuration, set the command to your Python interpreter and args to ["-m", "akshare_mcp", "--format", "markdown"]. To avoid excessive token usage, edit the config.py file (found via -h) to list only the interfaces you need, or use --config <path> to point to a custom config file. After editing, reconnect the MCP client.
Claude Desktop / Cursor
Paste into your MCP client config file to install this server.
{
"mcpServers": {
"akshare_mcp": {
"akshare_mcp": {
"command": "D:\\Users\\Kan\\miniconda3\\envs\\py312\\python.exe",
"args": [
"-m",
"akshare_mcp",
"--format",
"markdown"
]
}
}
}
}
McpServers
{
"akshare_mcp": {
"command": "D:\\Users\\Kan\\miniconda3\\envs\\py312\\python.exe",
"args": [
"-m",
"akshare_mcp",
"--format",
"markdown"
]
}
}
akshare_mcp
AKShare数据接口的MCP Server封装
项目背景
AKShare提供了上千个数据接口,但Github上提供的服务都只支持少量接口,所以本项目将所有接口都暴露出来,方便用户使用。
安装
1. 在虚拟环境下执行pip install akshare_mcp或uv pip install akshare_mcp,
2. 运行python -m akshare_mcp -h检查是否安装成功,留意打印的配置文件路径
配置
{
"mcpServers": {
"akshare_mcp": {
"command": "D:\\Users\\Kan\\miniconda3\\envs\\py312\\python.exe",
"args": [
"-m",
"akshare_mcp",
"--format",
"markdown"
]
}
}
}
注意
1. 1000+接口,全部暴露成工具,将会消耗大量Token
2. 部分MCP客户端只支持少量的工具,例如Trae最多支持40个工具
所以,请一定在使用前配置需要使用的接口。
1. 运行python -m akshare_mcp -h,查看配置文件的位置。例如d:\Users\Kan\miniconda3\envs\py312\Lib\site-packages\akshare_mcp\config.py
2. 编辑配置文件config.py,添加需要使用的接口。接口名参考https://akshare.akfamily.xyz/data/index.html
3. MCP客户端刷新重连服务端
如果site-packages\akshare_mcp\config.py无权限修改,可以从github上复制config.py文件到任意路径,然后使用--config参数
python -m akshare_mcp --config D:\config.py
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.



