J
Jacck/mcp-ortools
Constraint solving with Google OR-Tools
View on GitHub ↗Link checked 2026-11-12 · HTTP 200 · opens the vendor's own site
Install & config
- Copy the command above
- Paste it as one entry under
mcpServersinclaude_desktop_config.json— local servers take command + args (example: clients) - Restart your client
Install command from the repository
pip install git+https://github.com/Jacck/mcp-ortools.git
Parsed from the README we fetched on 2026-11-05; we have not executed it.
This is the install method the repository states, not an MCP client config, so no JSON is generated.
Key names differ by client: Clients & CLI
- Source
- collected from the abordage/awesome-mcp list · type: MCP server
- Harvest history
- first seen 2026-11-05 · last seen 2026-11-14 · seen 10× · listed by 10 sources
- Score
- score 1,003 · 10 sources · mcp
- Install
pip install git+https://github.com/Jacck/mcp-ortools.git
FAQ (answers come from our records)
How do I install it?
The repository provides this install command:
pip install git+https://github.com/Jacck/mcp-ortools.git. It comes from the repository itself; we cannot guarantee it runs as-is in your client.Who is it for?
We filed it under these tags: MCP 服务. The tags come from the entry itself, not a taxonomy we imposed.
Who maintains it?
first catalogued 2026-11-05;last seen 2026-11-14。There is no official certification or quality rating here — we record sources and dates only.
# MCP-ORTools
以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →
A Model Context Protocol (MCP) server implementation using Google OR-Tools for constraint solving. Designed for use with Large Language Models through standardized constraint model specification.
## Overview
MCP-ORTools integrates Google's OR-Tools constraint programming solver with Large Language Models through the Model Context Protocol, enabling AI models to:
Submit and validate constraint models
Set model parameters
Solve constraint satisfaction and optimization problems
Retrieve and analyze solutions
## Installation
1. Install the package:
bash
pip install git+https://github.com/Jacck/mcp-ortools.git
2. Configure Claude Desktop
Create the configuration file at %APPDATA%\Claude\claudedesktopconfig.json (Windows) or ~/Library/Application Support/Claude/claudedesktopconfig.json (macOS):
json
"mcpServers": {
"ortools": {
"command": "python",
"args": ["-m", "mcportools.server"]
## Model Specification
Models are specified in JSON format with three main sections:
variables: Define variables and their domains
constraints: List of constraints using OR-Tools methods
objective: Optional optimization objective
### Constraint Syntax
Constraints must use OR-Tools method syntax:
.le() for less than or equal ( =)
.eq() for equality (==)
.ne() for not equal (!=)
## Usage Examples
### Simple Optimization Model
json
"variables": [
{"name": "x", "domain": [0, 10]},
{"name": "y", "domain": [0, 10]}
],
"constraints": [
"(x + y).le(15)",
"x.ge(2 y)"
],
"objective": {
"expression": "40 x + 100 y",
"maximize": true
### Knapsack Problem
Example: Select items with values [3,1,2,1] and weights [2,2,1,1] with total weight limit of 2.
json
"variables": [
{"name": "p0", "domain": [0, 1]},
{"name": "p1", "domain": [0, 1]},
{"name": "p2", "domain": [0, 1]},
{"name": "p3", "domain": [0, 1]}
],
"constraints": [
"(2p0 + 2p1 + p2 + p3).le(2)"
],
"objective": {
"expression": "3p0 + p1 + 2p2 + p3",
"maximize": true
Additional constraints example:
json
"constraints": [
"p0.eq(1)", // Item p0 must be selected
"p1.ne(p2)", // Can't select both p1 and p2
"(p2 + p3).ge(1)" // Must select at least one of p2 or p3
## Features
Full OR-Tools CP-SAT solver support
JSON-based model specification
Support for:
Integer and boolean variables (domain: [min, max])
Linear constraints using OR-Tools method syntax
Linear optimization objectives
Timeouts and solver parameters
Binary constraints and relationships
Portfolio selection problems
Knapsack problems
### Supported Operations in Constraints
## Overview
MCP-ORTools integrates Google's OR-Tools constraint programming solver with Large Language Models through the Model Context Protocol, enabling AI models to:
Submit and validate constraint models
Set model parameters
Solve constraint satisfaction and optimization problems
Retrieve and analyze solutions
## Installation
1. Install the package:
bash
pip install git+https://github.com/Jacck/mcp-ortools.git
2. Configure Claude Desktop
Create the configuration file at %APPDATA%\Claude\claudedesktopconfig.json (Windows) or ~/Library/Application Support/Claude/claudedesktopconfig.json (macOS):
json
"mcpServers": {
"ortools": {
"command": "python",
"args": ["-m", "mcportools.server"]
## Model Specification
Models are specified in JSON format with three main sections:
variables: Define variables and their domains
constraints: List of constraints using OR-Tools methods
objective: Optional optimization objective
### Constraint Syntax
Constraints must use OR-Tools method syntax:
.le() for less than or equal ( =)
.eq() for equality (==)
.ne() for not equal (!=)
## Usage Examples
### Simple Optimization Model
json
"variables": [
{"name": "x", "domain": [0, 10]},
{"name": "y", "domain": [0, 10]}
],
"constraints": [
"(x + y).le(15)",
"x.ge(2 y)"
],
"objective": {
"expression": "40 x + 100 y",
"maximize": true
### Knapsack Problem
Example: Select items with values [3,1,2,1] and weights [2,2,1,1] with total weight limit of 2.
json
"variables": [
{"name": "p0", "domain": [0, 1]},
{"name": "p1", "domain": [0, 1]},
{"name": "p2", "domain": [0, 1]},
{"name": "p3", "domain": [0, 1]}
],
"constraints": [
"(2p0 + 2p1 + p2 + p3).le(2)"
],
"objective": {
"expression": "3p0 + p1 + 2p2 + p3",
"maximize": true
Additional constraints example:
json
"constraints": [
"p0.eq(1)", // Item p0 must be selected
"p1.ne(p2)", // Can't select both p1 and p2
"(p2 + p3).ge(1)" // Must select at least one of p2 or p3
## Features
Full OR-Tools CP-SAT solver support
JSON-based model specification
Support for:
Integer and boolean variables (domain: [min, max])
Linear constraints using OR-Tools method syntax
Linear optimization objectives
Timeouts and solver parameters
Binary constraints and relationships
Portfolio selection problems
Knapsack problems
### Supported Operations in Constraints
Listed badge (optional)
Copy this line into the README if you want the listing mark. Optional, and it does not affect being listed.
[](https://anclum.com/en/s/jacck-mcp-ortools/)
- Source
- awesome · https://github.com/Jacck/mcp-ortools
- Browse by field
- MCP servers
- Listed by
- 10 independent sources
- added
- today
More like this
Filed under
Every tag opens the full list for that filter. Counts are the live catalogue figures.