mcp-ortools

mcp-ortools

11

MCP-ORTools is a Model Context Protocol server implementation utilizing Google OR-Tools for constraint solving, designed for compatibility with large language models. It supports solving constraint satisfaction and optimization problems through JSON-based model specifications.

What types of problems can MCP-ORTools solve?

MCP-ORTools can solve constraint satisfaction and optimization problems, including portfolio selection and knapsack problems.

How are models specified in MCP-ORTools?

Models are specified in JSON format with sections for variables, constraints, and an optional optimization objective.

What syntax is used for constraints in MCP-ORTools?

Constraints use OR-Tools method syntax, such as .le() for less than or equal, .ge() for greater than or equal, .eq() for equality, and .ne() for not equal.

What is the response format of the solver?

The solver returns solutions in JSON format, including status, solve time, variable values, and objective value.

What are the possible status values returned by the solver?

The possible status values are OPTIMAL, FEASIBLE, INFEASIBLE, and UNKNOWN.