# Update an MCP service

Launch stage: GA

`PATCH /api/2.1/unity-catalog/{name=mcp-services/*}`

Updates an MCP service. Only the fields named in `update_mask` are
 changed; the resource name is immutable. Optionally supply an `etag` to
 make the update conditional on the MCP service not having changed since it
 was read.

 You must be the owner of the MCP service or have `MANAGE` on it, plus
 `USE_CATALOG` on the parent catalog and `USE_SCHEMA` on the parent schema.
 When changing `config.source_connection.name`, the MCP service owner must
 also have `USE_CONNECTION` on the new connection.

API scopes: unity-catalog

## Path parameters

- `name` (string, required, ID, Immutable)
  Resource name of the MCP service.
   Format: `mcp-services/{catalog}.{schema}.{mcp_service}`.
   Each `{...}` component is capped at 255 characters individually.
    The server derives the name on Create from
   `parent` and `mcp_service_id`; it is required and immutable on Update,
   Get, and Delete.

## Query parameters

- `update_mask` (string, required)
  Fields to update. Use `config` to replace the entire configuration. The
   replacement must include every required field; any optional field you omit
   is cleared. To preserve sibling fields, use one or more granular paths:
   `comment`, `config.source_connection.name`, `config.include_tool_selectors`, or
   `config.rate_limits`.
  Example: `comment,config.include_tool_selectors` : Update the comment and replace the tool selectors
- `etag` (string, optional)
  Optimistic concurrency token from the most recent read. When set, the
   update succeeds only if the resource has not changed. Leave unset for an
   unconditional update. For REST requests, URL-encode the base64 string
   returned by the API when setting the `etag` query parameter.

## Request body

The MCP service with the updated field values. `name` identifies the
 resource (`mcp-services/{catalog}.{schema}.{mcp_service}`); only fields
 listed in `update_mask` are applied.
- `comment` (string, optional)
  User-provided description.
  Constraints: `<= 65536 characters`
- `config` (object, optional)
  Connection, tool selectors, and rate limits. Required on Create. On Update,
   provide this field when `update_mask` contains `config` or one of its
   subpaths.
  - `source_connection` (object, optional)
    Unity Catalog connection referencing the MCP server. Required on Create.
    - `name` (string, required)
      Resource name of the Unity Catalog connection used to access the MCP
       server, in the form `connections/{catalog}.{schema}.{connection}`.
  - `include_tool_selectors` (array of string, optional)
    Tool names or prefix patterns to expose from the MCP server. Use exact
     tool names or prefix patterns such as `read_*`. An empty list exposes all
     tools. At most 1,024 selectors are allowed, and each selector can contain
     at most 256 characters.
  - `rate_limits` (array of object, optional)
    Rate limits for tool invocations. Supported scopes are user, group, service
     principal, the service as a whole, and each user by default. Request and
     token limits are supported. Empty when no rate limit is configured.
    - `key` (string, required)
      Scope of the rate limit. Depending on this value, the limit applies to a
       principal, the service as a whole, or each user by default.
      Possible values:
      - `RATE_LIMIT_KEY_USER`
      - `RATE_LIMIT_KEY_USER_GROUP`
      - `RATE_LIMIT_KEY_SERVICE_PRINCIPAL`
      - `RATE_LIMIT_KEY_SERVICE`
      - `RATE_LIMIT_KEY_USER_DEFAULT`
    - `renewal_period` (string, required)
      Interval after which the request and token counters reset.
      Possible values:
      - `RATE_LIMIT_RENEWAL_PERIOD_MINUTE`
      - `RATE_LIMIT_RENEWAL_PERIOD_HOUR`
    - `principal` (string, optional)
      Principal this limit applies to: user email, group name, or service
       principal application ID. Required when `key` applies to a user, group, or
       service principal; otherwise it must be unset.
    - `requests` (int64, optional)
      Maximum requests allowed in one renewal period. Leave unset for no request
       limit. Set to `0` to deny all requests.
    - `tokens` (int64, optional)
      Maximum tokens allowed in one renewal period. Leave unset for no token
       limit. Set to `0` to deny all requests.

## Returns

Returns the McpService object.

## Request

### Allow one more tool and update the comment

```json
{
  "comment": "GitHub MCP server for the engineering assistant, with issue creation",
  "config": {
    "include_tool_selectors": [
      "get_*",
      "list_*",
      "search_*",
      "create_issue"
    ]
  }
}
```

## Response

### MCP service after updating the comment and tool selectors

```json
{
  "name": "mcp-services/main.default.github",
  "effective_owner": "ava.alvarez@example.com",
  "metastore_id": "b2a1c3d4-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
  "create_time": "2026-11-13T09:15:30Z",
  "created_by": "ava.alvarez@example.com",
  "update_time": "2026-11-14T16:02:11Z",
  "updated_by": "ava.alvarez@example.com",
  "comment": "GitHub MCP server for the engineering assistant, with issue creation",
  "config": {
    "source_connection": {
      "name": "connections/main.default.github_mcp",
      "is_deleted": false
    },
    "include_tool_selectors": [
      "get_*",
      "list_*",
      "search_*",
      "create_issue"
    ],
    "rate_limits": [
      {
        "key": "RATE_LIMIT_KEY_USER_DEFAULT",
        "renewal_period": "RATE_LIMIT_RENEWAL_PERIOD_MINUTE",
        "requests": 60
      },
      {
        "key": "RATE_LIMIT_KEY_SERVICE",
        "renewal_period": "RATE_LIMIT_RENEWAL_PERIOD_HOUR",
        "requests": 10000
      }
    ]
  },
  "etag": "MTc5NDY3MjEzMTAwMA=="
}
```

