# Create an MCP service

Launch stage: GA

`POST /api/2.1/unity-catalog/mcp-services`

Creates an MCP service in a Unity Catalog schema. An MCP (Model Context
 Protocol) service is a governed securable that registers an MCP server and
 exposes its tools for discovery, access control, and invocation. Specify
 its name in `mcp_service_id`.

 You must be the owner of the parent schema or have the `CREATE_SERVICE`
 and `USE_SCHEMA` privileges on the parent schema and `USE_CATALOG` on the
 parent catalog. You also need `USE_CONNECTION` on the connection the MCP
 service references.

API scopes: unity-catalog

## Query parameters

- `parent` (string, required)
  Name of the parent schema.
   Format: `schemas/{catalog}.{schema}`.
   Each `{...}` component is capped at 255 characters individually.
- `mcp_service_id` (string, required)
  Name of the MCP service within the parent schema. The name must not
   contain periods, spaces, forward slashes, percent signs, or control characters,
   and it is stored in lowercase.
  Example: `github` : Name of the MCP service within the parent schema

## Request body

The MCP service to create. Do not set `name`; the server derives it from
 `parent` and `mcp_service_id`. `source_connection` is required.
- `name` (string, optional, 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.
- `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

### Register an MCP server through a Unity Catalog connection

```json
{
  "comment": "GitHub MCP server for the engineering assistant",
  "config": {
    "source_connection": {
      "name": "connections/main.default.github_mcp"
    }
  }
}
```

### Expose only read-only tools and add rate limits

```json
{
  "comment": "GitHub MCP server for the engineering assistant",
  "config": {
    "source_connection": {
      "name": "connections/main.default.github_mcp"
    },
    "include_tool_selectors": [
      "get_*",
      "list_*",
      "search_*"
    ],
    "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
      }
    ]
  }
}
```

## Response

### MCP service created with tool selectors and rate limits

```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-13T09:15:30Z",
  "updated_by": "ava.alvarez@example.com",
  "comment": "GitHub MCP server for the engineering assistant",
  "config": {
    "source_connection": {
      "name": "connections/main.default.github_mcp",
      "is_deleted": false
    },
    "include_tool_selectors": [
      "get_*",
      "list_*",
      "search_*"
    ],
    "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": "MTc5NDU2MTMzMDAwMA=="
}
```

