# AutoTuneMPC

> AutoTuneMPC is an MCP server for developer tools. Remote MCP server for constrained nonlinear MPC and Optuna-based parameter tuning. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Platforms:** API
- **Website:** https://autotunempc.com
- **Repository:** https://github.com/kaiden8/autotunempc-examples
- **MCP Registry name:** com.autotunempc/autotunempc
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-21

## About

AutoTuneMPC is a hosted Model Context Protocol endpoint that lets AI clients run constrained nonlinear model predictive control calculations and hyperparameter searches using Optuna. Requests are sent as HTTPS JSON to a streamable HTTP endpoint, so an assistant can hand off optimisation work instead of writing the solver itself.

The server is reached through a single remote URL rather than a local package, which keeps setup to adding the endpoint to a compatible client. It suits engineers who want an assistant to explore controller settings or tuning ranges and get numerical results back in conversation.

It is aimed at control engineers, researchers and developers who already work with MPC or Optuna studies and want those workflows accessible through an MCP-capable assistant.

## Features

- **Constrained nonlinear MPC:** Solves model predictive control problems with nonlinear dynamics and constraints.
- **Optuna-based tuning:** Runs parameter searches using the Optuna optimisation framework.
- **Streamable HTTP transport:** Connects to AI clients through a remote streamable HTTP MCP endpoint.
- **JSON request interface:** Accepts and returns structured JSON over HTTPS.

## Good for

- Tune controller parameters for a nonlinear process model
- Explore constrained MPC settings through an AI assistant
- Run hyperparameter searches as part of an engineering workflow

## Install

### Claude Code: Add with the CLI (Terminal)

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

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

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

### Claude Desktop (Customize → Connectors → Add → Add custom connector)

```text
https://api.autotunempc.com/mcp
```

Paste this URL, choose how to sign in, then click Add and Connect. On Team and Enterprise an Owner adds it in Organization settings → Connectors.

### Cursor (~/.cursor/mcp.json)

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

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

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

Or put the same entry in .mcp.json at your workspace root to share it.

### ChatGPT (chatgpt.com → Plugins → + → Add custom MCP server)

```text
https://api.autotunempc.com/mcp
```

Paste this URL, set up sign-in, accept the warning and install the plugin. Then type @ in a chat to use it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add autotunempc --url https://api.autotunempc.com/mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.autotunempc]
url = "https://api.autotunempc.com/mcp"
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "autotunempc": {
      "httpUrl": "https://api.autotunempc.com/mcp"
    }
  }
}
```

Or run: gemini mcp add -s user --transport http autotunempc https://api.autotunempc.com/mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "autotunempc": {
      "serverUrl": "https://api.autotunempc.com/mcp"
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "autotunempc": {
      "url": "https://api.autotunempc.com/mcp",
      "transport": "http"
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "autotunempc": {
      "type": "streamableHttp",
      "url": "https://api.autotunempc.com/mcp"
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "autotunempc": {
      "url": "https://api.autotunempc.com/mcp"
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

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

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

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

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

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

Use .kiro/settings/mcp.json to add it to one workspace only.

### Grok Bot (Grok Bot desktop app → Connect apps → Add a custom connector)

```sh
https://api.autotunempc.com/mcp
```

Enter a Name (for example "AutoTuneMPC"), choose Type: Remote HTTPS, paste this as the Server URL and choose Add plugin.

### Other clients (your client's MCP settings (most use this shape))

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

## Tools

The server marks 7 of 11 tools as able to change data. From the server's own tool labels and tool names; not verified by us.

- `identify_discrete_plant` (says read-only): 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 bef
- `validate_problem` (says read-only): 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 osc
- `simulate` (says read-only): 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.
- `solve_mpc` (says it can change 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 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 
- `reset_warm_start` (says it can change 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 this tool.
- `start_autotune_job` (says it can change 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 double_integrator, thermal_rc_zone, soil_moisture_cascade, cart_pendulum, unicycle_kinematics, gravity_tank, icr_skid_steer, and ackermann, or a kind expression 
- `get_autotune_job` (says read-only): 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 `
- `autotune_root_zone_irrigation` (says it can change 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 study_version published to run the older scenario.
- `autotune_battery_peak_shaving` (says it can change 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_codegen` (says it can change 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 nonlinear plant, including differential drive, is a linearized iteration (``linearized_rti``): one Jacobian of ``f`` at the current ``(x, u, d)``, then projected-gradien
- `autotune_template` (says it can change 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. 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 

## FAQ

### How do I connect to AutoTuneMPC?

It is offered as a remote streamable HTTP MCP server at https://api.autotunempc.com/mcp.

### Is there a local package to install?

No local package is listed; the server is accessed through its remote endpoint.

### How do I add AutoTuneMPC to Claude Code?

Run this command in your terminal: claude mcp add --transport http autotunempc https://api.autotunempc.com/mcp

### What are the best alternatives to AutoTuneMPC?

The closest alternatives to AutoTuneMPC are Optimatika Optimisation Service, Nerdy by Nerd/Noir, NEOMA P-CAM Physical AI & Ising MCP Server, Proxima and Ai Cost Optimizer.

## Where this comes from

- Description: written from its MCP Registry entry.
- Status and tools: checked automatically by AIPoweredBot on 26 November 2026.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Optimatika Optimisation Service](https://ai-powered.com/mcp/optimatika-optimisation-service): Optimatika Optimisation Service is a freemium MCP server for developer tools.
- [Nerdy by Nerd/Noir](https://ai-powered.com/mcp/nerdy-by-nerd-noir): Nerdy by Nerd/Noir is a free MCP server for developer tools.
- [NEOMA P-CAM Physical AI & Ising MCP Server](https://ai-powered.com/mcp/neoma-p-cam-physical-ai-and-ising-mcp-server): NEOMA P-CAM Physical AI & Ising MCP Server is a freemium MCP server for developer tools.
- [Proxima](https://ai-powered.com/mcp/proxima): Proxima is a freemium MCP server for ai models and llm tooling.
- [Ai Cost Optimizer](https://ai-powered.com/mcp/ai-cost-optimizer): Ai Cost Optimizer is an open-source MCP server for developer tools.
- [Ncp](https://ai-powered.com/mcp/ncp): Ncp is an open-source MCP server for developer tools.
- [Ultralytics Platform MCP](https://ai-powered.com/mcp/ultralytics-platform-mcp): Ultralytics Platform MCP is an open-source MCP server for developer tools.
- [Moltline Optimize](https://ai-powered.com/mcp/moltline-optimize): Moltline Optimize is a freemium MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/autotunempc
