Codecalc MCP Server

codecalc is an offline, self-hosted MCP server that gives an AI agent a calculator, a code runner, and a logic checker - so it gets a correct answer instead of a guessed one. It runs code in 31 languages, does exact symbolic math, solves SMT/logic problems, and measures complexity, all exposed as 49 MCP tools. It runs locally over stdio via the published package.

People who work with calculator, code execution and sandbox and want it reachable from Claude, Cursor, VS Code, or another MCP client. The project is written in Python.

VERIFIED ACTIVE

LAST COMMIT 2026-09-09 · ★ 3 · #158 OF 945 MAINTAINED OTHER · VERIFIED 2026-09-18

Apache-2.0 · Python servers · how we verify → /methodology

01 · Install Codecalc

before you install - you'll need

The README does not document required environment variables for a basic install.

Claude Code

claude mcp add the-40-thieves-codecalc -- uvx codecalc

Claude Desktop / Cursor / VS Code - add to config

{
  "mcpServers": {
    "the-40-thieves-codecalc": {
      "command": "uvx",
      "args": [
        "codecalc"
      ]
    }
  }
}

Same JSON for Cursor. For VS Code, rename the top-level key from `mcpServers` to `servers`.

Using another client? Same JSON, different key

Claude Desktop · mcpServers

Cursor · mcpServers

VS Code · servers

Windsurf · mcpServers

Zed · context_servers

Cline · mcpServers

Roo Code · mcpServers

Continue · mcpServers

LibreChat · mcpServers

Gemini CLI · mcpServers

Codex CLI · mcp_servers

Full setup guides: every client.

02 · Evidence

Security posture

What to check before giving this server access to your agent - from the registry, GitHub, and our own probes. We don't score safety; we show what's verifiable.

runs as local process (stdio) - runs on your machine with your user's permissions

repo age created 2026-08-07 - young repo, little track record yet

license Apache-2.0 - declared in the repository

pypi package codecalc - check the name against the project README before installing (PyPI has no namespace ownership)

registry namespace io.github.The-40-Thieves is GitHub-verified and matches the repo owner

03 · What Codecalc can do

Prose above is summarized from the project's README and registry record - no invented capabilities.

Latest releases

v0.12.0 · 2026-09-09

Docker MCP Catalog listing row, catalog tools.json at 57 tools, OSTIF submission recorded · retire the eight bit/symbolic tool aliases (57 -> 49 tools) · schema descriptions on every tool parameter, execution-cluster…

v0.11.0 · 2026-09-09

drain the executor's result pipe while execute_code_stream waits · verify_translation folded U+2028/VT/FF/NEL into newline and certified byte-different outputs · keep the calibrated real-win live tests in the…

v0.10.0 · 2026-09-08

Fix doctor runtime probes: failed version probes and kotlin's resolution command · Give a Rust-backend spawn failure the same shape as the fallback's · Fix native-executor resolution: gate on CODECALC_EXEC_BIN, not a…

04 · Who maintains Codecalc

codecalc is maintained by the-40-thieves. We track 3 MCP servers from the-40-thieves - 3 actively maintained, 10 combined GitHub stars, oldest repo from May 2026. Full record: all servers from the-40-thieves.

  1. Obsidian Turbocharged Model-agnostic, agent-ready Obsidian MCP server with RBAC, SLSA provenance, and native search. ★ 5
  2. Alexandria Search, read, and cite across 152 libraries: 11 tools, 3 prompts, and a full-text resource. ★ 2

05 · Facts

category
other - ranked #158 of 945 actively-maintained other servers as of 2026-09-18.
release cadence
10+ releases in the last 90 days (latest 2026-09-09)
registry
io.github.The-40-Thieves/codecalc (active, first published 2026-08-20 · 10 versions)
packages
pypi:codecalc

06 · Codecalc FAQ

What is Codecalc?

codecalc is an offline, self-hosted MCP server that gives an AI agent a calculator, a code runner, and a logic checker - so it gets a correct answer instead of a guessed one. It runs code in 31 languages, does exact symbolic math, solves SMT/logic problems, and measures complexity, all exposed as 49 MCP tools. It runs locally over stdio via the published package.

Is Codecalc still maintained?

Yes - as of 2026-09-18, its last commit was 2026-09-09 and it shipped 10+ releases in the last 90 days. We re-verify nightly.

How do I install Codecalc?

Run `uvx codecalc`. The README does not document required environment variables for a basic install. You can also paste the ready-made client config above.

Does Codecalc run locally?

Yes - it's a stdio server: it runs on your machine (via uvx) with your user's permissions. Your data stays local unless the server itself calls external APIs.

07 · Alternatives to Codecalc