mcp-server-unitycatalog: An Unity Catalog MCP server

by ognis1205

15 stars
253 downloads
Not rated
GitHub

About

An MCP server that allows LLM agents to seamlessly execute functions within Unity Catalog.

Details

Author
ognis1205
GitHub stars
15
Downloads
253
Categories
Database, Other, AI

- Provides Unity Catalog Functions as MCP tools.
- uc_list_functions: lists functions within a catalog/schema.
- uc_get_function: retrieves details of a specific function.
- uc_create_function: creates a new Python function (experimental).
- uc_delete_function: deletes a function from Unity Catalog.
- Runs via uv or Docker with no permanent install needed.

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name mcp-server-unitycatalog: An Unity Catalog MCP server
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Run directly with uvx (no installation) or via Docker. Configure the server using CLI arguments or environment variables: the Unity Catalog server URL (--uc_server), catalog (--uc_catalog), schema (--uc_schema) are required; an access token (--uc_token), verbosity level, and log directory are optional. Add the server to Claude Desktop or VSCode Cline by including a JSON entry in their MCP settings files.

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "mcp-server-unitycatalog: an unity catalog mcp server": {
            "mcp-server-unitycatalog": {
                "command": "docker",
                "args": [
                    "build",
                    "-t",
                    "mcp/unitycatalog",
                    "."
                ]
            }
        }
    }
}

McpServers

{
    "mcp-server-unitycatalog": {
        "command": "docker",
        "args": [
            "build",
            "-t",
            "mcp/unitycatalog",
            "."
        ]
    }
}

mcp-server-unitycatalog: An Unity Catalog MCP server

<p align="center" float="left">



</p>

Overview

A Model Context Protocol server for Unity Catalog. This server provides Unity Catalog Functions as MCP tools.

Tools

You can use all Unity Catalog Functions registered in Unity Catalog alongside the following predefined Unity Catalog AI tools:

1. uc_list_functions
- Lists functions within the specified parent catalog and schema.
- Returns: A list of functions retrieved from Unity Catalog.

2. uc_get_function
- Gets a function within a parent catalog and schema.
- Input:
- name (string): The name of the function (not fully-qualified).
- Returns: A function details retrieved from Unity Catalog.

3. uc_create_function
- Creates a function within a parent catalog and schema. WARNING: This API is experimental and will change in future versions.
- Input:
- name (string): The name of the function (not fully-qualified).
- script (string): The Python script including the function to be registered.
- Returns: A function details created within Unity Catalog.

4. uc_delete_function
- Deletes a function within a parent catalog and schema.
- Input:
- name (string): The name of the function (not fully-qualified).
- Returns: None.

Installation

Using uv

When using uv no specific installation is needed. We will use
uvx to directly run mcp-server-git.

Configuration

These values can also be set via CLI options or .env environment variables. Required arguments are the Unity Catalog server, catalog, and schema, while the access token and verbosity level are optional. Run uv run mcp-server-unitycatalog --help for more detailed configuration options.

| Argument | Environment Variable | Description | Required/Optional |
|----------------------------|----------------------|------------------------------------------------------------------------------------|-------------------|
| -u, --uc_server | UC_SERVER | The base URL of the Unity Catalog server. | Required |
| -c, --uc_catalog | UC_CATALOG | The name of the Unity Catalog catalog. | Required |
| -s, --uc_schema | UC_SCHEMA | The name of the schema within a Unity Catalog catalog. | Required |
| -t, --uc_token | UC_TOKEN | The access token used to authorize API requests to the Unity Catalog server. | Optional |
| -v, --uc_verbosity | UC_VERBOSITY | The verbosity level for logging. Default: warn. | Optional |
| -l, --uc_log_directory | UC_LOG_DIRECTORY | The directory where log files will be stored. Default: .mcp_server_unitycatalog. | Optional |

Usage with Claude Desktop or VSCode Cline

Add this to your claude_desktop_config.json (or cline_mcp_settings.json):

<details>
<summary>Using uv</summary>

{
  "mcpServers": {
    "unitycatalog": {
      "command": "uv",
      "args": [
        "--directory",
        "/<path to your local git repository>/mcp-server-unitycatalog",
        "run",
        "mcp-server-unitycatalog",
        "--uc_server",
        "<your unity catalog url>",
        "--uc_catalog",
        "<your catalog name>",
        "--uc_schema",
        "<your schema name>"
      ]
    }
  }
}
</details>

<details>
<summary>Using docker</summary>

  • Note: replace '/Users/username' with the a path that you want to be accessible by this tool
{
  "mcpServers": {
    "unitycatalog": {
      "command": "docker",
      "args": [
        "run",
        "--rm",
        "-i",
        "mcp/unitycatalog",
        "--uc_server",
        "<your unity catalog url>",
        "--uc_catalog",
        "<your catalog name>",
        "--uc_schema",
        "<your schema name>"
      ]
    }
  }
}
</details>

Building

Docker:

docker build -t mcp/unitycatalog .   

Future Plans

- [x] Implement support for list_functions.
- [x] Implement support for get_function.
- [x] Implement support for create_python_function.
- [x] Implement support for execute_function.
- [x] Implement support for delete_function.
- [ ] Implement semantic catalog explorer tools.
- [x] Add Docker image.
- [ ] Implement use_xxx methods. In the current implementation, catalog and schema need to be defined when starting the server. However, they will be implemented as use_catalog and use_schema functions, dynamically updating the list of available functions when the use_xxx is executed.

License

This MCP server is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.