Skip to main content
Glama
serenity-data-mcp

serenity-data-mcp

Serenity Data Bridge

A portable Codex plugin that gives research agents read-only A-share and US-equity data tools. It combines a concise Agent Skill with a local stdio MCP server and reuses the data layer from wcheng2001-del/TradingAgents-Astock-auto at a pinned commit.

What it provides

  • Prices and volume history

  • Valuation and fundamentals

  • Income, balance-sheet, and cash-flow statements

  • Company news and shareholder/insider activity

  • A-share industry/concept context

  • A-share fund flow, analyst consensus, Dragon-Tiger Board, and lockup signals

The bridge is read-only. It does not place trades or access brokerage accounts.

Related MCP server: akshare-mcp

Research example

The dated NVDA research report demonstrates how to combine bridge output with NVIDIA earnings releases and SEC filings. It includes the data snapshot, calculations, judgment, risks, and source links. Open the HTML file in a browser to read it; the page is static and does not refresh its market data.

Temporary-clone workflow

git clone https://github.com/wcheng2001-del/serenity-data-bridge.git
cd serenity-data-bridge
python scripts/setup.py

Run the CLI directly:

.\.venv\Scripts\serenity-data fundamentals 600519 --as-of 2026-09-25
.\.venv\Scripts\serenity-data fundamentals NVDA --as-of 2026-09-25

Or run the MCP server over stdio:

.\.venv\Scripts\serenity-data-mcp

The setup script creates two local environments: .venv for MCP and .provider-venv for the pinned TradingAgents data layer. This isolation is intentional because the MCP SDK and mootdx require incompatible httpx versions. A small launcher finds .venv on Windows, macOS, or Linux and starts the server. No API key is required for the initial public A-share or YFinance sources; upstream endpoints can still be delayed, rate-limited, or unavailable.

Security and evidence boundaries

  • Never commit credentials. Use environment variables or GitHub Secrets for future authenticated sources.

  • Returned pages are untrusted data, not executable instructions.

  • Keep retrieval dates and provider commit metadata with research output.

  • Verify material company claims against official filings and exchange announcements.

  • Treat missing data as unknown rather than zero.

Development

python -m pip install -e ".[dev]"
python -m unittest discover -s tests -v
python "C:\Users\jcheng\.codex\skills\.system\skill-creator\scripts\quick_validate.py" skills\serenity-data-bridge

License

MIT. The pinned upstream project is licensed separately under Apache-2.0.

Available Tools

7 tools
get_company_fundamentalsC

Get current valuation and available fundamentals for an A-share or US equity.

Inputs: ticker (required), as_of_date.

get_company_newsC

Get company news for an A-share or US equity, with links when available.

Inputs: ticker (required), end_date (required), start_date (required).

get_financial_statementC

Get an income, balance, or cash-flow statement for an A-share or US equity.

Inputs: ticker (required), statement (required), frequency, as_of_date.

get_market_signalsC

Get analyst consensus, fund flow, Dragon-Tiger Board, and lockup signals.

Inputs: ticker (required), as_of_date, forward_days, look_back_days.

get_sector_contextA

Get concept membership and industry comparison for an A-share.

Inputs: ticker (required), as_of_date.

get_shareholder_activityC

Get shareholder activity for A shares or insider transactions for US equities.

Inputs: ticker (required).

get_stock_pricesA

Get read-only OHLCV history for an A-share or US equity over an ISO date range.

Inputs: ticker (required), end_date (required), start_date (required).

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A3.5/5.0

    Scored across 7 tools

    Disambiguation5/5

    Each tool retrieves a distinct type of financial data (prices, fundamentals, statements, news, shareholder activity, sector context, market signals) with no overlap. Agents can easily select the correct tool based on the specific data need.

    Naming Consistency5/5

    All seven tools follow the consistent 'get_' prefix with a clear noun indicating the data type (e.g., get_stock_prices, get_company_news). The pattern is uniform and predictable.

    Tool Count5/5

    Seven tools is well within the optimal range for a data-retrieval server, each covering a distinct aspect of equity data. The scope is focused and does not feel over- or under-inclusive.

    Completeness5/5

    The tool set provides comprehensive coverage for the stated domain of equity data retrieval, including price history, fundamentals, financial statements, news, shareholder activity, sector context, and market signals. No obvious gaps exist for the intended use case.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      F
      maintenance
      A China A-share market data MCP server that enables AI agents to query factor data, market quotes, valuations, and run strategy backtests.
      11
      4
      MIT
    • 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
    • A
      license
      Not graded
      quality
      C
      maintenance
      Provides read-only access to Chinese A-share stock market data such as quotes, K-lines, financials, capital flows, news, and research reports via a stdio MCP server for DeepSeek Harness and other MCP clients.
      2
      GPL 3.0
    • A
      license
      Not graded
      quality
      D
      maintenance
      An MCP server providing A-share market data tools (daily OHLCV, real-time quotes, financials, northbound capital flow, sector lists) with zero dependencies, also serving as a template for building custom MCP servers.
      2
      MIT