L'Atlas / MCP servers / AutoTuneMPC
MCP server

AutoTuneMPC

com.autotunempc/autotunempc

MCP server OK 11 tools

Get a review See pricing

Constrained nonlinear MPC and Optuna tuning over HTTPS JSON.

Technical sheet

Author
autotunempc.com (registry namespace)
Repository
github.com/kaiden8/autotunempc-examples
Site
autotunempc.com
Version
1.0.1
Transport
Streamable HTTP
Authentication
None (observed by our test)
Server address
https://api.autotunempc.com/mcp Streamable HTTP
Tools
11
Categories
—
Last updated
21 Nov 2026
Published
21 Nov 2026

Verified author and popularity

Entry not claimed yet. Is it your project? Claim it

Not “Popular” for now Removed automatically as soon as the criteria are no longer met.

  • Distinct visitors of this entry over 30 days: 0 (30 needed) not yet
  • or install configs copied over 30 days: 0 (5 needed) not yet
  • and a successful test less than 14 days old: tested 28 Nov 2026 met

Badge updates by itself. Always “tested on …”, never “certified”. How it works

MarkdownREADME.md
[![Status on L’Atlas](https://latlas.dev/badge/statut/mcp/com.autotunempc/autotunempc.svg?lang=en)](https://latlas.dev/en/mcp/com.autotunempc/autotunempc)
HTML
<a href="https://latlas.dev/en/mcp/com.autotunempc/autotunempc"><img src="https://latlas.dev/badge/statut/mcp/com.autotunempc/autotunempc.svg?lang=en" alt="Status on L’Atlas" height="20"></a>

Badge for your README

Listed on L’Atlas

Free, for every entry. It links back to this entry and shows “tested OK” as long as our latest test succeeded.

MarkdownREADME.md
[![Listed on L’Atlas](https://latlas.dev/badge/fiche/com.autotunempc/autotunempc.svg?lang=en)](https://latlas.dev/en/mcp/com.autotunempc/autotunempc)
HTML
<a href="https://latlas.dev/en/mcp/com.autotunempc/autotunempc"><img src="https://latlas.dev/badge/fiche/com.autotunempc/autotunempc.svg?lang=en" alt="Listed on L’Atlas" height="20"></a>

Our tests

Every week: initialize then tools/list, without credentials, never calling a tool. Method

Address
https://api.autotunempc.com/mcp
Last result
OK 28 Nov 2026, 09:49
Response time
1,830 ms (initialize + tools/list)
Protocol version
2025-11-25
Announced name
general-mpc-engine 4.2.1
Tools
11

History

DateResultResponseTools
28 Nov 2026, 09:49OK1,830 ms11

Exposed tools (11, from tools/list, 28 Nov 2026)

identify_discrete_plant

Identify a 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 ``y`` has length 1..24 and each ``u`` has length 1..12, the same widths on every row, all finite, with strictly increasing timestamps. Anything else is rejected before the fit.

ParameterTypeRequiredDescription
requestobjectyesLogged (t, u, y) samples for a free discrete linear fit. No X-API-Key and no x402 charge. Pass A, B, and dt to solve_mpc after a free validate_problem.

validate_problem

Validate a 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 plant, bounds, or weights are not feasible. After it passes, call simulate to see closed-loop tracking. Call start_autotune_job at $1.50 only when those weights oscillate or miss the target.

ParameterTypeRequiredDescription
requestobjectyesFree. Call validate_problem first, then the free simulate tool, before any paid call. No X-API-Key and no x402 charge.

simulate

Simulate a closed loop

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 misses the target.

ParameterTypeRequiredDescription
requestobjectyesFree closed-loop rollout. No X-API-Key and no x402 charge. Call validate_problem first. Call start_autotune_job at $1.50 when the rollout oscillates or misses the target.

solve_mpc

Solve MPC

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 closed loop so the shifted primal and dual warm start is restored. Omit ``session_id`` for a single stateless solve. Do not call this for a one-step linear update you can do locally (a matrix multiply, a threshold, or reading a sensor). Those do not need IPOPT. CasADi and IPOPT return u0 and the predicted trajectory for robotics, energy storage, and process control. session_id is the warm start. This is POST /v1/solve at $0.02. Send header X-API-Key when a $15 pack still has solve credits. With no key, or when those credits are gone, the call is HTTP 402 and an agent pays with x402. There is no second payment path. Set ``reset_warm_start`` or call the ``reset_warm_start`` tool to drop the seed for that session. The compiled solver stays. A reset only clears the seed stored for the caller who owns it.

ParameterTypeRequiredDescription
requestobjectyesPaid constrained solve at $0.02. Send X-API-Key while the pack has solve credits, or pay HTTP 402 with x402 on Base USDC. Validate free first. Autotune is the later step when the weights are unknown.

reset_warm_start

Reset warm start

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 this tool.

ParameterTypeRequiredDescription
session_idstringyesSession id whose warm-start seed to drop. Required, and at most 128 characters. Free: it does not spend a credit. The compiled solver stays. The next solve_mpc with this id is a cold start. Clearing an unknown id changes nothing.

start_autotune_job

Autotune weights

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 double_integrator, thermal_rc_zone, soil_moisture_cascade, cart_pendulum, unicycle_kinematics, gravity_tank, icr_skid_steer, and ackermann, or a kind expression plant with one allowlisted scalar expression per state row. Expressions outside that allowlist are rejected. Optional h rows and fixed obstacle slots, path-frame residuals, and zone bands are accepted. Call this when the weights are unknown and you can afford a closed-loop study with plant mismatch. Optuna tunes Q, R, Rd, and Qf on the single scenario in the request and reports overshoot and settling time. There is no scenario bank and no never-worse check: the result is the best trial of that study, not a comparison with weights you already have. It is an alternative to manual PID or hand-tuned MPC. The reply is a ``job_id``. When payment enforcement is on it also includes a ``job_token`` for ``get_autotune_job``. It does not contain the weights. Poll until ``status`` is ``complete`` or ``failed``. The finished result's ``Q``, ``R``, ``Rd``, and ``Qf`` are the physical weights. ``normalized_Q`` and its siblings are the unitless search box. Payment settles when the job is accepted onto the queue, not when the study finishes. This is POST /v1/autotune at $1.50. Send header X-API-Key…

ParameterTypeRequiredDescription
requestobjectyesPaid at $1.50. Call free validate_problem and free simulate first. Call this when the weights oscillate or miss the target. Send X-API-Key or pay the HTTP 402 with x402 on Base USDC. Poll get_autotune_job with the returned job_id.

get_autotune_job

Read an 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. ``pareto_profiles`` names up to three points already evaluated (tight tracking, balanced, smooth) and ``pareto_points`` is the plot cloud. The top-level ``Q``, ``R``, ``Rd``, and ``Qf`` stay the study winner. Poll again while it is ``running``. When payment enforcement is on, pass the ``job_token`` from the start call or the ``X-Job-Token`` header. A failed job reports ``autotune_failed``.

ParameterTypeRequiredDescription
job_idstringyesJob id returned by start_autotune_job.
job_tokenstring | nullnoToken returned with the job when payment enforcement is on. Omit it when the X-Job-Token header carries the same token. This poll is free and does not spend a credit.

autotune_root_zone_irrigation

Autotune root-zone irrigation

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 study_version published to run the older scenario.

ParameterTypeRequiredDescription
max_trialsintegernoOptuna trials for the root-zone irrigation plant. Default 20. Values below 1 are raised to 1. Paid at $2.00: X-API-Key spends 1 autotune credit, or HTTP 402 is x402 Base USDC. Each call starts a new study.
study_versionstring | nullnoOmit for physics-v1 (start [0.17, 0.22, 0.22], horizon 9). published keeps the older start-on-reference horizon 24 scenario.

autotune_battery_peak_shaving

Autotune battery peak shaving

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.

ParameterTypeRequiredDescription
max_trialsintegernoOptuna trials for the battery peak-shaving plant. Default 20. Values below 1 are raised to 1. Paid at $2.00: X-API-Key spends 1 autotune credit, or HTTP 402 is x402 Base USDC. Each call starts a new study.

autotune_embedded_controller_with_c_codegen

Autotune an embedded controller

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 nonlinear plant, including differential drive, is a linearized iteration (``linearized_rti``): one Jacobian of ``f`` at the current ``(x, u, d)``, then projected-gradient steps. That is not a full nonlinear SQP and not acados SQP-RTI. The exported acados controller is a real SQP; ``SQP_RTI`` is that backend's one-quadratic-program-per-tick mode. Compile with ``gcc -O3 -std=c99 -Wall -Wextra -fPIC -shared -lm``. Each control step is ``mpc_compute_u0`` then, after the plant measurement, ``mpc_observer_update``. Neither function allocates on the heap. ``MPC_NX``, ``MPC_NU``, ``MPC_ND``, and ``MPC_HORIZON`` in the header are the array sizes. 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.

ParameterTypeRequiredDescription
max_trialsintegernoOptuna trials before the C99 bundle is written. Default 1. Values below 1 are raised to 1. Paid at $2.00: X-API-Key spends 1 autotune credit, or HTTP 402 is x402 Base USDC. Each call starts a new study and writes a new bundle.

autotune_template

Autotune a template

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. Send name and max_trials. Send header X-API-Key when a $15 pack still has autotune credits. One call spends 1 of those credits. With no key, or when the credits are gone, the call is HTTP 402 and an agent pays with x402. The reply returns the tuned weights for that template. Payment uses the same gate as the HTTP route.

ParameterTypeRequiredDescription
requestobjectyesPaid template tune at $2.00 for differential_drive, battery_peak_shaving, or root_zone_irrigation. Send X-API-Key (spends 1 autotune credit) or pay HTTP 402 with x402 on Base USDC. Validate a custom plant free first; these three names are built in. Each call starts a new study.

Client compatibility

Based on the transports each client documents as supported; this is not a live test inside the client.

ClientDocumented transportsThis serverSource
Claude Codestdio Streamable HTTP SSEtransport accepteddoc
Claude (claude.ai, Claude Desktop, Cowork)stdio Streamable HTTP SSEtransport accepteddoc
ChatGPT (serveurs MCP personnalisés / plugins)Streamable HTTP SSEtransport accepteddoc
Cursorstdio Streamable HTTP SSEtransport accepteddoc
VS Code (GitHub Copilot)stdio Streamable HTTP SSEtransport accepteddoc
Windsurf (documentation redirigée vers Devin Local / Devin CLI)stdio Streamable HTTP SSEtransport accepteddoc
Gemini CLIstdio Streamable HTTP SSEtransport accepteddoc
OpenAI Codex (CLI, extension IDE, app)stdio Streamable HTTPtransport accepteddoc

Ready-to-copy configs

Remote address used: https://api.autotunempc.com/mcp. Formats taken from each client’s documentation.

Claude Code
claude mcp add --transport http autotunempc https://api.autotunempc.com/mcp
Claude (claude.ai, Claude Desktop, Cowork)
Customize > Connectors > + Add > Add custom connector ; Name : autotunempc ; URL : https://api.autotunempc.com/mcp
ChatGPT (serveurs MCP personnalisés / plugins)
chatgpt.com/plugins > + > Add custom MCP server ; Name : autotunempc ; Server URL : https://api.autotunempc.com/mcp ; Create as a plugin
Cursor.cursor/mcp.json (projet) ou ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "autotunempc": {
      "url": "https://api.autotunempc.com/mcp"
    }
  }
}
VS Code (GitHub Copilot).mcp.json à la racine du workspace, ou ~/.copilot/mcp-config.json ($COPILOT_HOME/mcp-config.json)
{
  "mcpServers": {
    "autotunempc": {
      "type": "http",
      "url": "https://api.autotunempc.com/mcp",
      "tools": ["*"]
    }
  }
}
Windsurf (documentation redirigée vers Devin Local / Devin CLI).devin/mcp_config.json (projet), .devin/mcp_config.local.json (local), ~/.config/devin/mcp_config.json (utilisateur)
{
  "mcpServers": {
    "autotunempc": {
      "url": "https://api.autotunempc.com/mcp"
    }
  }
}
Gemini CLI~/.gemini/settings.json (utilisateur) ou .gemini/settings.json (projet)
{
  "mcpServers": {
    "autotunempc": {
      "httpUrl": "https://api.autotunempc.com/mcp"
    }
  }
}
OpenAI Codex (CLI, extension IDE, app)~/.codex/config.toml (ou .codex/config.toml pour un projet de confiance)
[mcp_servers.autotunempc]
url = "https://api.autotunempc.com/mcp"

Cite this source

Writing an article or comparison? This entry distinguishes registry information from our measurements. Cite the permanent link and the test date; an OK result is not a security audit or an availability guarantee.

AutoTuneMPC · L’Atlas · Tested on

Markdown
[AutoTuneMPC — L’Atlas](https://latlas.dev/en/mcp/com.autotunempc/autotunempc)
Test methodology and limitations

Source : Registre officiel MCP · retrieved 3 Dec 2026. L’Atlas adds no data beyond this source and its own tests.