jacobian
morluto/jacobian
Pure mathematics for agents: search for examples and counterexamples, compute exactly, and independently check what a result proves.
49
stars
9
forks
MIT
License
2026-07-23
Created
2026-08-17
Last push
README
English · 简体中文
Jacobian
Atomic mathematics for agents: discover one typed operation, run it, and compose its bounded result.
Jacobian is an MCP server that gives AI agents atomic, composable tools for
higher mathematics. It exposes two tools: math.find searches an immutable
library of typed mathematical operations, and math.run executes exactly one
of them and returns its concrete typed result. Each operation is one bounded,
exact computation: a typed request in, a typed mathematical value out, with
no workflow, state, or intermediate runtime between them. The same
mathematical library is also available through a CLI and native Python API.
Quickstart
Run the canonical Python MCP command without installing Jacobian globally:
uvx --from jacobian jacobian-mcp
Where an MCP host requires an npm command, the npm package is a deterministic carrier for that same command:
npx jacobian mcp
For a persistent installation:
python -m pip install jacobian
jacobian-mcp
That package includes Jacobian's exact maintained Python backend stack: SymPy, NetworkX, Z3, and Python-FLINT. A normal Python or npm installation therefore exposes the same built-in Python-backed operation portfolio. The tested binary-install contract is CPython 3.12 or 3.13 on glibc Linux x86-64; the release gate installs the built wheel and starts Jacobian on both Python versions. Other systems may have compatible upstream wheels, but are not part of the tested release contract yet. In particular, Alpine/musl cannot install the complete mandatory stack from PyPI.
The Python distribution contains the mathematical kernel, CLI, and MCP server.
The npm package contains no lifecycle manager or JavaScript API; it only maps
its exact package version to the corresponding uvx invocation.
Compute one bounded result
An ordinary operation returns mathematics first. For example,
matrix.determinant.compute accepts one exact rational matrix and returns its
determinant directly. Callers compose results by passing their typed values to a
subsequent operation; Jacobian retains no project state or artifact store.
Available mathematics
The built-in portfolio covers work in:
- polynomial maps and polynomial algebra;
- exact linear algebra;
- graphs, paths, colorings, and isomorphism;
- bounded SAT and SMT solving;
- finite algebra, probability, geometry, and topology; and
- Lean source elaboration.
SAT and SMT operations use the maintained Z3 Python binding directly. The
optional lean.check operation runs one bounded source snippet in the fixed
Lean service environment. It creates only a request-scoped temporary directory
and returns typed diagnostics; it does not expose a proof-state session or
retain source. Use math.find to search for an operation, browse an unfamiliar
domain, and inspect one operation before calling math.run once.
See the domain operation library for the maintained operation portfolio and backend requirements.
Status
Jacobian 0.12.0 is pre-stable. Its published package and operation contracts describe the supported surface; experimental operation contracts may change between releases.
Documentation
- Documentation home: tutorials, how-to guides, reference, and explanations
- Architecture: runtime structure and trust boundaries
- Product model: operation contracts, ownership, and project boundaries
- Tool reference: MCP resources and invocation contracts
- Backend requirements: maintained Python backends and optional Lean
- Remote deployment: HTTP deployment and authentication
Contributing
Jacobian uses Python 3.12, uv, and a small Makefile:
make setup
make test-math
make check
Read CONTRIBUTING.md before changing code. It documents focused test commands, verification rules, documentation placement, and pull-request expectations.
License
More in MCP & Protocols
openpencil
by zseven-w
The world's first open-source AI-native vector design tool and the first to feature concurrent Agent Teams. Design-as-Code. Turn prompts into UI directly on the live canvas. A modern alternative to Pencil.
agent-qa
by vostride
Open-source self-improving QA agent for software teams. A test harness with memory. Write tests in natural language for web and mobile. agent-qa learns from every run, adapts to UI changes, and catches regressions before you ship.
coding-tools-mcp
by xytom
Give any AI agent the ability to code
awesome-deepseek-harness
by 0xsline
DeepSeek Harness (DSH) ecosystem: curated plugins, tools, and infrastructure from dsh-external/hub and the public dsh-plugin topic.
