# Get client MCP access

`businesses.get_client_mcp`

Read whether clients can use MCP access for this business and its canonical client connection address. Share client_mcp_endpoint_url only when available; never use the provider's connection address. In the UI, open Businesses > [business] > Client portal > Client MCP access. Read before proposing a change; can_enable reflects provider availability. A missing client relationship cannot be granted through this setting.

[Businesses guide](https://docs.levr.ai/mcp/resources/businesses.md)

Availability depends on live discovery and your access to the record. Do not infer MCP calls from REST paths.

Operation: read. Required OAuth scopes: mcp.

## Provider portal input schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "business_id": {
      "description": "Copy id from businesses.list. Prefix: biz_.",
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    },
    "provider_slug": {
      "description": "Copy provider_slug from providers.list.",
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    }
  },
  "required": [
    "provider_slug",
    "business_id"
  ],
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "oneOf": [
    {
      "not": {
        "required": [
          "error"
        ]
      },
      "properties": {
        "ok": {
          "const": true
        }
      },
      "required": [
        "data"
      ]
    },
    {
      "not": {
        "required": [
          "data"
        ]
      },
      "properties": {
        "ok": {
          "const": false
        }
      },
      "required": [
        "error"
      ]
    }
  ],
  "properties": {
    "data": {
      "additionalProperties": false,
      "properties": {
        "can_enable": {
          "type": "boolean"
        },
        "can_manage": {
          "type": "boolean"
        },
        "client_mcp_endpoint_url": {
          "description": "Exact connection address to share with this business's clients when MCP is available. Uses the client portal domain, independently of source defaults for future businesses. Never substitute a provider MCP address.",
          "format": "uri",
          "type": [
            "string",
            "null"
          ]
        },
        "has_client_relationship": {
          "type": "boolean"
        },
        "is_client_mcp_enabled": {
          "type": "boolean"
        },
        "is_client_mcp_module_enabled": {
          "type": "boolean"
        },
        "is_mcp_available": {
          "type": "boolean"
        },
        "review_token": {
          "type": "string"
        },
        "unavailable_reason": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "has_client_relationship",
        "is_client_mcp_enabled",
        "is_client_mcp_module_enabled",
        "can_manage",
        "can_enable",
        "is_mcp_available",
        "client_mcp_endpoint_url",
        "unavailable_reason",
        "review_token"
      ],
      "type": "object"
    },
    "error": {
      "additionalProperties": false,
      "properties": {
        "code": {
          "type": "string"
        },
        "details": {
          "additionalProperties": true,
          "description": "Optional bounded, agent-safe correction or recovery facts.",
          "type": "object"
        },
        "message": {
          "type": "string"
        },
        "retryable": {
          "type": "boolean"
        }
      },
      "required": [
        "code",
        "message",
        "retryable"
      ],
      "type": "object"
    },
    "meta": {
      "additionalProperties": false,
      "properties": {
        "request_id": {
          "type": "string"
        }
      },
      "required": [
        "request_id"
      ],
      "type": "object"
    },
    "ok": {
      "description": "Whether the tool completed successfully.",
      "type": "boolean"
    }
  },
  "required": [
    "ok",
    "meta"
  ],
  "type": "object"
}
```
