Lets models submit constraint models to Google OR-Tools, solve optimization problems and read the solutions.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add or-tools -- python -m mcp_ortools.server~/.codex/config.toml
[mcp_servers.or-tools]
command = "python"
args = ["-m", "mcp_ortools.server"]
# codex mcp add or-tools -- python -m mcp_ortools.server~/.cursor/mcp.json
{
"mcpServers": {
"or-tools": {
"command": "python",
"args": [
"-m",
"mcp_ortools.server"
]
}
}
}.vscode/mcp.json
{
"servers": {
"or-tools": {
"type": "stdio",
"command": "python",
"args": [
"-m",
"mcp_ortools.server"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"or-tools": {
"command": "python",
"args": [
"-m",
"mcp_ortools.server"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"or-tools": {
"command": "python",
"args": [
"-m",
"mcp_ortools.server"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"or-tools": {
"command": "python",
"args": [
"-m",
"mcp_ortools.server"
]
}
}
}