Skip to main content
Glama
shunshi-liuyao-mcp

shunshi-liuyao-mcp

Official
by shunshi-ai

liuyao-mcp

Liu Yao · 六爻 · 육효 · I Ching

Shunshi.AI local calculation core + Model Context Protocol server. Python 3.11+, MIT. No API key, database connection or hosted LLM is required.

Local coin casting and deterministic hexagram assembly: 本卦/变卦, 纳甲, 六亲, 六神, 世应, 旬空 and 伏神. Manual input is bottom to top (0=yin, 1=yang); moving positions are 1–6. Coin uses three independent binary coins per line. Time and number methods are Meihua-derived alternatives, explicitly labeled. Clock time, sect=1 (23:00 day boundary); no solar-time correction.

Install and connect

Install uv from its official source. Add this configuration to an MCP client supporting stdio (Claude Desktop, Cursor, Cline or Codex):

{
  "mcpServers": {
    "shunshi-liuyao": {
      "command": "uvx",
      "args": [
        "--from",
        "git+https://github.com/shunshi-ai/liuyao-mcp@v0.1.1",
        "shunshi-liuyao-mcp"
      ]
    }
  }
}

This uses a tagged GitHub source release, not a PyPI package. Dependencies are installed from PyPI by uv; the source tag is pinned. Restart the client after adding the server.

For a local checkout:

git clone https://github.com/shunshi-ai/liuyao-mcp.git
cd liuyao-mcp
uv sync --locked
uv run shunshi-liuyao-mcp

The server speaks JSON-RPC on stdout; it intentionally does not print a welcome message.

Related MCP server: fatenava-mcp

Tools

  • castHexagram — inspect its MCP schema for validated parameters.

Example parameters for castHexagram:

{
  "method": "manual",
  "at": "2026-08-20T20:20:00",
  "lines": [
    1,
    1,
    1,
    1,
    1,
    1
  ],
  "moving": [
    1
  ]
}

Results include a source URL. Computed values and reference text are separate from the calling AI's interpretation; this server does not promise future outcomes.

Structure and development

packages/core/src/ contains the reusable core; src/shunshi_liuyao_mcp/ contains the MCP adapter. Both ship in one wheel, so no unpublished sibling package is needed. The core can be imported without starting MCP. Calculation provenance is documented in SOURCE.md.

uv sync --locked
uv run pytest -q
uv build

Tests include a real stdio MCP client handshake, tool calls, invalid inputs and recovery. Core reference tests are included where available. No production services are contacted.

Privacy and license

Inputs stay in the local process; there is no product telemetry. Your MCP client's own model provider may receive tool inputs and outputs according to that client's configuration. Standard Python package installation downloads dependencies. Images, where present, are links; opening them is a separate client action.

MIT © 2026 Shunshi.AI. Preserve any upstream copyright in NOTICE.

Website: https://shunshi.ai

CI template

docs/github-actions-test.yml is a ready-to-use GitHub Actions template for Python 3.11–3.13. It is not enabled in this initial release because the publishing credential does not have workflow scope. Tests and installation checks were run locally; enabling hosted CI is a separate step.

Related MCP Connectors

Related MCP Servers

  • A
    license
    A
    quality
    A
    maintenance
    Provides traditional Chinese astrology (Bazi, Ziwei) and divination (Liuyao, Meihua, Qimen, etc.) calculations as MCP tools for AI assistants.
    18
    357 npm
    129
    Apache 2.0
  • A
    license
    A
    quality
    C
    maintenance
    Enables AI agents to cast deterministic BaZi, Zi Wei Dou Shu, and Western astrology natal charts from birth details, with no setup or API key.
    1
    68 npm
    MIT
  • A
    license
    Not graded
    quality
    A
    maintenance
    Provides stateless tools for calculating BaZi charts, casting I Ching hexagrams, drawing tarot cards, and generating Zi Wei twelve-palace charts. Agents can call these tools without an account or model key and interpret the structured results with their own model.
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    Seven deterministic I Ching (Book of Changes) and Zi Wei Dou Shu astrology tools via remote Streamable HTTP MCP or npm stdio.
    33 npm
    1
    MIT