Back to Browse

Autotunempc Examples MCP Server

Developer ToolsLow Risk10.0MCP RegistryRemote
Free

Server data from the Official MCP Registry

Constrained nonlinear MPC and Optuna tuning over HTTPS JSON.

About

Constrained nonlinear MPC and Optuna tuning over HTTPS JSON.

Remote endpoints: streamable-http: https://api.autotunempc.com/mcp

Security Report

10.0
Low Risk10.0Low Risk

Valid MCP server (1 strong, 0 medium validity signals). No known CVEs in dependencies. Imported from the Official MCP Registry.

10 tools verified · Open access · No issues found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

Permissions Found in Source Code

Found by scanning the linked source code. This listing connects to a hosted endpoint, so none of this runs on your machine: it describes what the server software does where it is hosted.

env_vars

Applies to the server that hosts this plugin, not to your machine.

HTTP Network Access

Connects to external APIs or services over the internet.

How to Connect

Remote Plugin

No local installation needed. Your AI client connects to the remote endpoint directly.

Add this to your MCP configuration to connect:

{
  "mcpServers": {
    "com-autotunempc-autotunempc": {
      "url": "https://api.autotunempc.com/mcp"
    }
  }
}

Documentation

View on GitHub

From the project's GitHub README.

AutoTuneMPC Examples

Runnable ROS 2 sample package and zero-dependency Python API examples for AutoTuneMPC—a nonlinear corridor MPC workbench, Optuna weight tuner, CSV system identification engine, and ROS 2 Humble/Jazzy code generator.

1. ROS 2 Sample Package (ros2/autotunempc_sample, Apache-2.0)

Buildable ROS 2 Humble/Jazzy unicycle NMPC package with a vendored kinodynamic planner, compiled C oracle (gcc -O3), Nav2 bridge launch, /odom watchdog, actuator delay FIFO, and 15 offline smoke tests.

mkdir -p ~/ros2_ws/src
git clone https://github.com/kaiden8/autotunempc-examples.git ~/ros2_ws/src/autotunempc-examples
cd ~/ros2_ws
colcon build --packages-select autotunempc_sample
source install/setup.bash
python3 -m pytest -q src/autotunempc-examples/ros2/autotunempc_sample/test/test_smoke.py

See ros2/autotunempc_sample/README.md for Nav2 bridge usage, sqp_rti C-codegen flags, and hooks.py customization.

2. Python API Quickstart (Stdlib Only)

ScriptRouteAuthWhat it does
validate.pyPOST /v1/validateFreeChecks shapes, bounds, and controllability before solving
export_controller.pyPOST /v1/exportFree (casadi_python, acados_python); Key (ros2_node)Downloads a standalone kinematic ICR skid-steer controller
sysid_example.pyPOST /v1/sysidFreeFits discrete linear A, B, dt, and fit_error from (t, u, y) logs
differential_drive.pyPOST /v1/templates/autotuneAUTOTUNE_API_KEYRuns 12-trial Optuna tuning on the differential-drive benchmark
battery_peak_shaving.pyPOST /v1/templates/autotuneAUTOTUNE_API_KEYRuns 12-trial Optuna tuning on the battery peak-shaving benchmark
root_zone_irrigation.pyPOST /v1/templates/autotuneAUTOTUNE_API_KEYRuns 12-trial Optuna tuning on the 3-layer soil moisture benchmark

Why do the last three scripts require a key? All scripts in this repo are MIT-licensed, editable client examples—you are never paying for locked code. validate.py and sysid_example.py hit free endpoints, while the three benchmark scripts call POST /v1/templates/autotune to run a 12-trial Optuna optimization loop on the server. Edit them freely to change max_trials, save the returned Q/R/Rd/Qf weights, or pass those weights into export_controller.py. (Template dynamics and bounds are fixed for benchmark reproducibility; to tune custom dynamics, bounds, or obstacles, send your plant JSON to POST /v1/autotune.)

Run & Verify in Docker (Zero Local Setup)

Test the Python quickstarts, execute the exported mpc_controller.py with CasADi/NumPy, and build + smoke-test the ROS 2 Humble package using plain docker run (works on any Docker install, no Compose plugin or host port-80 apt required):

# 1) Run free Python API checks + execute exported CasADi controller
docker run --rm -v "\$(pwd):/work" -w /work python:3.12-slim bash -c '
  python3 validate.py &&
  python3 sysid_example.py &&
  python3 export_controller.py --target casadi_python --out /tmp/mpc_out &&
  pip install --root-user-action=ignore -q casadi numpy &&
  python3 /tmp/mpc_out/mpc_controller.py
'

# 2) Build and run all 15 ROS 2 Humble smoke tests
docker run --rm -v "\$(pwd)/ros2/autotunempc_sample:/src_ro:ro" -w /ws osrf/ros:humble-desktop bash -c '
  mkdir -p /ws/src && cp -r /src_ro /ws/src/autotunempc_sample &&
  python3 -m pip --version >/dev/null 2>&1 || (
    curl -fsSL [https://bootstrap.pypa.io/get-pip.py](https://bootstrap.pypa.io/get-pip.py) -o /tmp/get-pip.py &&
    python3 /tmp/get-pip.py -q --root-user-action=ignore
  ) &&
  python3 -m pip install --no-cache-dir --root-user-action=ignore -q pytest numpy scipy casadi &&
  source /opt/ros/humble/setup.bash &&
  colcon build --packages-select autotunempc_sample &&
  source install/setup.bash &&
  python3 -m pytest -q src/autotunempc_sample/test/test_smoke.py
'
# Free examples (no key required)
python3 validate.py
python3 export_controller.py --target casadi_python --out /tmp/mpc_out
python3 sysid_example.py

# Paid template autotune (1 autotune credit)
export AUTOTUNE_API_KEY='mpc_...'
python3 differential_drive.py

3. MCP & Coding Agents

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

Pricing & Access

  • Free (no key): /try browser workbench, POST /v1/validate, POST /v1/sysid, GET /v1/export/preview, and standalone casadi_python / acados_python exports.
  • Early Hardware Builder Pack ($15 one-time, no subscription): 250 solves + 10 autotunes (1 autotune credit covers /v1/autotune, /v1/templates/autotune, /v1/sysid/fit, or a ROS 2 export). Get a key at https://autotunempc.com/try.
  • x402 pay-per-call (Base USDC): POST /v1/solve ($0.02), POST /v1/autotune / /v1/sysid/fit / ROS 2 export ($1.50), POST /v1/templates/autotune ($2.00).

X-API-Key is the human door. HTTP 402 + PAYMENT-SIGNATURE is the agent door.

Reviews

No reviews yet

Be the first to review this server!