Skip to main content
Glama
akshare-one-mcp

akshare-one-mcp

AKShare One MCP サーバー

鍛冶屋のバッジ

akshare-oneをベースにしたMCPサーバーで、中国株式市場データへのインターフェースを提供します。過去の株価データ、リアルタイムデータ、ニュースデータ、財務諸表などの金融情報を取得するためのツールセットを提供します。

ツール

get_hist_data

過去の株価データを取得する入力パラメータ:

  • シンボル(文字列):株式コード

  • interval (文字列): 時間間隔 ('分','時','日','週','月','年')

  • interval_multiplier(数値、オプション):間隔の乗数(デフォルト:1)

  • start_date (文字列、オプション): YYYY-MM-DD形式の開始日 (デフォルト: '1970-01-01')

  • end_date (文字列、オプション): YYYY-MM-DD形式の終了日 (デフォルト: '2030-12-31')

  • 調整(文字列、オプション):調整タイプ('none'、'qfq'、'hfq')(デフォルト:'none')

  • source (文字列、オプション): データソース ('eastmoney', 'sina') (デフォルト: 'eastmoney')

get_realtime_data

リアルタイムの株価データを取得する入力パラメータ:

  • シンボル(文字列、オプション): 株式コード

  • source (文字列、オプション): データソース (デフォルト: 'eastmoney')

get_news_data

株式関連のニュースデータを取得する入力パラメータ:

  • シンボル(文字列):株式コード

  • source (文字列、オプション): データソース (デフォルト: 'eastmoney')

get_balance_sheet

会社の貸借対照表データを取得する入力パラメータ:

  • シンボル(文字列):株式コード

  • source (文字列、オプション): データソース (デフォルト: 'sina')

get_income_statement

会社の損益計算書データを取得する入力パラメータ:

  • シンボル(文字列):株式コード

  • source (文字列、オプション): データソース (デフォルト: 'sina')

get_cash_flow

会社のキャッシュフロー計算書データを取得する入力パラメータ:

  • シンボル(文字列):株式コード

  • source (文字列、オプション): データソース (デフォルト: 'sina')

get_inner_trade_data

企業インサイダー取引データを取得する入力パラメータ:

  • シンボル(文字列、オプション): 株式コード

  • source (文字列、オプション): データソース (デフォルト: 'xueqiu')

Related MCP server: A股实时行情MCP服务器

使用方法

Smithery経由でインストール

Smithery経由で Claude Desktop 用の akshare-one-mcp を自動的にインストールするには:

npx -y @smithery/cli install @zwldarren/akshare-one-mcp --client claude

uv経由でインストール

uv を使用して PyPI から直接インストールします。

uv pip install akshare-one-mcp

次の構成を追加します。

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

ローカルソースコード経由でインストールする

  1. このリポジトリをクローンします:

    git clone https://github.com/zwldarren/akshare-one-mcp.git
    cd akshare-one-mcp
  2. まだインストールしていない場合は、 uvをインストールしてください。

  3. 依存関係をインストールします:

    uv sync
  4. 次の構成を追加します。

    "mcpServers": {
        "akshare-one-mcp": {
            "command": "uv",
            "args": [
                "--directory",
                "/path/to/akshare-one-mcp",
                "run",
                "akshare-one-mcp"
            ]
        }
    }

Available Tools

10 tools
get_balance_sheetGet Balance SheetAInspect

Get company balance sheet data.

With fallback on, the sources are tried as 'sina' and 'eastmoney_direct', starting with the requested one.

Inputs: symbol (required), source, fallback, recent_n. Returns: result

get_cash_flowGet Cash FlowAInspect

Get company cash flow statement data.

With fallback on, the sources are tried as 'sina' and 'eastmoney_direct', starting with the requested one.

Inputs: symbol (required), source, fallback, recent_n. Returns: result

get_financial_metricsGet Financial MetricsAInspect

Get key financial metrics from the three major financial statements.

