Skip to content

AutoTuneMPC MCP server

Solves constrained nonlinear model predictive control steps over a JSON API and tunes controller weights with Optuna.

read 2026-11-20

← Back to AutoTuneMPC

How to connect

Add the server to your MCP client config. Claude Desktop, Cursor and most other clients read this shape:

{
  "mcpServers": {
    "autotunempc": {
      "type": "http",
      "url": "https://api.autotunempc.com/mcp"
    }
  }
}

Add it

Claude Code, in a terminal

claude mcp add --transport http autotunempc https://api.autotunempc.com/mcp

Add to CursorAdd to VS Code

claude.ai, ChatGPT and other clients: add https://api.autotunempc.com/mcp as a custom connector in the settings.

Tools it offers11 tools · read 2026-11-29
  • identify_discrete_plant

    Fit a discrete linear A, B, and dt from logged (t, u, y) samples. This tool stays free when payment enforcement is on. It does not call IPOPT. Pass the returned matrices to ``solve_mpc`` as a linear system. Send 4 to 2000 samples. Each…

  • validate_problem

    Free feasibility check. Call this first, then simulate, before any paid tool. This is POST /v1/validate. It stays free when payment enforcement is on. It does not use X-API-Key and it does not return HTTP 402. A failing check means the…

  • simulate

    Free closed-loop tracking check. Call validate_problem first. This is POST /v1/simulate. It stays free. The rollout shows whether the current weights track the reference. Call start_autotune_job at $1.50 when the motion oscillates or…

  • solve_mpcchanges data

    Solve a multi-step constrained MPC problem on the server. Use this when the horizon has soft state bounds, hard input and slew limits, and an offset-free disturbance rejection term. Pass the same ``session_id`` on later calls of one…

  • reset_warm_startchanges data

    Clear one session's shifted primal and dual. Next ``solve_mpc`` / ``POST /v1/solve`` with this ``session_id`` is cold. The compiled solver stays. Stateless calls omit ``session_id`` and already clear warm-start memory, so they do not use…

  • start_autotune_jobchanges data

    Paid at $1.50. Call free validate_problem and free simulate first. Call this when manual Q, R, Rd, and Qf oscillate or miss the target. Then poll ``get_autotune_job``. The tuner needs discrete or continuous linear matrices A and B, one of…

  • get_autotune_job

    Read one autotune job started by ``start_autotune_job``. ``status`` is ``running``, ``complete``, or ``failed``. On ``complete``, ``result`` holds the Pareto-best weights, overshoot, settling time, RMSE, and solve time…

  • autotune_root_zone_irrigationchanges data

    Tune valve weights for the three-layer root-zone irrigation template. Same payment as autotune_template: X-API-Key spends 1 autotune credit, and a missing key or an empty pack is HTTP 402 for x402. The default study is physics-v1. Pass…

  • autotune_battery_peak_shavingchanges data

    Tune charge power weights for the battery peak-shaving template. Same payment as autotune_template: X-API-Key spends 1 autotune credit, and a missing key or an empty pack is HTTP 402 for x402.

  • autotune_embedded_controller_with_c_codegenchanges data

    Tune a linear plant and write a zero-heap C99 bundle. The reply's ``codegen`` object lists ``mpc_bundle.h`` and ``mpc_bundle.c`` plus ``usage_example_c`` and ``controller_kind``. A linear plant is a condensed QP (``linear_qp``). A…

  • autotune_templatechanges data

    Tune differential_drive, battery_peak_shaving, or root_zone_irrigation. This is POST /v1/templates/autotune at $2.00. The name is differential_drive, battery_peak_shaving, or root_zone_irrigation. The reply returns tuned Q, R, Rd, and Qf…

How we checked it

Should an agent connect it

Not proven either way yet
  • Whether its tools do the product's job has not been judged yet.

Once connected

  • Keep approval on for reset_warm_start: they delete, send or pay without saying so.
  • Its definitions take about 32269 tokens of context: enable only the tools a task needs.

Said by rules from the measurements above. The likely first call is a model's pick from the tool list; read its description before relying on it.

Measured daily

daily checks: 9, the first on 2026-11-20
  • INITE MCP score60 of 100answers 100 · definitions 100 · context 36 · use 0 · connects 100 · lowered until one of our scenario runs passes · lowered by the warning signs below
  • Answered100% of days9 of 9 daily checks
  • Median first answer272 ms
  • Space in an agent's context≈ 32,269 tokensthe definitions of all its tools (11), which an agent carries on every turn
  • Tool definitionsA · 100 of 100
  • Typed results11 of 11 toolsdeclared outputSchema: results come typed, read once
  • Every tool passes all six checks.

Worth a look

  • Tools that delete, send or pay, marked as not destructive: reset_warm_start

A program checks the server once a day: initialize and tools/list, no model. Tokens are the definitions' length at about four characters a token. The grade averages six checks of every tool's name, description, schema and annotations; it says how well the tools are described, not whether they work. The score weighs what was measured and nothing else: answering (25%), doing the product's job (25%), definitions (20%), context (10%), use (10%) and how readily a client connects (10%). A part that was not measured is left out, and a hidden instruction caps the score at 40. The state of vendors' MCP servers: method and numbers →

When we asked itchecked 2026-11-25
  • Stateanswerschecked 2026-11-25
  • Tools11
  • Server calls itselfgeneral-mpc-engine
  • Server version4.2.1
  • Protocol version2025-06-18

On 2026-11-25 the server answered initialize and tools/list without a sign-in. First answer in 719 ms.

Whose server it is
  • Registry namecom.autotunempc/autotunempcverified in the MCP registry

The registry name sits under autotunempc.com. The registry only lets a publisher use that namespace after proving control of the domain through DNS or HTTP.

OpenAPI spec

10 paths, read 2026-11-20. Open the spec ↗

Each line is something a program found when it went looking: the registry entry, the server's own answer, a spec that parses. A missing line means we did not find it, not that it does not exist.