> ## Documentation Index
> Fetch the complete documentation index at: https://docs.simplismart.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# MCP Server

> Connect Claude, Cursor and other AI assistants to Simplismart with the Model Context Protocol

The Simplismart MCP server lets AI assistants that support the [Model Context Protocol](https://modelcontextprotocol.io) work with your Simplismart account. Ask in plain language to list deployments, check deployment health, review alert rules or check usage and costs, and the assistant calls the matching Simplismart tool.

The server runs locally over stdio and is published on PyPI as `simplismart-mcp`.

## Prerequisites

* [`uv`](https://docs.astral.sh/uv/getting-started/installation/), which provides `uvx` to run the server without a manual install
* Your Simplismart **Playground token**: open [Settings → API Key](https://app.simplismart.ai/settings?tab=2) and copy the **Playground Token**

> [!NOTE]
>
> Prefer pip? With Python 3.10 or later, run `pip install simplismart-mcp` and use `simplismart-mcp` as the command (with no `args`) in the configs below.

## Environment variables

| Variable | Required | Default | Description |
| - | - | - | - |
| `SIMPLISMART_PG_TOKEN` | Yes | | Playground token |
| `SIMPLISMART_BASE_URL` | No | `https://api.app.simplismart.ai` | API base URL |
| `SIMPLISMART_TIMEOUT` | No | SDK default | Request timeout in seconds |
| `SIMPLISMART_ACCESS` | No | `read-only` | What your assistant may do. `read-only`: only look things up. `write`: also create, update, start and change autoscaling. `destructive`: also stop, restart and delete. Each change still needs your approval. |

## Set up your client

### Quick install

One command adds the server to Claude Code, Claude Desktop and Cursor, whichever are installed. It asks for your Playground token, then which clients to configure. Afterwards, restart Claude Desktop or Cursor, or start a new Claude Code session.

Both `install` and `update-token` always ask for the token with hidden input. Pass `--token` to skip the prompt; it is required when not running in a terminal. They never read `SIMPLISMART_PG_TOKEN` from your shell, so an old exported token can't end up in your config.

> [tab] Choose clients
>
> ```bash theme={null}
> uvx simplismart-mcp install
> ```
>
> It lists the clients it found. Press Enter to install for all of them, or type their numbers:
>
> ```text theme={null}
>   1) Claude Code
>   2) Claude Desktop
>   3) Cursor
> Install for which clients? [all] or numbers like 1,3: 1,2
> ```

> [tab] All clients
>
> ```bash theme={null}
> uvx simplismart-mcp install --all
> ```
>
> Installs for every detected client without asking which ones. It still asks for your token.

> [tab] Specific clients
>
> Name the clients with `--client` (repeat it for more than one). Valid values are `claude-code`, `claude-desktop` and `cursor`:
>
> ```bash theme={null}
> uvx simplismart-mcp install --client claude-code
> uvx simplismart-mcp install --client claude-desktop --client cursor
> ```

> [tab] Pass the token
>
> Skip the token prompt with `--token`, e.g. in scripts:
>
> ```bash theme={null}
> uvx simplismart-mcp install --all --token <TOKEN>
> ```

| Option | What it does |
| - | - |
| `--token` | Use this token instead of prompting |
| `--base-url` | Use a non-default API URL |
| `--access` | `read-only`, `write` or `destructive`, instead of answering the access question |
| `--dry-run` | Print the config with the token masked, without writing anything |

`install` also asks what your assistant may do. Press Enter to keep the default, **read-only**:

```text theme={null}
What may your assistant do with Simplismart?
  1) read-only: only looks things up; nothing can be changed (default)
  2) write: can also create, update, start and change autoscaling; each change asks you first
  3) destructive: can also stop, restart and delete; each one asks you to type the name first
Access [1]:
```

Tools above the level you pick aren't available to your assistant at all. For Claude Code, `install` also adds permission rules so Claude Code can't read or edit the MCP config files, which hold your token and access level. In a script, pass `--access write` or `--access destructive` instead. If you set the server up by hand, set `SIMPLISMART_ACCESS` in its `env`.

Running `install` again replaces the existing `simplismart` entry and sets the access level again (read-only unless you pick another). It keeps the API URL unless you pass `--base-url`, and leaves your other MCP servers untouched.

### Manual setup

To set a client up by hand instead:

> [tab] Claude Code
>
> Add the server from your terminal:
>
> ```bash theme={null}
> claude mcp add simplismart --scope user \
>   -e SIMPLISMART_PG_TOKEN=YOUR_PG_TOKEN \
>   -e SIMPLISMART_BASE_URL=https://api.app.simplismart.ai \
>   -- uvx simplismart-mcp
> ```
>
> Choose the scope that fits:
>
> * `--scope local` (default): only the current project, private to you
> * `--scope user`: all your projects
> * `--scope project`: saved to `.mcp.json` in the project root so your team shares it
>
> For a shared `.mcp.json`, reference the token from each person's environment instead of committing it:
>
> ```json .mcp.json theme={null}
> {
>   "mcpServers": {
>     "simplismart": {
>       "command": "uvx",
>       "args": ["simplismart-mcp"],
>       "env": {
>         "SIMPLISMART_PG_TOKEN": "${SIMPLISMART_PG_TOKEN}"
>       }
>     }
>   }
> }
> ```
>
> Run `claude mcp list` in your terminal, or `/mcp` inside Claude Code, and confirm `simplismart` shows as connected.

> [tab] Claude Desktop
>
> **1. Open the config file**
>
> In Claude Desktop, go to **Settings → Developer → Edit Config**, or open the file directly:
>
> * macOS: `~/Library/Application Support/Claude/claude_desktop_config.json`
> * Windows: `%APPDATA%\Claude\claude_desktop_config.json`
>
> **2. Add the server**
>
> ```json claude_desktop_config.json theme={null}
> {
>   "mcpServers": {
>     "simplismart": {
>       "command": "uvx",
>       "args": ["simplismart-mcp"],
>       "env": {
>         "SIMPLISMART_PG_TOKEN": "YOUR_PG_TOKEN",
>         "SIMPLISMART_BASE_URL": "https://api.app.simplismart.ai"
>       }
>     }
>   }
> }
> ```
>
> **3. Restart Claude Desktop**
>
> Quit the app completely and reopen it. The Simplismart tools appear in the chat's tools menu.

> [tab] Cursor
>
> Add the same block to `~/.cursor/mcp.json` to use it in every project, or to `.cursor/mcp.json` for a single project:
>
> ```json mcp.json theme={null}
> {
>   "mcpServers": {
>     "simplismart": {
>       "command": "uvx",
>       "args": ["simplismart-mcp"],
>       "env": {
>         "SIMPLISMART_PG_TOKEN": "${env:SIMPLISMART_PG_TOKEN}"
>       }
>     }
>   }
> }
> ```
>
> `${env:SIMPLISMART_PG_TOKEN}` reads the token from your environment. You can also paste the token directly. Make sure the server is toggled on in Cursor's MCP settings.

> [tab] Other clients
>
> Any MCP client that supports stdio servers (Windsurf, VS Code, Zed, or your own agent) needs the same three values:
>
> | Field | Value |
> | - | - |
> | `command` | `uvx` |
> | `args` | `simplismart-mcp` |
> | `env` | `SIMPLISMART_PG_TOKEN`, optionally `SIMPLISMART_BASE_URL` |
>
> Most clients accept the `mcpServers` JSON shown in the other tabs. VS Code's `.vscode/mcp.json` uses a top-level `servers` key instead of `mcpServers`.

## Try it

Start a new chat and ask:

* "List my Simplismart deployments."
* "Is deployment `<deployment-id>` healthy?"
* "Show my private deployment costs for the last 7 days."

## Available tools

Each tool is marked **read-only**, **write** or **destructive**, so clients that support MCP tool annotations can ask before running anything that changes or removes resources. Your assistant sees every tool's parameters automatically; you only need to describe what you want.

Write tools need `write` access and destructive tools need `destructive` access (see [Quick install](#quick-install)). Every change also needs your approval, given outside the chat so your assistant can't give it for you:

* **Claude Code and Cursor** show a confirmation dialog from the Simplismart server with exactly what will change. To stop, restart or delete a deployment, or delete a model repo, you type its name. Scaling a deployment to 0 replicas asks "Are you sure?", since it stops serving requests. Other changes need **Approve** ticked. If you decline, nothing is sent.
* **Clients without confirmation dialogs** use two steps: the first call sends nothing and your assistant shows you what will change and asks. The change is sent only after you say yes, using a one-time code that expires after 10 minutes and only matches those exact details.

Your assistant also won't make a change you didn't ask for. If you ask it to reduce your bill, for example, it suggests options and asks which to apply.

> [!WARNING]
>
> Don't set up client hooks or auto-approve rules that answer these confirmation dialogs for you. They are there so a person approves every change, and the server refuses approvals that come back faster than a person could give them.

Asking your assistant can't turn these protections off. The access level is read from the server's config when it starts, every confirmation comes from the server itself, and approvals that arrive faster than a person could give them are refused. Your assistant is also told not to edit the server's config, add hooks for the dialogs, or reach Simplismart another way (such as curl or the SDK). Some clients may still try if you insist, so keep your client's own permission prompts on for file edits and shell commands. To change the access level, rerun `simplismart-mcp install` yourself.

Requests from the MCP server identify themselves as `simplismart-mcp` (in the `User-Agent` and `X-Simplismart-Client-Source: mcp` headers), so they can be told apart from direct SDK use.

`deployments_detailed_status` is marked **write** because it refreshes the stored status, but it doesn't need confirmation.

> [accordion] Deployments
>
> | Tool | What it does | Access |
> | - | - | - |
> | `deployments_list` | List deployments, optionally filtered by status or model repo | Read-only |
> | `deployments_list_paginated` | List deployments page by page with filters (name, status, cluster, model repo) | Read-only |
> | `deployments_list_by_cluster` | List deployments on one cluster, 20 at a time (`offset`/`count`, with `total`) | Read-only |
> | `deployments_get` | Get one deployment's full configuration (also `deployments_get_model_deployment`) | Read-only |
> | `deployments_get_config` | Get the deployment configuration options for a model | Read-only |
> | `deployments_health` | Check whether a deployment is healthy | Read-only |
> | `deployments_lite_status` | Get a deployment's current status | Read-only |
> | `deployments_cloud_status` | Get status for a Simplismart Cloud deployment | Read-only |
> | `deployments_detailed_status` | Get detailed health, including pods | Write |
> | `deployments_create_private` | Create a deployment on Simplismart infrastructure (also `deployments_create`) | Write |
> | `deployments_create_byoc` | Create a deployment on your own cluster | Write |
> | `deployments_update` | Update a deployment | Write |
> | `deployments_update_autoscaling` | Set replicas and autoscaling: scale to zero, cron schedules, cooldowns, metric targets | Write |
> | `deployments_start` | Start a deployment | Write |
> | `deployments_restart` | Restart a deployment | Destructive |
> | `deployments_stop` | Stop a deployment | Destructive |
> | `deployments_delete` | Delete a deployment (also `deployments_delete_model_deployment`) | Destructive |

> [accordion] Model repos
>
> | Tool | What it does | Access |
> | - | - | - |
> | `model_repos_list` | List model repos | Read-only |
> | `model_repos_get` | Get one model repo | Read-only |
> | `model_repos_profiles` | Look up model profiles for a source such as Hugging Face | Read-only |
> | `model_repos_create_container` | Create a model repo from your own container | Write |
> | `model_repos_create_private_compile` | Start a compile job on Simplismart infrastructure | Write |
> | `model_repos_delete` | Delete a model repo | Destructive |

> [accordion] Usage
>
> | Tool | What it does | Access |
> | - | - | - |
> | `usage_stats` | Usage and cost for a plan type over a period, highest cost first (top 100 by default). Asks for the period and plan type if you don't give them | Read-only |
> | `api_tokens_list` | List your organization's API tokens (no usage or cost data) | Read-only |

> [accordion] Alerting
>
> | Tool | What it does | Access |
> | - | - | - |
> | `alerting_list_channels` | List alert notification channels | Read-only |
> | `alerting_get_channel` | Get one notification channel | Read-only |
> | `alerting_list_rules` | List alert rules | Read-only |
> | `alerting_get_rule` | Get one alert rule | Read-only |
> | `alerting_list_rules_by_deployment` | List alert rules for one deployment | Read-only |
> | `alerting_list_presets` | List available alert presets | Read-only |
> | `alerting_list_deployments` | List deployments that can have alerts | Read-only |

> [accordion] Accounts and observability
>
> | Tool | What it does | Access |
> | - | - | - |
> | `accounts_list_workspaces` | List your organization's workspaces | Read-only |
> | `accounts_list_workspace_members` | List members of a workspace | Read-only |
> | `observability_federate_metrics` | Read deployment metrics in Prometheus format | Read-only |

## Usage and cost

Ask in plain words, for example "What did we spend this month?". If you leave out the period or which products, the assistant asks you first. Plan types use the names from the **Usage** page:

| Plan type | Usage page tab |
| - | - |
| `shared` | Shared Endpoint |
| `private` | Private Endpoint (includes reserved GPUs) |
| `byoc` | BYOC |
| `training` | Fine Tuning |
| `compilation` | Compilation |

With reserved GPUs, cost is split the same way as on the Usage page: **Reserved utilised** (reserved capacity you used), **Reserved surplus** (reserved capacity you paid for but didn't use) and **On demand** (usage above your reservation). Grouped by accelerator, the total is your exact bill. Grouped by deployment, each deployment is priced at the on-demand rate and reserved surplus isn't assigned to any deployment, so those numbers are estimates.

### Built-in prompts

Your client lists these as ready-made requests (in Claude Code, type `/` to see them):

| Prompt | What it shows |
| - | - |
| `monthly_totals` | Total cost per plan type for a month, plus the grand total |
| `cost_by_gpu_type` | Private and BYOC cost split by GPU type |
| `top_deployments` | The most expensive deployments for a period |

> [!NOTE]
>
> Not available yet: storage (volume) usage is coming soon. Training jobs can't be listed, created or cancelled through the MCP server; training cost is available through `usage_stats`. Invoices and payments are not available.

## Update an expired token

Playground tokens expire. When yours does, tool calls fail with an error that starts with "Your Simplismart Playground token is missing, invalid or expired".

**1. Create a new token**

Create a new **Playground Token** on the same Settings page as in [Prerequisites](#prerequisites).

**2. Update your clients**

```bash theme={null}
uvx simplismart-mcp update-token                    # asks for the new token (hidden input)
uvx simplismart-mcp update-token --token <TOKEN>    # or pass it directly, e.g. in scripts
```

It replaces the token in every client that already has the server and keeps the rest of its config. Add `--client cursor` (repeatable) to update only some clients.

**3. Restart the client**

Restart your clients as described in [Quick install](#quick-install).

If you set the client up by hand, replace `SIMPLISMART_PG_TOKEN` in its config instead. For Claude Code, run the `claude mcp add` command again with the new token, after `claude mcp remove simplismart --scope user`.

## Troubleshooting

> [accordion] uvx: command not found, or the server fails to start
>
> Install [`uv`](https://docs.astral.sh/uv/getting-started/installation/). Desktop apps may not see your shell `PATH`, so set `command` to the full path printed by `which uvx`.

> [accordion] Authentication errors
>
> If the token expired or was deleted, follow [Update an expired token](#update-an-expired-token). If you set the client up by hand, make sure `SIMPLISMART_PG_TOKEN` is in the client's `env` block, not only in your shell.

> [accordion] "MCP access is turned off for this organisation"
>
> A Simplismart admin has switched off MCP access, for every organisation or just yours. Nothing in the client can override it: not the config, a different token or asking your assistant. The Simplismart UI and direct SDK use keep working. Ask your Simplismart admin to turn it back on.

> [accordion] Tools don't show up
>
> Restart the client after editing its config. In Claude Code, run `/mcp` to see the server status.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.