oce-math-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| OCE_MATH_RAG_DOC | No | Destination document for --sync-spec. | |
| OCE_MATH_ELAN_HOME | No | Directory for elan. Defaults to .lean-tools/elan in the repository. | |
| OCE_MATH_POOL_SIZE | No | Number of calculation worker processes. Used as the default for --pool-size; otherwise CPU-1, maximum 4. | |
| OCE_MATH_DATASET_DIR | No | Destination directory for --sync-spec. | |
| OCE_MATH_LEAN_PROJECT | No | Lean project containing Mathlib. Defaults to lean/ in the repository. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Strumenti di matematica deterministici e verificabili. Ogni risposta ha 9 campi fissi: ok, tool, operation, result, units, formula_used, formatted_it, warnings, error. Usa show_steps per i passaggi in italiano e math_verify per controllare una risposta prima di darla.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| math_evalC | Exact arithmetic and scalar functions: Decimal/Fraction/float modes, logs, roots, trig in rad and deg, hyperbolic, combinatorics, statistics and distributions, Italian finance (VAT, withholding, loans, NPV, IRR, DCF), unit conversion. |
| math_solveC | Symbolic math with SymPy plus SciPy/NumPy: equations, systems, inequalities, derivatives, integrals (single, multiple, line, surface), limits, series, function study, vector calculus, Lagrange, ODE, Laplace, Fourier/FFT, Riccati LQR, linear algebra, sums, recurrences, polynomials, complex numbers. Results are self-verified. |
| number_theoryB | Integer and modular arithmetic with exact big integers: primality, factorization, divisors, totient, Mobius, primes, gcd/lcm/extended gcd, modular power/inverse/square root/log, primitive roots, Legendre/Jacobi, CRT, Diophantine equations, continued fractions, partitions, digits. |
| math_numericC | Numerical math with mpmath, SciPy and NumPy: arbitrary precision evaluation (up to 1000 digits), infinite sums, numerical integrals, roots, constrained and global optimization, linear and integer programming, ODE initial value problems, polynomial roots, closed-form identification of constants, curve fitting. |
| math_verifyB | Check an answer before giving it: symbolic and random-point equivalence of two expressions, substitution of a solution into equations, derivative and antiderivative checks, numeric comparison with tolerance, counterexample search for inequalities. |
| python_sandboxA | Run a short Python program in a restricted interpreter for problems no other tool covers (counting, brute force, sequences, multi-step computations). Allowed imports: math, cmath, fractions, decimal, itertools, functools, collections, statistics, random, heapq, bisect, sympy, numpy, scipy, mpmath. No files, no network, 5 s limit. Returns printed output and the value of the last expression. |
| lean_checkA | Check a formal proof in Lean 4 with Mathlib. Returns whether it compiles without errors, without sorry and with only the standard axioms, with Lean messages. Code that runs programs (#eval, run_cmd, elab, macro), new axioms and native_decide are rejected. 60 s limit. |
| date_calcC | Dates and times in the Italian calendar (Europe/Rome): exact age (also in months and weeks), weekday, differences (days, business days, real elapsed hours across DST) and additions, relative dates, events with DST offsets and reminders, recurring events, time zone conversion, invoice due dates (DFFM), month calendar, Italian national holidays including Easter and Easter Monday. |
| geom3d_calcC | 3D geometry for CAD, CNC and robotics: vector operations, angles, rotations (Euler, axis-angle), 4x4 homogeneous transforms, quaternions, Denavit-Hartenberg forward kinematics, distances and intersections, cylindrical and spherical coordinates, bolt holes, solid and cross-section properties. For 3D drawing: 2D sketch profiles, circles through 3 points, fillets, triangle solving, curves as point lists (helix, involute, spline, parametric), CAD pick points on faces and edges, patterns, point clouds, mesh and composite part checks (volume, centroid, bounding box). |
| eng_calcC | Engineering design formulas: strength of materials (Hooke, beams, shafts, Von Mises/Tresca, Euler buckling, fatigue, pressure vessels, bolts, welds), machine design (dynamics, vibrations, gears, bearings L10, belts, CNC cutting), fluids and heat (pipes, drag/lift, heat transfer, heatsinks), electrical and control (AC/DC, RLC filters, Clarke/Park, second-order systems, PID, optics, acoustics), material properties. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 10 tools
The three computational cores (math_eval for exact/scalar, math_solve for symbolic, math_numeric for arbitrary-precision/numerical) are conceptually distinct but overlap in practice: roots, integrals and evaluation can plausibly be routed to any of them, and eng_calc/math_eval both cover engineering-finance formulas while date_calc also handles invoice due dates. The very long descriptions help an agent choose, but boundaries are decided by mode (exact vs symbolic vs numeric) rather than by resource, which invites misselection.
Half the tools use a clean math_* prefix family (math_eval, math_solve, math_numeric, math_verify) while the rest use domain-first or suffix conventions (geom3d_calc, date_calc, eng_calc, number_theory, python_sandbox, lean_check). There is a loose 'domain + action/noun' logic throughout, but no single predictable pattern, and geom3d_calc breaks the calc/verb scheme entirely.
Ten tools is squarely in the well-scoped range, and each corresponds to a recognizable subdomain (arithmetic, symbolic, numeric, number theory, geometry, verification, sandbox, proof, dates, engineering). No tool looks redundant at the count level, even though individual tools internally bundle very large surfaces.
The surface covers essentially the full lifecycle of a math problem: compute, solve, numerically approximate, verify, formally prove, and fall back to a sandbox, plus geometry, dates and engineering. Minor gaps remain — no plotting/visualization or matrix-oriented entry point and unit conversion is buried inside math_eval rather than exposed — but agents can work around these.