Skip to main content
Glama
avallavall

JAOT MCP Server

by avallavall

JAOT — Just Another Optimization Tool

Software that decides. How much of each product to make, which orders go on which van, who covers which shift, what to buy and when — decisions with more combinations than anyone can weigh by hand, and a real cost to getting wrong. Describe one in plain language or JSON, and JAOT gives you the best answer, what it is worth, and which limit is the one holding you back.

CI Release License Python Solvers

Quickstart · Architecture · Development · Documentation · License


What it is

You say what you are deciding, what constrains you — capacity, budget, hours, stock — and what "best" means for you: cheapest, fastest, most profit. JAOT turns that into a mathematical model, hands it to an industrial solver, and gives you back the decision in the same terms you asked the question in.

You do not need to know what a MIP is to use it. If you do, nothing is hidden: the model, the solve log, the gap and the full post-solve analysis are all there, and an answer that could only be proven within a bound says so instead of posing as exact.

It is a platform, not a library and not a hosted service — you run it yourself with docker compose up. It comes with a web interface, a REST API, and an MCP server so AI agents can use it too. Two solvers ship with it (SCIP and HiGHS) and adding another means writing one adapter.

Free, with no paid tier. No billing, no credits, no upsell — the marketplace is people sharing models, not selling them. Fair use is a set of request limits and solve quotas you configure yourself, and the AI assistant runs on a monthly budget you set, or on your own API key.

Nothing caps the size of your models but your hardware. There is no ceiling on model size, expression length, thread count or solve time — every limit is a setting you own, where 0 means unlimited. A model with two million variables solves if your machine can hold it. A public instance with open registration can set real numbers; a private one need not.

Solve

  • Solver-agnostic core — an OptimizationProblem schema that stays independent of the solver. Ships SCIP (via PySCIPOpt) and HiGHS (via highspy); an optional Hexaly adapter is bring-your-own-license.

  • The interface adapts to your solver — each adapter declares what it supports, so the UI tells you up front what your chosen solver will not give you (a metaheuristic computes no shadow prices) instead of offering a panel that then comes back empty.

  • Standard formats in and out — MPS, LP, CIP and JSON, with a preview before you commit to a solve.

Understand

  • Analysis that leads with facts — don't just solve, understand. Solutions come back as decisions (grouped by the model's real index structure, not a wall of x_3_7 = 1 rows) with an honest solve summary (root node / N nodes / time limit + gap) and an exact, solution-based analysis: binding constraints, slack and utilization computed from your actual solution — exact for the integer optimum on every solver. LP sensitivity (shadow prices, reduced costs) stays available with its caveats, and a one-click AI explanation translates the result into plain language grounded strictly in your actual numbers.

  • What-if answers measured, not estimated — ask what one more unit would actually buy you and JAOT perturbs the solved model and solves it again: RHS ranging on the binding constraints (as a tornado chart) and decision regret (what overruling a binary decision costs). Every figure is measured on the real MIP rather than read off an LP relaxation, and a scenario that hits its time limit is reported as a bound, never as an exact number.

  • Infeasibility diagnosis — when a model cannot be satisfied, get the minimal conflicting set of constraints instead of a bare INFEASIBLE.

Build and share

  • LLM formulation assistant — turn a natural-language description into a runnable model, grounded in a RAG index over the template library (Qdrant + local sentence-transformers; no data leaves your box except the Claude calls you opt into).

  • Model studio — one versioned workspace per model: build it on a visual canvas, with the AI assistant, in a JSON editor, or in the JModel DSL (sets/params — with a mathematical-notation view, draft derivation from flat models, and compile-verified AI generation from a description or a screenshot); analyze health and stats; solve with live progress; commit versions git-style ("what changed + why"), diff and restore them; run the same model against many datasets and scenarios.

  • Model marketplace — a free, collaborative gallery: publish a committed version of your model, and bring any community model into your own studio with one click ("Use in studio" creates your editable, versioned copy). No prices or commissions — authors share; adoption is the metric.

  • 102 templates + 33 problem generators — knapsack, vehicle routing, scheduling, production planning, portfolio, a full MDPDP-TW formulation, and more.

