Lingshu Solver
Category: Certified Real-Root Computation
[License]
[MCP]
[Deterministic]
[npm]
A deterministic solver for systems of real equations. The same problem always produces the same
answer — no language model, no randomness, no hallucination. Every solution it reports is
reproducible and checkable by substitution, and the result carries structured decision fields that
tell the calling agent exactly what to do next.
Built for AI agents. Connect it as an MCP tool and your model stops guessing arithmetic. It is a
deterministic, non-LLM numerical engine: same input, same answer, every reported solution checkable by
substitution, and — crucially — every result comes with a trust block that tells the agent whether the
answer is complete, safe to use, or needs more work. You branch on those fields; you never re-derive
completeness yourself. Three things matter to a calling agent, and all three are built in:
It also does 1D/2D/3D geometry through one geometry tool (130 closed-form ops: distance, intersection,
area, volume, angle, convex hull, point-in-polygon, rotation, bounding box, plus the classical triangle and
circle theorems — five centres, Euler line and OI² = R(R−2r), Heron, Stewart, Ceva, Menelaus, Ptolemy,
Miquel, Napoleon, Pick, pole/polar, Brahmagupta, plus a tropical/convex bridge (Newton polytope, BKK mixed-volume bound, regular-subdivision multiplicities) — and 3D tetrahedron/Monge point). Same contract as the solver: a
trust block tells the agent whether the value is exact, whether the computation proved there is
definitely_none, or whether the input itself is degenerate (parallel / collinear / coplanar) — and in the
last case the correct move is to report the degeneracy, never to invent a number.
Humans can use the web page too (zero install) — but the design target is the agent: compact tool
descriptions, structured errors that say what to change, and no prose the model has to pay for on every turn.
🔬 Live demo against the production endpoint:
https://hclj-1409755229.cos.ap-guangzhou.myqcloud.com/lingshu-solver/demo.html — call the real MCP
endpoint right from the browser and watch poly_roots return certified real roots and verify judge a
candidate value. Thirty seconds is enough to see why "an LLM will mis-compute this, Lingshu can certify it".
30 seconds to start
① AI agent (MCP — pick either form)
It also works if you never pay: the hosted endpoint runs on an honor system — pass
"honorPaid": true in the solve arguments and the call is released for free (no verification, no
balance deduction). The npx local version and the web version are permanently free. If you do want to
support it, see the payment page — a corporate account, self-service
crediting, effective immediately, no human approval anywhere in the loop.
② Web (zero install, permanently free)
Type equations into the box (for example x^2 + y^2 = 25 and x + y = 7) and press solve. Everything is
computed inside your browser; the equations never leave your device.
③ Developer
Discovery — where agents find Lingshu
- npm —
npx -y lingshu-solver (local stdio, permanently free, offline)
- Hosted endpoint —
https://hongchenlingjing.com/mcp (MCP Streamable HTTP; always on, no install, no key)
- Auto-indexed MCP directories — Glama · HiMCP · LobeHub
To surface it in more clients, point any MCP client at the hosted endpoint above, or submit the
repo to Smithery, the official MCP Registry,
or mcp.so. The hosted endpoint is the canonical discovery URL.
Honest boundaries
Not guaranteed: 100% exhaustiveness for every input, or convergence inside budget for highly
pathological systems. That is the honest floor of numerical mathematics ("guaranteeing all solutions"
is undecidable in the general case), not a defect to be fixed.
Documentation
The machine-readable description for AI agents lives at llms.txt.
Three of the design docs are in English; the deep-dive docs (design rationale, technical reference,
licence and pricing, contract, versioning, history) are still in their original Chinese. Each row below
tells you which is which.
If you read only one page, read 01 · Product role — it states the limits and
the approved wording.
Privacy and security commitments are published separately: privacy.html.
Licence (summary)
Free for non-commercial use; commercial use requires written permission (a proprietary licence of our
own, not an open-source licence):
- Non-commercial, free: personal study / research / teaching / evaluation; internal use by non-profit
organisations and educational institutions; internal evaluation by teams with annual revenue up to RMB 1
million (≤ 3 instances).
- Commercial use needs prior written permission: any product, service or business operated for profit,
resale of SaaS/cloud/API, integration, embedding, or redistribution as a hosted service.
- Version applicability: this licence applies from
1.0.4. Versions 1.0.3 and earlier remain under
the Apache License 2.0 as published at the time (a historical fact, not revocable, and it does not extend
to later versions).
Full terms in LICENSE · scope and pricing in
06 · Commercial licence and pricing
· contract in 07 · Licence contract
Contact
- Business / licence / feedback: [email protected] (or open an issue in this repository)
- Copyright holder: Guangzhou Hongchen Lingjing Digital Technology Co., Ltd. (广州市红尘灵境数字科技有限公司)
- Filing: 粤ICP备2026031206号-3 · 粤公网安备44011402001444号