Mcp 伺服器 Unitycatalog:一個 Unity Catalog Mcp 伺服器
Unity Catalog AI 模型上下文协议服务器
概覽
什麼是 MCP Server Unity Catalog?
MCP Server Unity Catalog 是一個強大的伺服器解決方案,旨在管理和提供 AI 模型上下文協議。它提供了一個集中平台,用於組織、存儲和檢索與 AI 模型相關的數據,確保開發人員和數據科學家能夠高效地訪問他們需要的信息,以構建和部署 AI 應用程序。
MCP Server Unity Catalog 的特點
- 集中數據管理:Unity Catalog 允許用戶在一個地方管理所有 AI 模型數據,簡化數據檢索和組織。
- 增強協作:多個用戶可以訪問並貢獻於目錄,促進在 AI 項目上工作的團隊之間的協作。
- 版本控制:伺服器支持 AI 模型的版本控制,使得用戶能夠跟踪變更並在必要時恢復到先前版本。
- 用戶友好的界面:直觀的界面使用戶能夠輕鬆導航目錄,快速找到所需的信息。
- 安全性和合規性:MCP Server 確保所有數據安全存儲並遵守相關數據保護法規。
如何使用 MCP Server Unity Catalog
- 安裝:首先從官方庫下載 MCP Server Unity Catalog。按照文檔中提供的安裝說明進行操作。
- 配置:安裝後,根據項目需求配置伺服器設置,包括設置用戶權限和數據存儲選項。
- 數據上傳:將您的 AI 模型數據上傳到目錄中。您可以將數據組織成類別,以便更輕鬆地訪問。
- 訪問數據:使用搜索功能快速找到特定的模型或數據集。目錄允許按各種標準過濾,以簡化搜索過程。
- 協作:邀請團隊成員訪問目錄並在項目上協作。利用版本控制功能有效管理變更。
常見問題
MCP Server Unity Catalog 可以存儲哪些類型的數據?
該目錄可以存儲與 AI 模型相關的各種類型數據,包括模型參數、訓練數據集、評估指標和文檔。
MCP Server Unity Catalog 是開源的嗎?
是的,MCP Server Unity Catalog 是一個開源項目,允許用戶為其開發做出貢獻並根據需要進行自定義。
我如何為 MCP Server Unity Catalog 做出貢獻?
您可以通過分叉庫、進行更改並提交拉取請求來做出貢獻。確保遵循庫中列出的貢獻指南。
我可以將 MCP Server Unity Catalog 與其他工具集成嗎?
是的,該目錄旨在靈活,可以與各種數據科學和機器學習工具集成,以增強您的工作流程。
MCP Server Unity Catalog 的用戶可以獲得什麼支持?
用戶可以通過論壇和 GitHub 討論訪問社區支持。此外,提供文檔以協助設置和故障排除。
通過利用 MCP Server Unity Catalog,團隊可以簡化其 AI 開發流程,增強協作,並確保高效的數據管理。
詳細
mcp-server-unitycatalog: An Unity Catalog MCP server
<p align="center" float="left"> <img width="256" src="https://raw.githubusercontent.com/ognis1205/mcp-server-unitycatalog/main/docs/vscode1.webp" /> <img width="256" src="https://raw.githubusercontent.com/ognis1205/mcp-server-unitycatalog/main/docs/vscode2.webp" /> <img width="256" src="https://raw.githubusercontent.com/ognis1205/mcp-server-unitycatalog/main/docs/vscode3.webp" /> </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:
-
uc_list_functions
- Lists functions within the specified parent catalog and schema.
- Returns: A list of functions retrieved from Unity Catalog.
-
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.
-
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.
-
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
):
{
"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
- Implement support for
list_functions
. - Implement support for
get_function
. - Implement support for
create_python_function
. - Implement support for
execute_function
. - Implement support for
delete_function
. - Implement semantic catalog explorer tools.
- Add Docker image.
- Implement
use_xxx
methods. In the current implementation,catalog
andschema
need to be defined when starting the server. However, they will be implemented asuse_catalog
anduse_schema
functions, dynamically updating the list of available functions when theuse_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.
伺服器配置
{
"mcpServers": {
"mcp-server-unitycatalog": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/metorial/mcp-container--ognis1205--mcp-server-unitycatalog--mcp-server-unitycatalog",
"mcp-server-unitycatalog --uc_server uc-server --uc_catalog uc-catalog --uc_schema uc-schema"
],
"env": {}
}
}
}