● Calculation engine · Chinese metaphysics
Divination,
computed.
Divinacci is a calculation engine for Chinese metaphysics, made for developers and AI agents. It computes each tradition as its sources define it, cites every field, and says so when the evidence runs out.
- Hexagrams
- 64
- Trigrams
- 8
- Readings
- 4,096
- I Ching dataset
- Free
At the centre9777771 乾 Qián44 姤 Gòu
01 · What it is
Not a fortune-teller. Divinacci does the arithmetic of the traditions faithfully and shows its working, so whatever you build starts from something exact.
Promise 01
Correct
Each method is computed by rule and checked against published expected values. The same input returns the same output, every time.
Promise 02
Cited
Every field names the source it came from. Nothing is asserted without a reference you can follow and check for yourself.
Promise 03
Refuses
Where the evidence runs out, the engine says so and stops. A refusal is a result with a reason, never a guess dressed as an answer.
02 · The free I Ching dataset
Every reading, enumerated.
Six lines, each a 6, 7, 8 or 9, make 4,096 possible readings. All of them will be published at api.divinacci.com as a free static dataset, with the 64 hexagrams and the 8 trigrams, in immutable, versioned releases with a citation on every field.
Published example: hexagram 1, 乾 Qián, with the first line changing, becomes hexagram 44, 姤 Gòu.
Each point is one reading. Its row is the hexagram cast and its column the hexagram it changes into. On the diagonal nothing changes. Move across the field, or use the arrow keys.
GET/v1/releases/{release}/
{
"release": "{release}",
"licence": "CC BY 4.0",
"sources": { "…": "one per field" },
"data": {
"lines": "977777",
"primary": {
"number": 1,
"name": "乾",
"pinyin": "Qián"
},
"changing": [1],
"resulting": {
"number": 44,
"name": "姤",
"pinyin": "Gòu"
}
}
}GET/v1/releases/{release}/
{
"release": "{release}",
"licence": "CC BY 4.0",
"sources": { "…": "one per field" },
"data": {
"lines": "777777",
"primary": {
"number": 1,
"name": "乾",
"pinyin": "Qián"
},
"changing": [],
"resulting": null
}
}The values in data are the published examples. {release} stands for a release ID, which /v1/current.json names; the licence and sources values shown are illustrative. The API reference is authoritative.
6- old yin, changing
7- young yang
8- young yin
9- old yang, changing
03 · For AI agents
Tools an agent can call.
Agents connect over the Model Context Protocol and ask the engine directly, so a model never has to recall a hexagram from memory. Four free tools arrive with the first release.
list_methodsLists every method with its current status, so an agent knows what it can ask for.iching_castCasts six lines and returns the reading they make.iching_readingReturns the reading for six lines you supply, such as 977777.iching_hexagramReturns one hexagram with its cited fields.
Endpoint · at launchhttps://mcp.divinacci.com/mcp
claude mcp add --transport http divinacci https://mcp.divinacci.com/mcp{
"mcpServers": {
"divinacci": {
"type": "http",
"url": "https://mcp.divinacci.com/mcp"
}
}
}04 · Methods
Status, stated plainly.
One method is in the first release. The others are listed with where they actually stand, and nothing is marked ready before it is.
- 01
Classical I Ching易經
The 64 hexagrams, the 8 trigrams and all 4,096 readings, as a static dataset and as MCP tools.
First release · free
- 02
Mei Hua梅花易數
Plum Blossom numerology: a hexagram derived from numbers and the time of asking.
Coming
- 03
Wen Wang Gua文王卦
The six-line method: each line is assigned a branch, a phase and a relation, then weighed against the day and month.
Coming
- 04
Ba Zi八字
The four pillars: year, month, day and hour set out as stems and branches from the calendar.
Coming
- 05
Ze Ri擇日
Date selection: weighing days against the rules of the calendar.
In research
- 06
Rosetta
Cross-system synthesis: one question set out across several methods, with each source kept distinct.
In research
05 · How trust works
Checkable, not just claimed.
You should not have to take the engine’s word for anything. Four mechanisms let you check it yourself.
- A
Versioned releases
The dataset ships as numbered releases. Pin one and build against it. A correction arrives as a new version with notes, not as a silent edit.
- B
A citation on every field
Each value points to the source it was taken from. If you doubt a value, you can open the source and compare.
- C
Published examples and expected values
Worked examples are published with the values the engine must return. Run them yourself. The answers match or they do not.
- D
Refusals
When a method is not released, or the sources do not settle a question, the engine returns a refusal that states the reason.
{
"status": "refused",
"method": "bazi",
"reason": "method_not_released",
"detail": "Not released. Nothing was computed."
}An illustrative shape. The point is the behaviour: a stated reason in place of an invented answer.
● Classical I Ching · first release · free
Build on something
you can check.
Looking for what the hexagrams mean? That is a different job, and it lives at UAYA, the free library.