With fallback on, the sources are tried as 'sina' and 'eastmoney_direct', starting with the requested one.

Inputs: symbol (required), source, fallback, recent_n. Returns: result

get_hist_dataGet Hist DataAInspect

Get historical stock market data. 'eastmoney_direct' support all A,B,H shares

With fallback on, the sources are tried as 'eastmoney', 'eastmoney_direct', 'sina' and 'ths', starting with the requested one.

Inputs: symbol (required), adjust, source, end_date, +6 more. Returns: result

get_income_statementGet Income StatementAInspect

Get company income statement data.

With fallback on, the sources are tried as 'sina' and 'eastmoney_direct', starting with the requested one.

Inputs: symbol (required), source, fallback, recent_n. Returns: result

get_inner_trade_dataGet Inner Trade DataBInspect

Get company insider trading data.

Inputs: symbol (required). Returns: result

get_news_dataGet News DataAInspect

Get stock-related news data.

With fallback on, the sources are tried as 'eastmoney' and 'ths', starting with the requested one.

Inputs: symbol (required), source, fallback, recent_n. Returns: result

get_realtime_dataGet Realtime DataAInspect

Get real-time stock market data. 'eastmoney_direct' support all A,B,H shares

With fallback on, the sources are tried as 'eastmoney_direct', 'eastmoney', 'xueqiu' and 'ths', starting with the requested one.

Inputs: source, symbol, fallback. Returns: result

get_time_infoGet Time InfoBInspect

Get current time with ISO format, timestamp, and the last trading day.

Inputs: no named parameters. Returns: object

get_valuationGet ValuationAInspect

Get daily valuation history: PE (TTM and static), PB, PEG, price/cash, price/sales, share counts and market cap.

The upstream is Eastmoney's per-stock valuation series, called through akshare rather than akshare-one: akshare-one has no valuation domain yet, so there is no ako.get_valuation to route through and nothing in providers.py to fall back over. Every other data tool goes through that layer, and this one should move onto it as soon as upstream gains the domain.

No other source publishes the same daily panel, so there is no source or fallback parameter: a failure surfaces instead of being answered from a series with different fields.

Unlike the other tools, the records keep the upstream's Chinese field names verbatim (数据日期, PE(TTM), ...), because akshare-one's English vocabulary does not cover this domain and inventing one here would pre-empt it.

Inputs: symbol (required), recent_n. Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.8/5.0

    Scored across 10 tools

    Disambiguation4/5

    Each tool maps to a distinct data domain: valuation, the three statements, derived metrics, historical vs. real-time prices, news, insider trades, and time info. The only mild overlap is get_financial_metrics versus the individual statement tools, though the derived-metrics framing keeps them separable. The get_valuation description also signals an inconsistent output vocabulary (Chinese field names) that an agent must notice, but it doesn't confuse tool selection.

    Naming Consistency5/5

    Every tool follows the same get_<noun> snake_case pattern, e.g. get_balance_sheet, get_hist_data, get_realtime_data. No mixed conventions or stray verbs; the surface reads predictably.

    Tool Count5/5

    Ten tools is a well-scoped set for an A-share market data server, with each entry covering a distinct data family. Nothing appears redundant or padded.

    Completeness4/5

    The core surface is strong: fundamentals (three statements + metrics + valuation), price history, real-time quotes, news, insider trades, and a time helper for the last trading day. Notable gaps remain around symbol resolution (no search/list-tickers tool to map a company name to a code) and adjacent data like dividends or index/macro series, which agents will have to work around externally.

    Maintenance

    ActivityActive
    ResponsivenessLimited data

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      MCP server that wraps SFC financial data API into 32 tools for comprehensive A-share market data, including real-time quotes, rankings, limit-up statistics, news, themes, financials, charts, research reports, and watchlists.
      -
    • A
      license
      A
      quality
      D
      maintenance
      An MCP server that gives AI assistants direct, structured access to China A-share market data.
      3
      Apache 2.0