MCPInstall
akshare_mcp logo

akshare_mcp

by wukan1986 17 stars wukan1986/akshare_mcp

AKShare的MCP Server

READMEmain

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

More Web Scraping & Data Collection MCP servers

Similar servers from the same category.

BuiltWith

builtwith

Integrates with BuiltWith's technology detection API to identify and analyze web technologies used on specified domains, providing marketers and developers with comprehensive website stack information.

Web Scraping & Data Collection

Provides a bridge to ElfProxy's dynamic IP proxy service for retrieving country-specific proxy IPs, enabling IP rotation, geo-targeting, and bypassing regional restrictions.

WebOptimize

UniFuncs

unifuncs

Provides a bridge to the UniFuncs API for web search and web reading capabilities through TypeScript implementation with Express and NPX commands.

search

Integrates with Bocha, a Chinese search engine, to provide web search capabilities with rich structured data from billions of documents across multiple domains and languages.

search