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 52 MCP tools. It runs locally over stdio via the published package.

People connecting this server to Claude, Cursor, VS Code, or another MCP client. The project is written in Python.

VERIFIED ACTIVE

LAST COMMIT 2026-08-23 · ★ 2 · #216 OF 848 MAINTAINED OTHER · VERIFIED 2026-08-25

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

01 · Install Codecalc

before you install - you'll need

Set CODECALC_RUNTIME_PATH before connecting.

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.5.0 · 2026-08-22

docs+fuzz: editions, contract compat window, tool freeze, fuzzing harness · cap path length/segments before resolve to bound _jail CPU · honest no_net disclosure + TOCTOU docstring; publish audit · OSS security…

v0.4.0 · 2026-08-21

add codecalc logo (400×400 + 1024 source) · note contract_check needs the built executor (THE-874) · compute compat ranges from version (no empty/stale ranges) + gate (THE-872) · codecalc MCP server image for the…

v0.3.1 · 2026-08-21

server.json description ≤100 chars + retriable registry publish (THE-867) · namespace casing → io.github.The-40-Thieves/codecalc (THE-867) · prepare 0.3.1 (carry corrected mcp-name marker to PyPI)

04 · Who maintains Codecalc

codecalc is maintained by the-40-thieves. It's the only MCP server we track from this author; the repo dates to Aug 2026.

05 · Facts

category
other - ranked #216 of 848 actively-maintained other servers as of 2026-08-25.
release cadence
5 releases in the last 90 days (latest 2026-08-22)
registry
io.github.The-40-Thieves/codecalc (active, first published 2026-08-20 · 3 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 52 MCP tools. It runs locally over stdio via the published package.

Is Codecalc still maintained?

Yes - as of 2026-08-25, its last commit was 2026-08-23 and it shipped 5 releases in the last 90 days. We re-verify nightly.

How do I install Codecalc?

Run `uvx codecalc`. The README documents one environment variable (CODECALC_RUNTIME_PATH) to set first. Set CODECALC_RUNTIME_PATH before connecting. 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

More MCP servers to compare · The402ai MCP Server · Theabbie · Agent News by The Agent Times · Thecolonycc MCP Server · Psquare

More Python MCP servers · Skill of Skills · Overllm · Emfirge · Mneme (thegoatpsy) · Costco · see all