Atlas / MCP servers / szeider / Mcp Solver

Mcp SolverBLOCK

mcp/szeider/mcp-solver

Model Context Protocol (MCP) server for constraint optimization and solving"

Verdict
BLOCK
Grade
D
Trust score
69 /100
Exposed tools
12 8r · 3w · 1d
Transport
stdio
License
MIT
Stars
184
01

Overview

From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.

[](https://opensource.org/licenses/MIT) [](https://www.python.org/)

An MCP server for constraint solving (SAT, MaxSAT, SMT, CP, ASP, DP). It turns the connected LLM host into a solver-writing agent: the host gets a Python kernel preloaded with a real solver library, modeling instructions for the chosen backend, and a submission gate. The host encodes the problem, runs and verifies it against the real solver, and submits the final program — the outcome is the solution plus the verified solver program that produced it.

Version 4 is a complete re-architecture. Both the MCP interface and the solving engine changed; the design from the SAT 2025 paper (v3) lives on unchanged on the `v3` branch. See From v3 to v4 below.

The MCP server

mcp-solver-serve runs over stdio and works with any MCP host: Claude Desktop, Claude Code, Cursor, or your own client. The host LLM does the solving itself — the server is a solver toolkit; it runs no LLM and needs no API key:

  • `select_backend(solver)` sets up a persistent IPython kernel with the

backend's solver library and helper functions, and returns the modeling instructions for that backend. Calling it again recycles the kernel for the next problem.

  • Kernel tools (python_exec, python_reset, python_status,

python_interrupt) let the host write, run, and verify a real solver program; bare python_exec calls are routed to the solving kernel automatically.

  • `submit_code(code)` is the finish line: the final self-contained

program is syntax-checked and, on success, stored and linked back as an MCP resource (mcp-solver://submissions/{id}), with the verdict as structured content.

  • Resources: mcp-solver://guide (backend selection and workflow)
Read from source at commit f35edcdc53aaOBSERVED · 2026-10-06
02

Connect

Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control. Replace the environment placeholders with a token scoped to the least it needs.

claude-code
claude mcp add mcp-solver --env OPENROUTER_API_KEY=${OPENROUTER_API_KEY} -- uvx mcp-solver
claude-desktop
{
  "mcpServers": {
    "mcp-solver": {
      "command": "uvx",
      "args": [
        "mcp-solver"
      ],
      "env": {
        "OPENROUTER_API_KEY": "${OPENROUTER_API_KEY}"
      }
    }
  }
}
03

Exposed tools (12)

8 read · 3 write · 1 destructive. Blast radius: 1 tool can delete or overwrite — an agent that can be talked into calling a tool can be talked into calling this one.

ToolRiskDescription
addwriteAdd two numbers
dividereadDivide the first number by the second.
echoreadEcho back the input message
greetreadGreet someone by name
multiplyreadMultiply two numbers together.
python_execwriteExecute Python code in the persistent solving kernel.
python_interruptreadInterrupt running code in the solving kernel (state is preserved).
python_resetdestructiveCreate a new kernel (no kernel_id) or reset one (with kernel_id).
python_statusreadCheck kernel state: active kernels, defined variables, packages.
select_backendreadglobal _kernel_id
submit_codewriteSubmit the final, verified, self-contained solver program.
subtractreadSubtract the second number from the first.
04

Trust audit

BLOCKgrade D · trust 69/100 Do not install this without reading the findings. The audit found something that could harm you or your machine.

LayerWhat it checksResult
L0Provenance & inventoryPASS
L1Static analysis of the codeFAIL
L2Instruction surface (what it tells the agent)PASS
L3Class-specific surfaceWARN
L4Behavioural (sandbox)SKIPPED

What the source does

Filesystem
declared (2 observation(s))
Network
none-observed
Shell
declared (1 observation(s))
Dependencies
pinned
Secrets in source
none-found

Findings (4)

HIGHCode injection · code.eval_exec · CWE-78, CWE-94, CWE-95
src/mcp_solver/agent/harness.py:142
print("\nsolver   valid/run   tokens(avg)   exec(avg)   wall(avg)", file=sys.stderr)
Why it matters. evaluates text as code
Fix. remove; use a parser or a dispatch table
MEDIUMFilesystem / path · mcp.destructive_tools · CWE-22, CWE-59
python_reset
Why it matters. 1 tool(s) can delete or overwrite
Fix. prefer a read-only mode or scoped tokens; the page states the blast radius
INFOPrompt injection · prompt.credential_read · CWE-94, CWE-1427
INSTALL.md:199
file is read even when the environment variable is unset, so the file alone is
Why it matters. asks the agent to read credentials
INFOSupply chain · prompt.pipe_to_shell · CWE-829, CWE-1357
INSTALL.md:51
curl -LsSf https://astral.sh/uv/install.sh | sh

Gates applied: no_behavioural_pass.

Audited 2026-10-06 · audit v0.4.1 · source sha f35edcdc53aafull audit observations/trust-audit/mcp-server/szeider__mcp-solver.json · Report an issue / request a re-scan
05

Audit history

Every audit this server has had. A grade with a past is a grade somebody is still checking.

DateSourceVerdictGradeScoreChange
2026-10-06f35edcdc53aaBLOCKD69first audit
06

Questions

What is the Mcp Solver MCP server?

Model Context Protocol (MCP) server for constraint optimization and solving"

What tools does Mcp Solver expose?

12 in total: 8 read-only, 3 that write, and 1 that can delete or overwrite (python_reset). Every one is listed on this page with its risk.

Is Mcp Solver safe to connect to an agent?

No — not without reading the findings first. The audit graded it D (69/100) and found 1 critical or high issue in the source. Each one is listed on this page with the file and line it is on. Separately from the audit: 1 of its tools can destroy data, so scope the token you give it to what you actually need.

What credentials does Mcp Solver need?

It reads OPENROUTER_API_KEY from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.

How does Mcp Solver run?

It speaks stdio, so it runs as a local process your client starts. It is published on PyPI as mcp-solver.

How current is this page?

The grade is for one exact copy of the source (f35edcdc53aa), read on 2026-10-06. The repository is watched and re-audited when it changes.

Advertisement