# CutOptim Engine MCP server

> Enables AI assistants to perform 2D panel, 1D bar, timber, and true-shape nesting cutting optimization via the CutOptim API.

- Repository: https://github.com/cutoptim/engine-mcp
- Page: https://hostedmcp.org/servers/cutoptim/engine-mcp
- Transport: stdio, remote
- Stars: 0
- License: MIT
- Latest version: 0.1.2

## Install

### Claude Code

```sh
claude mcp add --env CUTOPTIM_API_KEY=<YOUR_CUTOPTIM_API_KEY> engine-mcp -- npx -y @cutoptim/mcp
```

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

```json
{
  "mcpServers": {
    "engine-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@cutoptim/mcp"
      ],
      "env": {
        "CUTOPTIM_API_KEY": "<YOUR_CUTOPTIM_API_KEY>"
      }
    }
  }
}
```

### VS Code (`.vscode/mcp.json`)

```json
{
  "servers": {
    "engine-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@cutoptim/mcp"
      ],
      "env": {
        "CUTOPTIM_API_KEY": "<YOUR_CUTOPTIM_API_KEY>"
      }
    }
  }
}
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "engine-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@cutoptim/mcp"
      ],
      "env": {
        "CUTOPTIM_API_KEY": "<YOUR_CUTOPTIM_API_KEY>"
      }
    }
  }
}
```

### Codex (`~/.codex/config.toml`)

```toml
[mcp_servers.engine-mcp]
command = "npx"
args = ["-y", "@cutoptim/mcp"]

[mcp_servers.engine-mcp.env]
CUTOPTIM_API_KEY = "<YOUR_CUTOPTIM_API_KEY>"
```

### Gemini CLI (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "engine-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@cutoptim/mcp"
      ],
      "env": {
        "CUTOPTIM_API_KEY": "<YOUR_CUTOPTIM_API_KEY>"
      }
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `CUTOPTIM_API_KEY` | no | yes | Your CutOptim API key (co_live_…, co_test_…, or the public demo key). Not needed for validate_*. |

## Tools (6)

- `optimize_2d`
- `optimize_1d`
- `optimize_wood`
- `optimize_nest`
- `get_job`
- `get_usage`

## FAQ

### How can I connect to the CutOptim MCP server?

You can connect via a hosted version by pointing your client to the API URL with a Bearer token, or run it locally using npx with your API key.

### Are there any free tools available?

Yes, validation tools, reading async jobs, and checking usage are free.

### How does billing work for tool calls?

Each optimization tool call counts as one Engine API call, following the same quota and billing rules as the REST API.
