Yarrow
This server has a remotely hosted endpoint. Open its connector listing for connection details, authentication requirements, and setup instructions:
Yarrow — An I-Ching oracle for the agent era
Yarrow lets you (and your agents) consult the Book of Changes — cast a hexagram, read the classical sources, and get a Wilhelm/Baynes-style reflection. Offline-first iOS app, plus a public MCP server so any LLM agent can reach the same oracle.
"The I-Ching does not predict; it mirrors. The question you bring decides the reading."
What's in this repo
Path | What |
| Cloudflare Workers source — public MCP endpoint + iOS app proxy |
| 64 hexagrams with bilingual classical sources (杨天才 / 朱熹 / 断易天机 / 白话题解) |
| Deterministic casting (coins / yarrow stalks / random), seeded by FNV-1a + mulberry32 |
| MCP JSON-RPC 2.0 handler (3 tools, 30 readings/day per anonymous caller) |
| Claude Code / Codex plugin marketplace manifest |
| The Yarrow skill — pluggable into any Claude Code or Codex install |
|
|
| Drafts for modelcontextprotocol/servers, Smithery, mcp.run |
| Copy-paste configs for Claude Code / Claude Desktop / Codex / Hermes |
The iOS source lives separately at yarrow-ios (TODO).
Related MCP server: QiyueAstro MCP Server
For users
📱 iOS app
Download on the App Store → · $4.99 · iOS 17+ · no tracking, no account.
All 64 hexagrams and their classical commentary ship in the app; AI reading is optional and runs through this Worker.
🤖 Agents
Claude Code — install the plugin:
claude plugin marketplace add https://github.com/shaozhengkun123/yarrow
claude plugin install yarrowClaude Desktop — add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"yarrow": { "url": "https://yarrow-oracle.shaozhengkun.workers.dev/mcp" }
}
}Codex CLI / Hermes / older Claude Desktop — use the stdio bridge:
npx @shaozhengkun/yarrow-mcpOr pin it in your client's config — see INTEGRATIONS.md for every platform.
Anyone with curl —
curl -s -X POST https://yarrow-oracle.shaozhengkun.workers.dev/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{
"name":"divine",
"arguments":{"question":"Should I take the new job?","locale":"en"}
}}'The MCP tools
Tool | Purpose |
| Toss the coins / cast the stalks. Returns primary hexagram + moving lines + changing hexagram, all metadata. Deterministic if you pass |
| Get a hexagram's classical text — Wilhelm-style header, judgment, image, and 杨天才 / 朱熹 / 断易天机 / 白话 commentaries. |
| One-shot reading: casts, looks up, and generates a Wilhelm/Baynes-style reflection grounded in the sources. 30/day per anonymous caller. |
Self-hosting
This Worker is MIT — fork, deploy your own, point your agents at your URL.
git clone https://github.com/shaozhengkun123/yarrow
cd yarrow
npm install
npx wrangler login
npx wrangler kv:namespace create QUOTA # copy id into wrangler.toml
echo -n '<your OpenAI-compatible chat URL>' | npx wrangler secret put PROXY_URL
echo -n '<your API key>' | npx wrangler secret put PROXY_KEY
npx wrangler deployYour endpoint will be https://yarrow-oracle.<your-subdomain>.workers.dev.
Boundaries
Yarrow is for reflection, not prediction. The system prompt baked into the Worker refuses:
fortune-telling / specific future predictions
medical, legal, or financial advice
requests to "reveal what will happen"
The classical voice is direct; the framing is Jungian. This is the line we draw, in the iOS app and the MCP both.
License
MIT for code; classical sources are in the public domain. See LICENSE.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Public, read-only MCP over the complete 64-hexagram I Ching corpus. Deterministic lookup only.
Cast I Ching hexagrams with moving lines; classical + English judgments for all 64.
I Ching hexagram casts, 64 hexagram meanings and changing lines for AI agents.
Hosted remote MCP server for BaZi (Four Pillars) charts and the Chinese almanac. No install.
Related MCP Servers
- AlicenseAqualityCmaintenanceMCP server for ai-divination-skills that provides tools for tarot draws, I Ching casts, Xiao Liu Ren casts, and Bazi chart generation, returning auditable JSON results for AI interpretation.56MIT
- AlicenseNot gradedqualityDmaintenanceMCP server for Eastern and Western divination, enabling tarot, Lenormand, I Ching, Meihua, Qi Men, BaZi, Zi Wei Dou Shu, Xiao Liu Ren and Da Liu Ren readings via the free QiyueAstro public API.MIT
- FlicenseNot gradedqualityDmaintenanceA read-only remote MCP server exposing Bazi chart calculation, Chinese almanac queries, and tarot card draws over Streamable HTTP, enabling AI hosts to incorporate these fortune-telling tools with structured, natural-language-friendly outputs.-
- AlicenseNot gradedqualityCmaintenanceSeven deterministic I Ching (Book of Changes) and Zi Wei Dou Shu astrology tools via remote Streamable HTTP MCP or npm stdio.18 npm1MIT