The-40-Thieves/codecalc
by Various
Universal code & logic calculator for AI models: 52 MCP tools across 31 languages. Rust-sandboxed execution with verdicts, sessions, artifacts, exact arithmetic, and verified trans
MCP
The-40-Thieves/codecalc
Added 8 Sept 2026
Overview
Provides 52 MCP tools across 31 languages for AI models to execute and evaluate code. Uses a Rust sandbox for safe execution, with verdicts, sessions, artifacts, exact arithmetic, and verified translation or optimization. No LLM, gateway, or telemetry. The calling model interacts directly. Apache-2.0 licensed.
Best for
Best for
Developers building AI agents that need safe, multi-language code execution
Use cases
- Let an AI model run and test generated code in a sandbox
- Verify code translation between languages with exact results
- Perform exact arithmetic or optimization checks during model reasoning
How to use
Install
uvx 'codecalc[full]' setup # prints what it would do — nothing on disk changes Tools exposed
install_packagecalc_exactcompare_thresholdcalc_statscollision_probabilitydata_sizeshuman_durationepoch_timeradix_convertfloat_repralgebraic_equivlist_languageslist_execution_providersexecute_codeexecute_code_streamtrace_executionbranch_reachabilityrun_submitrun_inspectrun_cancel
Tested with
Claude Desktop, Claude Code, Cursor, VS Code, ChatGPT
Notes
Provides 52 MCP tools across 31 languages for AI models to execute and evaluate code. Uses a Rust sandbox for safe execution, with verdicts, sessions, artifacts, exact arithmetic, and verified translation or optimization. No LLM, gateway, or telemetry. The calling model interacts directly. Apache-2.0 licensed.
3 stars on GitHub. Last updated 2026-09-08. Licensed Apache-2.0.
Use cases
- Let an AI model run and test generated code in a sandbox
- Verify code translation between languages with exact results
- Perform exact arithmetic or optimization checks during model reasoning
Pros
- Broad language coverage with 31 languages and 52 tools
- Sandboxed Rust execution for safety
- No telemetry or gateway, keeping the model as the direct caller
Cons
- Very low community traction with only 3 stars
- Requires an MCP environment and direct model integration
- No bundled LLM or gateway, so the caller must handle orchestration
Indexed from awesome-mcp-servers-punkpeye and enriched against its public facts.
Pros
- Broad language coverage with 31 languages and 52 tools
- Sandboxed Rust execution for safety
- No telemetry or gateway, keeping the model as the direct caller
Cons
- Very low community traction with only 3 stars
- Requires an MCP environment and direct model integration
- No bundled LLM or gateway, so the caller must handle orchestration
Open-source & AI alternatives
Swap-in tools that solve the same job. Weigh the trade-offs before you commit.
Get the free Developer’s Field Guide
A 27-page field guide to the AI coding workflow with Claude. Claude Code, MCP servers, the prompt patterns that work, and what to delegate. Free.
Enter your work email. We send it straight over, plus a few short notes worth knowing. Unsubscribe any time.
