minizinc-mcp

v0.1.0
minizinc-mcp Checked 2 days ago Published 2 months ago

MCP server that exposes MiniZinc constraint solving to LLM clients

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_tools

List the tools exposed by this MiniZinc MCP server

list_solvers

List MiniZinc solvers

validate_model

Validate a MiniZinc model

ParameterTypeDescription
model_code *string
params

solve_model

Solve a MiniZinc constraint model given as source code. Present the solving result to the user as a short summary plus a Markdown table of the output variables instead of dumping the raw JSON: scalars as one row per variable, 1-D arrays as index/value rows, and multi-dimensional arrays as a grid with row and column indices.

ParameterTypeDescription
model_code *string
all_solutionsboolean
max_solutions
params
solverstring
timeout_seconds

compare_solvers

Solve a MiniZinc model once with each requested solver and compare the results. Present the results to the user as a Markdown table with one row per solver instead of dumping the raw JSON.

ParameterTypeDescription
model_code *string
solvers *array
all_solutionsboolean
max_solutions
params
timeout_seconds

solve_model_by_path

Solve a MiniZinc constraint model given by file paths. Present the solving result to the user as a short summary plus a Markdown table of the output variables instead of dumping the raw JSON: scalars as one row per variable, 1-D arrays as index/value rows, and multi-dimensional arrays as a grid with row and column indices.

ParameterTypeDescription
model_path *string
all_solutionsboolean
data_path
max_solutions
solverstring
timeout_seconds

get_model_info

Describe a MiniZinc model without solving it. Present the result to the user as the solve method plus two Markdown tables (name/type) for the input parameters and the output variables, instead of dumping the raw JSON.

ParameterTypeDescription
model_code *string
params

get_flatzinc

Flatten a MiniZinc model to FlatZinc without solving it

ParameterTypeDescription
model_code *string
optimisation_level
params