Integrate and operate

  • MCP server — 30 curated tools for AI agents over the Model Context Protocol: an agent can author a versioned model, solve it, and ask what is saturated, why a model is infeasible, or what one more unit is worth.

  • REST API v2 — every capability of the UI is an endpoint, authenticated with a Bearer API key.

  • Multi-tenant auth, an admin panel, i18n (en/es/ca/fr/de), and a Prometheus/Grafana/Alertmanager monitoring stack — included.


Related MCP server: CHUK MCP Solver

Quickstart

Requirements

  • Git and Docker + Docker Compose (the recommended path — everything runs in containers).

  • Or, for a local install without Docker: Python 3.12 and a PostgreSQL instance.

Run it

git clone https://github.com/avallavall/jaot.git && cd jaot
cp .env.example .env   # includes first-run admin credentials — change the password
docker compose up -d   # migrates, seeds the catalog, creates your admin on first boot

This brings up PostgreSQL, RabbitMQ, Redis, Qdrant, the API (port 8001), the Celery worker and beat, and the frontend (port 3000).

Then check what still needs configuring (SMTP, AI key…):

docker compose exec api python scripts/doctor.py

Open http://localhost:3000 and log in with your SEED_ADMIN_* credentials. See Configuration for the full guide.

Solve over HTTP

docker compose exec api python scripts/ensure_admin_api_key.py   # prints your API key

curl -X POST http://localhost:8001/api/v2/solve \
  -H "Authorization: Bearer <your-api-key>" \
  -H "Content-Type: application/json" \
  -d '{"name":"test","variables":[{"name":"x","type":"continuous","lower_bound":0,"upper_bound":10}],"objective":{"sense":"maximize","expression":"3*x"},"constraints":[{"name":"c1","expression":"x <= 5"}]}'

Returns {"status":"optimal","objective_value":15.0,...}.

Connect an AI agent (MCP)

The MCP server speaks Streamable HTTP at /mcp. Browsing templates and the marketplace needs no key; anything that reads or writes your data takes a Bearer API key:

claude mcp add --transport http jaot http://localhost:8001/mcp \
  --header "Authorization: Bearer <your-api-key>"

Full setup guide (Claude Code, Claude Desktop, opencode, OpenAI Responses API) → docs/getting-started/QUICKSTART.md.


Architecture

┌──────────────────────────────────────────────┐
│  Next.js 16 frontend  (5 locales)             │
└───────────────┬──────────────────────────────┘
                │ REST + SSE + WebSocket
┌───────────────▼──────────────────────────────┐
│  FastAPI (Python 3.12)                        │
│  auth · solve · studio · LLM/RAG ·            │
│  marketplace · triggers · MCP server          │
└──┬─────────┬──────────┬──────────┬────────────┘
   │         │          │          │
┌──▼──┐ ┌────▼────┐ ┌──▼──┐ ┌─────▼─────┐ ┌────────────┐
│ Pg  │ │RabbitMQ │ │Redis│ │  Qdrant   │ │ Anthropic  │
│ 18  │ │+ Celery │ │     │ │ (RAG)     │ │ Claude API │
└─────┘ │ workers │ └─────┘ └───────────┘ └────────────┘
        │ SCIP /  │
        │ HiGHS / │
        │ Hexaly  │
        └─────────┘

A modular monolith: the solver is the first extracted bounded context (app/domains/solver/), behind a SolverAdapter protocol enforced by import-linter contracts. Adding a solver means writing one adapter — see docs/ARCHITECTURE/OVERVIEW.md.


Development

pytest                            # backend tests — real PostgreSQL, no mocked DB
ruff check app/                   # backend lint (100-char lines)
lint-imports                      # domain boundary contracts

cd frontend
npm run lint                      # frontend lint
npm run test                      # unit tests (vitest)
npm run test:e2e                  # end-to-end (playwright, against a prod-like build)

Database migrations:

alembic -c infra/alembic.ini upgrade head
alembic -c infra/alembic.ini revision --autogenerate -m "description"

Conventions, dev setup and the PR checklist are in CONTRIBUTING.md.


Documentation

Doc

Description

Quickstart

From zero to first solve

Configuration

Self-hosting config: .env vs admin panel, + the config doctor

Architecture

System design, components, data model

Bounded contexts

The domain map the modular monolith is being extracted along

JModel grammar

The sets/params DSL, formally

Testing & Quality

Test strategy, coverage, mutation scores

Deployment

Running JAOT in production

