Skip to main content

AKShare MCP Server

Project description

akshare_mcp

AKShare数据接口的MCP Server封装

项目背景

AKShare提供了上千个数据接口,但Github上提供的服务都只支持少量接口,所以本项目将所有接口都暴露出来,方便用户使用。

安装

  1. 在虚拟环境下执行pip install akshare_mcpuv 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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

iflow_mcp_wukan1986_akshare_mcp-0.1.3.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page