---
title: Unity Catalog functions MCP server
description: Use the Unity Catalog functions MCP server on Databricks to run custom Python and SQL functions registered in Unity Catalog as predefined tools for AI agents.
canonical_url: https://docs.databricks.com/aws/en/agents/mcp-tools/uc-functions
---

# Unity Catalog functions MCP server

> [!NOTE]
> **Preview**
>
> This feature is in [Public Preview](https://docs.databricks.com/aws/en/release-notes/release-types.md).

The Unity Catalog functions MCP server is a Databricks [workspace MCP endpoint](https://docs.databricks.com/aws/en/agents/mcp-tools/built-in-mcp-services.md#legacy-workspace-endpoints) that exposes the custom Python and SQL functions you register in Unity Catalog as predefined tools for agents to call, with access governed by Unity Catalog permissions. To create a function, see [Create agent tools using Unity Catalog functions](https://docs.databricks.com/aws/en/agents/custom-agents/create-custom-tool.md#create-tool).

> [!TIP]
> **Recommended approach**
>
> For new Python agents, use [`UCFunctionToolkit`](https://docs.databricks.com/aws/en/agents/custom-agents/create-custom-tool.md#using-ucfunctiontoolkit) to call registered functions directly.

The server also exposes the ready-to-use functions in the `system.ai` schema, such as the [code interpreter](https://docs.databricks.com/aws/en/agents/custom-agents/code-interpreter-tools.md) (`system.ai.python_exec`), which lets an agent run Python code with no setup.

## <a id="legacy-endpoint" />Workspace endpoint

Use this URL for existing integrations with the workspace MCP endpoint.

| URL pattern                                                                             | OAuth scope     |
| --------------------------------------------------------------------------------------- | --------------- |
| `https://<workspace-hostname>/api/2.0/mcp/functions/{catalog}/{schema}/{function_name}` | `unity-catalog` |
