Introduction

In the DeepSeek Harness (DSH) ecosystem, accessing Chinese stock market data usually requires handling complex network requests or packaging APIs manually. xby-akshare is a Model Context Protocol (MCP) server that provides Chinese stock market data through the AKShare library. It runs as a DSH plugin, transforming AKShare’s data interfaces into tools that agents can directly call, and supports features such as real-time quotes, historical data, and fundamental analysis.

Core Features

This plugin provides a set of tool interfaces for retrieving Chinese stock market data through the AKShare library. The main features cover market overview, individual stock information, sector data, real-time quotes, historical data, financial analysis, disclosure announcements, and fund flows.

Installation and Enablement

Before installation, make sure DeepSeek Harness is already installed. Add the plugin from the command line:

dsh plugin --profile web add github:xby_skill/xby-akshare

Typical Usage

After installation, agents can call the following tools. Before use, an API key usually needs to be configured first.

  1. Set the API key
    Call set_xby_apikey in the chat to set the key. This key is automatically persisted and remains valid after a restart.

  2. Get the market overview
    Call get_stock_sse_summary to obtain an overview of stock data from the Shanghai Stock Exchange, or call get_stock_szse_summary to obtain a market overview of the Shenzhen Stock Exchange.

  3. Get individual stock information
    Call get_stock_individual_info_em to obtain individual stock information from East Money, or call get_stock_individual_basic_info_xq to obtain company profile information from Xueqiu Finance.

  4. Get historical data
    Call get_stock_a_hist to obtain historical K-line data for A-shares, or call get_stock_zh_a_hist_tx to obtain Tencent Securities daily historical data, as well as get_stock_zh_a_hist_min_em to obtain daily intraday quotes.

  5. Get financial data and disclosures
    Call get_stock_financial_analysis_indicator to obtain financial indicator data, or call get_stock_zh_a_disclosure_report_cninfo to obtain information disclosure announcements from CNINFO.

  6. Get fund flows and rankings
    Call get_stock_lhb_detail_em to obtain Dragon-Tiger List details, or call get_stock_individual_fund_flow to obtain individual stock fund flow data.

Notes

  1. API key
    This plugin requires an API key, which must be obtained by registering on the Xiao Benyang official website.

  2. Local development
    The plugin supports local development and debugging mode. It can be installed from a local directory or debugged using cordis.patch.yml.

Summary

xby-akshare provides DSH with rich access capabilities to Chinese stock market data. Through the AKShare library, developers can conveniently obtain various types of information, from real-time quotes to historical financial data. For more details, see the GitHub repository.