shunshi-liuyao-mcp
OfficialClick on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@shunshi-liuyao-mcp Cast a Liu Yao hexagram by coin toss with ruling lines for my career question"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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-mcpThe server speaks JSON-RPC on stdout; it intentionally does not print a welcome message.
Related MCP server: Nyan Parlor MCP Server
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 buildTests 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.
Available Tools
1 toolcastHexagramB
Return 本卦/变卦, 四柱, 纳甲, 卦宫, 六亲, 六神, 世应, 旬空 and 伏神. coin uses three coins six times; time/number are explicitly alternative methods. at is optional naive local ISO datetime; omitted uses current clock time in the IANA timezone. Manual lines must be six 0/1 from bottom to top; moving is positions 1–6. number requires exactly two positive integers. No true solar time correction; day changes at 23:00 (sect=1).
Inputs: at, lines, method, moving, +2 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 1 tool
There is only one tool, so no misselection between tools is possible. The internal modes (coin, time, number, manual lines) are all variants of the same casting operation and are disambiguated by explicit parameter rules rather than by competing tool names.
A single camelCase verb_noun name (castHexagram) is internally consistent by construction, and the verb clearly conveys the action performed.
The server's scope is a single computation — casting a hexagram with derived attributes — so one tool is defensible and avoids fragmenting a coherent operation. It is slightly thin in that alternative casting methods are folded into parameter modes rather than being self-evident from the surface.
Output coverage is strong for the casting domain: original/changed hexagram, four pillars, najia, palace, six relations, six spirits, shi/ying, void branches and hidden spirits, plus multiple input methods. Minor gaps remain: no true solar time correction (explicitly disclaimed) and no interpretive/analysis layer beyond raw casting.
Maintenance
Related MCP Connectors
I Ching hexagram casts, 64 hexagram meanings and changing lines for AI agents.
Deterministic BaZi and Chinese metaphysics tools for AI agents: charts, divination, almanac.
Cast I Ching hexagrams with moving lines; classical + English judgments for all 64.
BaZi four pillars, Chinese zodiac, lunisolar calendar and almanac days for AI agents.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceProvides 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
- FlicenseNot gradedqualityCmaintenanceEnables AI assistants to make real crypto-random tarot draws and three-coin I Ching casts, look up card and hexagram meanings, and generate BaZi (Four Pillars) charts and Chinese zodiac forecasts in English or Japanese. Requires no API key, so readings come from actual draws and calculated charts rather than invented ones.1-
- AlicenseAqualityBmaintenanceEnables casting I Ching hexagrams with the traditional three-coin method and retrieving James Legge's public-domain translation of judgments, images, and line texts, returning auditable cast records with changing and transformed hexagrams while leaving interpretation to the host model. It also exposes hexagram and trigram resources plus reflection prompts for use in study, creative thinking, and decision exploration.4MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to compute Chinese metaphysics charts and judgements — BaZi, Zi Wei Dou Shu, Qi Zheng Si Yu, plus hexagram, Qimen and Liuyao divination, date selection, synastry and almanac lookups — returning structured, deterministic results with scores, verdicts and timing windows. Tools are billed per call via API key credits, x402 USDC payments or an OAuth account, with free repeats of identical inputs and free discovery tools for pricing, balances and birth-data parsing.MIT