---
title: "Update Mcp Server"
method: PATCH
path: "/v1/workspaces/{workspace}/mcp-servers/{server_id}"
tags: ["v1", "protected", "mcp-servers"]
---

# Update Mcp Server

`PATCH /v1/workspaces/{workspace}/mcp-servers/{server_id}`

## Path parameters

- `server_id` string, required
- `workspace` string, required — Slug of the workspace the request acts in

## Request body

- MCPServerUpdate — Patch payload for an MCP server spec. All fields optional — unset = unchanged.
  - `cmd` string[], nullable
  - `description` string
  - `docker_image_url` string, nullable
  - `env_schema` object[]
  - `is_public` boolean
  - `json_spec` object, nullable
  - `name` string
  - `registry_url` string, nullable
  - `remote_url` string, nullable
  - `status` string — Lifecycle status of the spec (e.g. 'active', 'deprecated').
  - `tags` string[]
  - `version` string

## Response `200`

Successful Response

- MCPServerResponse
  - `cmd` string[], nullable, required
  - `created_at` string, required
  - `description` string, required
  - `docker_image_url` string, nullable
  - `env_schema` object[], required
  - `id` string, uuid, required
  - `is_public` boolean, required
  - `json_spec` object, nullable
  - `name` string, required
  - `registry_url` string, nullable
  - `remote_url` string, nullable
  - `slug` string, required
  - `status` string, required
  - `tags` string[], required
  - `updated_at` string, required
  - `version` string, required

## Other responses

- `422` — Validation Error

## Changes

- **2026-09-26** `d3ad8e1a3681` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/agentarea/apis/agentarea-api/changes/v1/workspaces/:workspace/mcp-servers/:server_id/patch.md)

---

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