OM

ognis1205/mcp-server-unitycatalog

Developer tools

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

15 stars 8 forks Качество 63 Тренд 21MIT

Unity Catalog AI Model Context Protocol Server

Обзор

A Model Context Protocol server for Unity Catalog. This server provides Unity Catalog Functions as MCP tools. You can use 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. . - 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).

README

Показан фрагмент оригинального README. Открыть оригинал.

mcp-server-unitycatalog: An Unity Catalog MCP server

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
Открыть полный README на GitHub

Установка

docker run --rm -i mcp/unitycatalog --uc_server <your unity catalog url> --uc_catalog <your catalog name> --uc_schema <your schema name>
Новичок в MCP? Начните с руководства на mcpskill.org →

Конфигурация

{ "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>" ] } } }