Ashareport

io.github.CloudCorpRecords由 GitHub 账号 CloudCorpRecords 发布v0.1.0更新于 Nov 3, 2026

A股股票数据:历史行情、实时行情、新闻、财务报表和指标。

AI 翻译由 AI 模型根据下方的原文描述翻译,可能有误。

原文描述

A-share stock data: history, realtime, news, statements and metrics.

已验证STDIO仅桌面金融数据与分析

概览

Ashareport 的本地 MCP 服务;无需登录;STDIO。

暂无 AI 概览:以下信息来自注册中心条目和服务本身。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Ashareport,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

ashareport

ashareport exposes nine A-share (China mainland) stock-data tools — history, realtime quotes, news, balance sheet, income statement, cash flow, inner trades, and financial metrics, plus a local time tool — as a command line program and as a stdio MCP server.

How the data tools work (read this first)

The original design runs a Python market-data library in-process. This TypeScript rebuild uses an endpoint executor instead: set

bash
export ASHAREPORT_API_URL="https://your-data-endpoint.example"

and each data tool POSTs JSON {tool, source, params} to {ASHAREPORT_API_URL}/<tool> and returns the endpoint's JSON answer. With the variable unset, data tools return an error: upstream data endpoint not configured: set ASHAREPORT_API_URL .... get_time_info is fully local and needs no endpoint.

Source fallback is implemented locally, in the documented order:

DomainSource order
historicaleastmoney → eastmoney_direct → sina → ths
realtimeeastmoney_direct → eastmoney → xueqiu → ths (xueqiu/ths skipped when no symbol is given)
newseastmoney → ths
statements / metricssina → eastmoney_direct

The requested source is tried first, then the domain order when fallback is not false, stopping at the first non-empty result. If every source fails, the error lists each source and its error. Defaults: interval day, adjust none, recent_n 100 for historical data and 10 for the other recent-N tools.

indicators_list is passed through to the endpoint, not computed locally. get_time_info walks back from today skipping Saturday and Sunday to find the last trading day; exchange holidays are not modelled.

Install

bash
npx @reneturcios/ashareport get_time_infodocker run -i ghcr.io/cloudcorprecords/ashareport   # MCP server

CLI

bash
ashareport get_hist_data --symbol 600519 --interval day --recent-n 20ashareport get_realtime_data --symbol 600519ashareport get_realtime_data            # market-wide, symbol optionalashareport get_news_data --symbol 600519ashareport get_balance_sheet --symbol 600519ashareport get_income_statement --symbol 600519ashareport get_cash_flow --symbol 600519ashareport get_inner_trade_data --symbol 600519ashareport get_financial_metrics --symbol 600519ashareport get_time_infoashareport --version

Exit codes: 0 success, 1 tool error, 2 usage error.

MCP server

bash
npx -y @reneturcios/ashareport mcp
json
{  "mcpServers": {    "ashareport": {      "command": "npx",      "args": ["-y", "@reneturcios/ashareport", "mcp"],      "env": { "ASHAREPORT_API_URL": "https://your-data-endpoint.example" }    }  }}

Tools

ToolRequiredOther parameters
get_hist_datasymbolinterval, interval_multiplier, start_date, end_date, adjust, source, fallback, indicators_list, recent_n
get_realtime_data— (symbol optional)source, fallback
get_news_datasymbolsource, fallback, recent_n
get_balance_sheetsymbolsource, fallback, recent_n
get_income_statementsymbolsource, fallback, recent_n
get_cash_flowsymbolsource, fallback, recent_n
get_inner_trade_datasymbol—
get_financial_metricssymbolsource, fallback, recent_n
get_time_info—— (local: ISO time, Unix timestamp, last trading day)

Development

bash
npm installnpm run build   # tsc -> dist/npm test        # node test runner, fake-fetch only, no networknpm run dev     # run the CLI from source via tsx

License

MIT — see LICENSE.

来源:README.md,提交 d7a1ea8

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.1.0最新Nov 3, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分