Introduction

In DSH / Agent development, when adding a set of external data tools to the toolchain, issues such as dependency installation, API keys, hardcoded paths, and inconsistent MCP frame formats are often encountered. Below is an introduction to helibeiqi/dsh-quant-data-mcp: a zero-dependency MCP stdio server general template + A-share data out-of-the-box example, which can be installed as a bundle for DeepSeek Harness (dsh).

What is this

dsh-quant-data-mcp is a zero-dependency MCP stdio server general template + A-share data out-of-the-box example, which can be installed as a bundle for DeepSeek Harness (dsh). The maintainer is helibeiqi.

It only uses Node.js built-in modules, requiring no pnpm, npm install, or building; it uses public key-free data sources (East Money / Tencent); paths are fully environment variableized and parsed via !!js process.env.X when dsh starts; and it is implemented according to the official MCP NDJSON frame format.

The current package.json version is 0.2.0. Runtime requirements:

Node.js >= 18
DSH v0.1.0-rc.6 and above

Core Features

Below lists the verified core capabilities:

  1. Zero dependency: Only uses Node.js built-in modules, requiring no pnpm, npm install, or building.

  2. No API key: Uses public key-free data sources (East Money / Tencent).

  3. Paths fully environment variableized: Resolved via !!js process.env.X when dsh starts.

  4. Implemented according to MCP official NDJSON frame format.

  5. Can be installed as a DeepSeek Harness (dsh) bundle.

  6. Provides the following 6 tools:

a_share_daily
quote_snapshot
quote_batch
financials
northbound
sectors
  1. a_share_daily supports East Money and Tencent data source fallback.

  2. Supports enabling server-side logging via QUANT_MCP_LOG.

Installation and Enablement

Windows / PowerShell One-click Install

Execute the following in PowerShell:

pwsh -File setup.ps1

You can also specify parameters as needed:

pwsh -File setup.ps1 -DshHome <DshHome> -Node <node>

Manual Install

When installing manually, first copy the bundle directory:

<DshHome>\profiles\node_modules\dsh-quant-data-mcp\

Then, in the package.json of the web profile, add the following bundle name to the dsh.profile.bundles array:

"dsh-quant-data-mcp"

Environment Variables

Before starting dsh, you need to set the following required variables:

QUANT_MCP_NODE
QUANT_MCP_SERVER
QUANT_MCP_CWD

These three variables are required and have no default value.

Optional settings:

QUANT_MCP_LOG

No logs are written when QUANT_MCP_LOG is not set.

Verification

After installing and restarting dsh, you can perform the following checks:

  1. Check port listening:
netstat -ano | findstr 8787
  1. Check the node subprocess in Task Manager.

  2. If QUANT_MCP_LOG is set, view the 6 tools from tools/list in the logs:

a_share_daily
quote_snapshot
quote_batch
financials
northbound
sectors

If you only want to verify the MCP server protocol separately, you can also use an MCP SDK client, such as StdioClientTransport + Client, and execute sequentially:

connect
listTools
callTool

Typical Usage

After installing and setting environment variables, dsh-quant-data-mcp starts as a dsh bundle and exposes the aforementioned 6 tools in tools/list.

Among them, a_share_daily supports East Money and Tencent data source fallback. If you need to troubleshoot server behavior, you can set QUANT_MCP_LOG and view the server-side logs.

Applicable Scenarios and Notes

This plugin is suitable for two types of purposes: one is to register a set of local A-share data MCP tools in dsh; the other is to use the server inside as a zero-dependency MCP stdio server template to replace with your own tools and data sources.

It is a template + example, not an all-in-one quantitative platform.

The plugin runs with the current dsh process permissions. Before installing, check the source code and confirm the license terms. Current materials do not specify a clear license type, only mentioning that the files in package.json contains LICENSE.

Usage Notes:

  1. Requires Node.js >= 18, supports DSH v0.1.0-rc.6 and above.

  2. dsh upgrades will reset bundle-related patches; after upgrading, you need to run again:

pwsh -File setup.ps1
  1. Some networks may block certain endpoints of East Money push2*.eastmoney.com; a_share_daily has automatic fallback.

  2. Materials list multiple data endpoints that have been tested as unavailable; reuse is prohibited.

  3. East Money amounts are mostly in Yuan; the server uniformly converts to 100 million Yuan via /1e8.

  4. This is a pure local stdio process; it does not write to the system directory or register system services.

Uninstall

If you need to remove it, you can process it in the following order:

  1. Delete from dsh.profile.bundles:
"dsh-quant-data-mcp"
  1. Delete the bundle directory:
<DshHome>\profiles\node_modules\dsh-quant-data-mcp
  1. Clean up the following environment variables as needed:
QUANT_MCP_NODE
QUANT_MCP_SERVER
QUANT_MCP_CWD
QUANT_MCP_LOG

Closing

The value of dsh-quant-data-mcp lies in providing a directly applicable dsh bundle: zero dependencies, key-free, paths environment variableized, implemented according to the MCP official NDJSON frame format, and accompanied by an A-share data example.

Directory page and source code address are as follows:

https://www.skillhub.cn/plugins/helibeiqi/dsh-quant-data-mcp
https://github.com/helibeiqi/dsh-quant-data-mcp