---
title: "Update an MCP server"
method: PATCH
path: "/table-enrichments/mcp-servers/{mcp_server_id}/"
tags: ["table-enrichments"]
---

# Update an MCP server

`PATCH /table-enrichments/mcp-servers/{mcp_server_id}/`

## Request

- Base URL: `https://api.getoneprofile.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.getoneprofile.ai/table-enrichments/mcp-servers/{mcp_server_id}/`
- Auth: one of:
  - API key in header `X-API-Key`
  - HTTP bearer

Partially update an MCP server. `headers`, when present, replaces the whole header dict. Agents pick the change up on their next run.

## Path parameters

- `mcp_server_id` string, uuid, required

## Request body

- McpServerUpdateSchema: A partial MCP server update; absent fields keep their value.
  - `enabled` boolean, nullable
  - `headers` object, nullable: When present, REPLACES the whole header dict. Values are never echoed back, so an edit re-enters every kept header.
  - `name` string, nullable
  - `url` string, nullable

## Response `200`

Successful Response

- McpServerReadSchema: One org-level MCP server as the agent editor renders it.
  - `account_label` string, nullable, required: OAuth servers only: best-effort account/workspace name of the grant.
  - `auth_mode` string, required: How requests authenticate: 'headers' (static) or 'oauth'.
  - `catalog_slug` string, nullable, required: The curated-catalog entry this server came from; null for custom servers.
  - `created_at` string, date-time, required
  - `enabled` boolean, required
  - `header_names` string[], required: The names of the configured request headers. Values are credentials and are never returned by the API.
  - `id` string, uuid, required
  - `name` string, required
  - `oauth_status` string, nullable, required: OAuth servers only: 'active' or 'needs_reconnect'; null for static-header servers and never-connected rows.
  - `updated_at` string, date-time, required
  - `url` string, required

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: MCP server not found
- `422`: Server name already taken
- `500`: Internal server error.
- `502`: Bad gateway error.
- `503`: Service unavailable.

---

[API](https://skmtc.dev/getoneprofile/apis/api-reference-oneprofile.md) · [All operations](https://skmtc.dev/getoneprofile/apis/api-reference-oneprofile/llms.txt) · [OpenAPI document](https://skmtc.dev/getoneprofile/apis/api-reference-oneprofile/revisions/4a6bd71e3f02?raw)
