ZA

zwldarren/akshare-one-mcp

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

243 stars 52 forks 品質 82 トレンド 38MIT

zwldarren/akshare-one-mcp は、https://github.com/zwldarren/akshare-one-mcp. からインポートされたMCPサーバー候補です。

概要

zwldarren/akshare-one-mcp は、https://github.com/zwldarren/akshare-one-mcp. からインポートされたMCPサーバー候補です。

概要(AI 翻訳)

英語 | 中文

概要

akshare-oneを基盤としたMCPサーバーで、中国株式市場のデータを包括的にインターフェースしています。過去の株式データ、リアルタイムデータ、ニュースデータ、財務諸表など、財務情報を取得するための強力なツールセットを提供します。

利用可能なツール

自動ソースのフォールバック

get_news_dataと[get_inner_trade_dataを除くすべてのツールは、優先データソースのsourceパラメータと、fallbackパラメータ(デフォルトでオン)を受け取り、そのソースがレイズまたは空フレームを返す時に同じドメインの他のソースを試すかを決めるパラメータを用います:

ドメイン 注文 試行
歴史的 eastmoney → eastmoney_direct → sina
リアルタイム eastmoney_direct → eastmoney → xueqiu(記号が与えられない場合はスキップ)
財務諸表 sina ⇄ eastmoney_direct

リクエストされたsourceは常に最初に試されます;順序はフォールバックのみを支配します。akshare-oneはすべてのソースをドメインの宣言済みカラムに投影するため、フォールバックしてもフィールド名や順序を変更することはできません。

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

AKShare One MCP Server

Overview

An MCP server based on akshare-one, providing comprehensive interfaces for China stock market data. It offers a set of powerful tools for retrieving financial information including historical stock data, real-time data, news data, and financial statements.

Available Tools

Automatic source fallback

Except for get_inner_trade_data, whose upstream exposes a single source, every data tool takes a source parameter for the preferred data source and a fallback parameter (on by default) that decides whether the other sources of the same domain are tried when that source raises or returns an empty frame:

Domain Order tried
Historical eastmoney → eastmoney_direct → sina → ths
Real-time eastmoney_direct → eastmoney → xueqiu → ths (the last two are skipped when no symbol is given)
News eastmoney → ths
Financial statements sina ⇄ eastmoney_direct

The requested source is always tried first; the order only governs the fallback. Because akshare-one projects every source onto its domain’s declared columns, falling back cannot change the field names or their order. When every source fails, the error lists each one and why it failed; when every source succeeds but has no data, an empty result is returned. Set fallback to false to pin a single source — a failure then surfaces directly, which is useful when you need to know exactly where the numbers came from.

The source that actually served a call is logged under the akshare_one_mcp.providers logger.

Market Data Tools

get_hist_data

Get historical stock market data with support for multiple time periods and adjustment methods.

  • symbol (string, required): Stock code (e.g. ‘000001’)
  • interval (string, optional): Time interval (‘minute’,‘hour’,‘day’,‘week’,‘month’,‘year’) (default: ‘day’)
GitHub で README 全文を見る

インストール

uvx akshare-one-mcp
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "akshare-one-mcp": { "command": "uvx", "args": ["akshare-one-mcp"] } } }