Give agents a multi-engine math kernel via MCP
MathKernel is an evidence-aware multi-engine mathematics kernel exposed as an MCP server for agents to use. ·
Done with a custom-built or unnamed agent
- What they did
- MathKernel runs as an MCP server (mathkernel-mcp, stdio, 162 math_ tools). The model parses and plans, and the kernel does the computing across SymPy, Z3, Lean, mpmath and numba/CUDA. A typical session discovers capabilities, parses an expression, creates a context, then calls math_reason to solve and verify. Long sweeps go through async jobs. Every result carries a trust label and a derivation trail.
- How it went
- The source gives no benchmark or outcome numbers. It documents the design: trust is capped at the weakest evidence, and decimal inputs drop a result to numeric, which blocks Lean and SMT proofs.
- Worth knowing
- Lean 4 and Mathlib install on first server start unless MATHKERNEL_SKIP_LEAN_INSTALL=1 is set. CUDA needs the extra nvidia pip packages, otherwise it falls back to CPU.
Try it yourself with Claude Code
Connect the MCP server for [math tool, e.g. MathKernel or a computer algebra system] to this project, then use it to solve [math problem or set of equations] and show the result along with which engine produced it and how it was verified. If engines disagree, flag it and explain. Done means I get the answer, the evidence for it, and a note on any assumptions you made.
Want help getting this working? Join the Vibe Coding Academy ↗ Run by Alex Finn, who also runs this site.
Discussion on HN · Sep 7, 2026
Related use cases
Find a Linux vulnerability hidden for 23 years
An account of Claude Code uncovering a long-standing vulnerability in Linux.
Generate parametric geometry workflows with an agent
GrassLobster uses agentic AI to generate parametric geometry workflows.
Custom agent
Reverse engineer a classic game ROM via Ghidra MCP
The author connected Claude to Ghidra through MCP to analyze and rename functions in an Atari River Raid ROM.
Find security flaws in open-source software
Google's Big Sleep agent reported about 20 security flaws in open-source software, following its SQLite find.
Monitor and score CVEs with real-time alerts
An n8n workflow monitors CVEs from sources like CISA and OTX, scores them with AI, and alerts via Slack, Gmail and Google Sheets.
Formally verify software at large scale with Claude
Anthropic's Frontier Red Team used Claude to formally verify software, proving code is free of certain bugs on codebases larger than was historically feasible.
Get 5 like this every morning
The best things people got an AI agent to do, each with the prompt to try it.