---
title: "Toggle Server Handler"
method: POST
path: "/api/mcp/servers/{name}/toggle"
tags: ["runtime_mutations", "mcp"]
---

# Toggle Server Handler

`POST /api/mcp/servers/{name}/toggle`

Enable or disable an MCP server.

## Path parameters

- `name` string, required

## Request body

- ToggleRequest — Request to toggle server enabled state.
  - `enabled` boolean, required

## Response `200`

Successful Response

- MCPServerResponse — Response containing server information.
  - `name` string, required
  - `status` string, required
  - `error_message` string, nullable
  - `tool_count` integer
  - `enabled` boolean
  - `managed` boolean

## Other responses

- `422` — Validation Error

## Changes

- **2026-09-13** `9130e4640e24` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/quadrillion/apis/quadrillion-cloud-api/changes/api/mcp/servers/:name/toggle/post.md)

---

[API](https://skmtc.dev/quadrillion/apis/quadrillion-cloud-api.md) · [All operations](https://skmtc.dev/quadrillion/apis/quadrillion-cloud-api/llms.txt) · [OpenAPI document](https://skmtc.dev/quadrillion/apis/quadrillion-cloud-api/revisions/d3033e2daaf5?raw)
