MCP Solver MCP Server

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

Local serverstdioPython

What is the MCP Solver MCP Server?

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

What it actually does

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.

Configuration

  • Python 3.13 - uv (a hard runtime requirement: solver libraries are supplied at solve time via uv run --with) - An OpenRouter API key — for the CLI and benchmark harness only; the MCP server itself runs without one

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
pysatBoolean satisfiability (SAT)
maxsatWeighted optimization
cpmpyConstraint programming (CP)
clingoAnswer Set Programming (ASP)
didpDynamic programming (DIDP)

How to install the MCP Solver MCP Server

{
  "mcpServers": {
    "mcp-solver": {
      "command": "uvx",
      "args": ["--from", "mcp-solver[agent]", "mcp-solver-serve"]
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

  • Python 3.13 - uv (a hard runtime requirement: solver libraries are supplied at solve time via uv run --with) - An OpenRouter API key — for the CLI and benchmark harness only; the MCP server itself runs without one
VariableDescriptionRequired
OPENROUTER_API_KEYCredential the server authenticates with.Yes

Example prompts to try

  • “Use MCP Solver to Resources.”
  • “Use MCP Solver to Backend.”
  • “Use MCP Solver to pysat.”

Frequently asked questions

Python 3.11+, `uv` package manager, and solver-specific dependencies (MiniZinc, PySAT, Z3, Clingo). Supports macOS, Windows, and Linux.