Ashare MCP Server

Ashare-MCP 是一个基于 [mpquant/Ashare](https://github.com/mpquant/Ashare) 的股票行情数据服务,通过 MCP (Model Context Protocol) 提供 A 股市场的行情数据查询功能。

Local serverstdioPython

What is the Ashare MCP Server?

Ashare-MCP 是一个基于 mpquant/Ashare 的股票行情数据服务,通过 MCP (Model Context Protocol) 提供 A 股市场的行情数据查询功能。

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
pandasrequests
code证券代码,如'sh000001'或'000001.XSHG'
end_date结束日期,格式为'YYYY-MM-DD'
count获取的K线数量
frequencyK线周期,可选值:'1m', '5m', '15m', '30m', '60m', '1d', '1w', '1M'
fields返回字段列表

How to install the Ashare MCP Server

{
  "mcpServers": {
    "ashare-mcp": {
      "command": "python",
      "args": [
        "-m",
        "ashare_mcp"
      ],
      "alwaysAllow": [
        "get_price"
      ],
      "disabled": false
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Example prompts to try

  • “Use Ashare MCP to pandas.”
  • “Use Ashare MCP to code.”
  • “Use Ashare MCP to end date.”

Frequently asked questions

Ashare-MCP 是一个基于 [mpquant/Ashare](https://github.com/mpquant/Ashare) 的股票行情数据服务,通过 MCP (Model Context Protocol) 提供 A 股市场的行情数据查询功能。 Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.