SuperAPIAI Directory

codecalc

github.com · AI coding

Code and logic calculator with an offline core: run code, exact symbolic math, SMT/logic and complexity analysis, with optional gVisor/AppContainer sandboxing.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsLinux

About this tool

codecalc is an offline, self-hosted MCP server that provides AI agents with a calculator, code runner, and logic checker, with the goal of letting models give verified answers rather than guesses. It supports code execution in 31 languages, exact symbolic mathematics, SMT/logic problem solving, and complexity measurement, all exposed through 51 MCP tools.

Main capabilities: the offline core has no built-in models, API keys, gateway, or telemetry; the core does not open sockets, and network access is opt-in on demand; it can safely execute untrusted code and provides optional strict isolation boundaries (gVisor+Docker on Linux, AppContainer on Windows) layered on top of the default rlimit sandbox; it provides verification tools, where verify_translation proves that behavior is consistent after porting to another language, verify_optimization proves that an optimization has not changed behavior, and z3_check uses an SMT solver to prove or disprove logic.

Usage: the fastest path is to run uvx 'codecalc[full]' setup --write, which automatically registers codecalc with the MCP client. It can also be installed via pip install codecalc, or the Rust executor can be built from source. The base installation includes the MCP interface and sandbox executor (31 language runtimes, sessions, packages, about 32 MB); the symbolic computation part (sympy and z3) is an optional extra, about 88.6 MB, and when missing the tools return a clear dependency_missing error. codecalc doctor can report backends, installed extras, and strict runtime prerequisites, and outputs a client configuration block with absolute paths.

Use cases: situations that need free, local, private, hardened code execution and verification, called directly by an MCP agent.

Limitations: the threat model is explicitly single-operator, local, stdio, and is not suitable for multi-tenant or network-exposed isolation; if hosted cloud scale (such as E2B or Modal) or zero-configuration convenience is needed, other options should be chosen. The first analyze_complexity call downloads grammar files in-process (28 grammars, about 89 MB, about 15 seconds with a cold cache). compare_execution does not support an explicit dependencies parameter, and for inline PEP 723 block only discloses and does not install.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools