MCP ConfigsOct 3, 2026·4 min read

Jacobian — Typed Math Tools for AI Agents

Give AI agents typed math tools through MCP. Inspect contracts, run exact operations, and compose results with a pinned Python release.

Agent ready

Safe staging for this asset

This asset is staged first. The copied prompt tells the agent to inspect the staged files and ask before activating scripts, MCP config, or global config.

Stage only · 17/100Policy: stage
Agent surface
Any MCP/CLI agent
Kind
Mcp Config
Install
Stage only
Trust
Trust: Established
Entrypoint
.mcp.json
Safe staging command
npx -y tokrepo@latest install 5489e797-e716-4097-a3d2-f394b66972a8 --target codex

Stages files first; activation requires review of the staged README and plan.

Intro

Jacobian gives AI agents a typed mathematical vocabulary through MCP, plus a Python API and CLI. Use it to inspect an operation's contract and compute exact results instead of asking the model to approximate them in text. Best for agents working with algebra, graphs, or bounded symbolic computation; works with MCP hosts such as Claude Code, Cursor, and Codex.

The 0.22.0 release was checked on 2026-10-03: an isolated Python 3.12 installation returned gcd 6 and coefficients -1 and 3 for inputs 84 and 30. MCP initialization and tool discovery were also checked. This smoke test does not validate every mathematical operation; upstream's supported binary-install contract remains CPython 3.12/3.13 on glibc Linux x86-64, with some optional system backends.

Original upstream README

English · 简体中文

Jacobian

An executable mathematical vocabulary for agents: discover one typed operation, run it, and compose its result.

CI PyPI npm Supported Python versions MIT license

Jacobian is an MCP server that gives AI agents a searchable vocabulary of typed mathematical operations. math.find matches a mathematical need or inspects one exact contract, and math.run executes it and returns its typed result. The same mathematical library is also available through a CLI and native Python API.

Each operation establishes one stable, reusable mathematical postcondition rather than prescribing a workflow or proof strategy. Results are exact where claimed and make approximation, incompleteness, or uncertainty explicit.

Jacobian's hypothesis is that mathematical reasoning benefits from an executable vocabulary of semantically scoped, bounded operations. Rather than exposing large domain solvers or precomposed workflows, Jacobian exposes mathematical primitives that agents can search for and compose into solutions beyond what any individual operation was designed to solve. The library supplies trustworthy mathematical moves; the reasoning model decides which moves to make, how to combine their results, and when to stop. Keeping the operations semantically narrow and domain-owned preserves that search space instead of baking one proof strategy or workflow into the tools themselves.

See Executable mathematical vocabulary for what semantic atomicity means and how the operation vocabulary grows.

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.

For a local terminal workflow, inspect the exact installed contract and run one of its examples with the CLI:

jacobian inspect integer.compute.extended_gcd
jacobian run integer.compute.extended_gcd --json '{"left":"84","right":"30"}'

The second command returns the gcd and Bézout coefficients as JSON. In an MCP host, use math.find in inspection mode to read the same contract and math.run with the same payload shape. See Discover and invoke operations for that agent workflow.

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.

SAT and SMT operations use the maintained Z3 Python binding directly. Use math.find to match the mathematical result needed, then use its inspection mode on a promising operation before calling math.run once.

See the domain operation library for the maintained operation portfolio and backend requirements.

Status

Jacobian 0.22.0 is pre-stable. Its published package and operation contracts describe the supported surface; experimental operation contracts may change between releases.

Documentation

Contributing

Jacobian uses Python 3.12, uv, and a small Makefile:

make setup
make affected AFFECTED_BASE=origin/main

Read CONTRIBUTING.md before changing code. It documents focused test commands, verification rules, documentation placement, and pull-request expectations.

License

MIT

FAQ

Q: Does installing this asset automatically edit my global MCP configuration? A: No. TokRepo stages the supplied files. Review and merge .mcp.json in the client you use.

Q: Which version and Python runtime does this entry use? A: The supplied configuration pins Jacobian 0.22.0 and requests Python 3.12 through uvx. Upstream documents its tested platform contract and optional backends in the README.

Q: Has every operation been checked? A: No. The local check covered server initialization, tool discovery, and one exact extended-GCD result. Check each operation's typed contract and backend availability before relying on it.

🙏

Source & Thanks

Created by morluto. Licensed under MIT.

Source: morluto/jacobian, commit 0144d037894e6c33938fd66b841d336e15a79611, package 0.22.0.

MIT License

Copyright (c) 2026 Jacobian contributors

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Discussion

Sign in to join the discussion.
No comments yet. Be the first to share your thoughts.

Related Assets