Disaster Recovery

Incident response runbook

Roadmap

Where the project is heading — now / next / later

Changelog

What changed, release by release

Contributing

Dev setup and conventions

Security policy

Reporting a vulnerability

MDPDP Spec

A worked mathematical formulation


Built with

JAOT stands on the SCIP Optimization Suite (Zuse Institute Berlin) and HiGHS — full attributions in THIRD_PARTY_LICENSES.

Built solo and AI-accelerated. What you can verify rather than take on faith: tests run against real PostgreSQL (no mocked DB), domain boundaries are enforced by import-linter contracts, and every change is gated by lint, tests, and security scans (bandit, pip-audit, npm audit). Details, coverage, and mutation-test scores in Testing & Quality.

Maintained best-effort — monthly issue triage, quarterly dependency/CVE pass. Issues and focused PRs welcome; see CONTRIBUTING.md and SECURITY.md.


Citing the solvers

JAOT is powered by SCIP 10 (via PySCIPOpt) and HiGHS. As the SCIP team requests, any work that uses SCIP should acknowledge and cite it. If JAOT helps your research or product, please cite the underlying solvers:

@misc{scip10,
  title        = {The {SCIP} Optimization Suite 10.0},
  author       = {Christopher Hojny and Mathieu Besançon and Ksenia Bestuzheva and Sander Borst and João Dionísio and Johannes Ehls and Leon Eifler and Mohammed Ghannam and Ambros Gleixner and Adrian Göß and Alexander Hoen and Jacob von Holly-Ponientzietz and Rolf van der Hulst and Dominik Kamp and Thorsten Koch and Kevin Kofler and Jurgen Lentz and Marco Lübbecke and Stephen J. Maher and Paul Matti Meinhold and Gioni Mexi and Til Mohr and Erik Mühmer and Krunal Kishor Patel and Marc E. Pfetsch and Sebastian Pokutta and Chantal Reinartz Groba and Felipe Serrano and Yuji Shinano and Mark Turner and Stefan Vigerske and Matthias Walter and Dieter Weninger and Liding Xu},
  year         = {2025},
  howpublished = {Optimization Online preprint, arXiv:2511.18580},
  url          = {https://arxiv.org/abs/2511.18580}
}

@article{achterberg2009scip,
  title   = {{SCIP}: solving constraint integer programs},
  author  = {Achterberg, Tobias},
  journal = {Mathematical Programming Computation},
  volume  = {1},
  number  = {1},
  pages   = {1--41},
  year    = {2009},
  doi     = {10.1007/s12532-008-0001-1}
}

@article{huangfu2018highs,
  title   = {Parallelizing the dual revised simplex method},
  author  = {Huangfu, Qi and Hall, J. A. Julian},
  journal = {Mathematical Programming Computation},
  volume  = {10},
  number  = {1},
  pages   = {119--142},
  year    = {2018},
  doi     = {10.1007/s12532-017-0130-5}
}

License

Apache License 2.0 — see also NOTICE. Third-party license attributions are in THIRD_PARTY_LICENSES.

A
license - permissive license
-
quality - not tested
B
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    -
    quality
    D
    maintenance
    Enables solving linear programming (LP) and mixed-integer linear programming (MILP) optimization problems through natural language, with built-in simplex and branch-and-cut solvers plus infeasibility diagnostics. Includes optional OR-Tools fallback for larger problems and supports parsing optimization problems from natural language descriptions.
    MIT
  • A
    license
    A
    quality
    C
    maintenance
    Provides constraint satisfaction and optimization capabilities to LLMs and AI agents for scheduling, resource allocation, routing, budget optimization, and configuration problems using Google OR-Tools CP-SAT solver.
    5
    5
    Apache 2.0
  • A
    license
    -
    quality
    C
    maintenance
    Provides linear programming (LP), mixed-integer programming (MIP), and quadratic programming (QP) optimization capabilities using the HiGHS solver, enabling AI assistants to solve complex optimization problems like production planning, logistics, and portfolio optimization.
    18
    16
    MIT

View all related MCP servers

Related MCP Connectors

  • A Model Context Protocol server for Wix AI tools

  • Connect AI agents to Replynodes over the Model Context Protocol.

  • A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/avallavall/jaot'

If you have feedback or need assistance with the MCP directory API, please join our Discord server