# AutoTuneMPC MCP server

Constrained nonlinear MPC and Optuna tuning over HTTPS JSON.

## Facts

- Endpoint: https://api.autotunempc.com/mcp (MCP, Streamable HTTP)
- Sign-in: none (open)
- Security grade: not graded (servers behind sign-in can't be scanned)
- Tools: 10
- Category: Productivity · source: registry
- Repository: https://github.com/kaiden8/autotunempc-examples
- Last probed: 2026-11-22 · first listed: 2026-11-20
- Directory page: https://gateturbo.com/mcp/autotunempc · this document: https://gateturbo.com/mcp/autotunempc.md · JSON: https://gateturbo.com/api/directory/servers/autotunempc

## Tools (10)

- `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 IPO
- `validate_problem`: Check dimensions, bounds, and linear controllability before a solve. This is POST /v1/validate and stays free when payment enforcement is o
- `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 
- `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 
- `start_autotune_job`: Queue an Optuna search for Q, R, Rd, and Qf. Then poll ``get_autotune_job``. The tuner needs a model, either matrices ``A`` and ``B`` or on
- `get_autotune_job`: Read one autotune job started by ``start_autotune_job``. ``status`` is ``running``, ``complete``, or ``failed``. On ``complete``, ``result`
- `autotune_root_zone_irrigation`: Tune valve weights for the three-layer root-zone irrigation template. Same payment as autotune_template: X-API-Key spends 2 autotune credit
- `autotune_battery_peak_shaving`: Tune charge power weights for the battery peak-shaving template. Same payment as autotune_template: X-API-Key spends 2 autotune credits, an
- `autotune_embedded_controller_with_c_codegen`: 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 ``usa
- `autotune_template`: Tune differential_drive, battery_peak_shaving, or root_zone_irrigation. This is POST /v1/templates/autotune at $2.00. The name is different

## Connect

Two routes. Through gate you get one gateway URL for every server you pick, a sign-in screen that asks which agent you are, allow / ask-me-first / block per action, argument rules, a log of every call, and an off-switch. Direct puts this server's URL straight into the agent's config.

### Through gate (Claude Code shown; any MCP client works the same way)

One gateway URL carries every server you pick.

1. Connect AutoTuneMPC to your gate (https://gateturbo.com/login?next=/discovery?connect=autotunempc).
2. Add gate once to the agent; the sign-in screen asks which agent it is, and its rules follow it everywhere.
3. Every call is logged; allow, ask-me-first or block any action; pause the agent with one click.

```bash
claude mcp add --transport http gate https://gateturbo.com/api/mcp
```

Other agents through gate: Claude → https://gateturbo.com/mcp/autotunempc/claude · Claude Desktop → https://gateturbo.com/mcp/autotunempc/claude-desktop · ChatGPT → https://gateturbo.com/mcp/autotunempc/chatgpt · Codex → https://gateturbo.com/mcp/autotunempc/codex · Cursor → https://gateturbo.com/mcp/autotunempc/cursor · Windsurf → https://gateturbo.com/mcp/autotunempc/windsurf · VS Code → https://gateturbo.com/mcp/autotunempc/vscode · Gemini CLI → https://gateturbo.com/mcp/autotunempc/gemini-cli · OpenClaw → https://gateturbo.com/mcp/autotunempc/openclaw · n8n → https://gateturbo.com/mcp/autotunempc/n8n · A script or server → https://gateturbo.com/mcp/autotunempc/script

### Direct: Claude Code

Add AutoTuneMPC to Claude Code with one command.

1. Run the command in your terminal.
2. Restart Claude Code; the tools appear in every session.
3. No sign-in needed.

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

### Direct: Cursor

Add AutoTuneMPC to Cursor's MCP config.

1. Add this to ~/.cursor/mcp.json (or .cursor/mcp.json in a project).
2. Cursor picks it up without a restart.
3. No sign-in needed.

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

### Direct: VS Code

Add AutoTuneMPC to VS Code for Copilot agent mode.

1. Add this to .vscode/mcp.json in your workspace (or your user mcp.json).
2. Open the Copilot chat in agent mode; the server starts on demand.
3. No sign-in needed.

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

### Direct: Codex

Add AutoTuneMPC to Codex.

1. Add this to ~/.codex/config.toml.
2. Start a new Codex session.
3. No sign-in needed.

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

### Direct: Claude

Add AutoTuneMPC as a custom connector in Claude.

1. Open claude.ai → Settings → Connectors → Add custom connector.
2. Name it "AutoTuneMPC" and paste the URL below.
3. Save; the tools appear in new chats.

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

### Direct: ChatGPT

Add AutoTuneMPC as a connector in ChatGPT.

1. Open ChatGPT → Settings → Connectors → enable Developer mode under Advanced.
2. Create a connector named "AutoTuneMPC" with the URL below.
3. Set authentication to none.

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

## For agents reading this

- Search the directory from inside a conversation: add the directory MCP server https://gateturbo.com/api/directory/mcp (no sign-in) and call `search_servers`, `get_server`, `how_to_connect`.
- JSON: https://gateturbo.com/api/directory/search?q=<terms> · https://gateturbo.com/api/directory/servers/<slug>
- How to get access to a human's gateway on your own: https://gateturbo.com/agents.md
- Always keep a human in the loop: gate's sign-in, approvals and off-switch exist so the person stays in control.
