Skip to content

Latest commit

 

History

History
83 lines (57 loc) · 3.49 KB

File metadata and controls

83 lines (57 loc) · 3.49 KB

NetApp DataOps Toolkit for Kubernetes MCP Server

Description

NetApp DataOps Toolkit MCP Server is an open-source, Python-based server component that makes your Kubernetes DataOps environments accessible via the Model Context Protocol (MCP). The MCP server enables standardized, interactive, and programmatic connectivity between DataOps resources and modern ML/ data platforms supporting the MCP standard.

Note

This MCP server uses the stdio transport, as shown in the MCP Server Quickstart, making it a "local MCP server".

Available Tools

The MCP server provides the following tools for managing JupyterLab workspaces and volumes in a Kubernetes environment:

Workspace Management Tools

  • CreateJupyterLab: Create a new JupyterLab workspace.
  • CloneJupyterLab: Clone an existing JupyterLab workspace.
  • ListJupyterLabs: List all JupyterLab workspaces.
  • CreateJupyterLabSnapshot: Create a snapshot of a JupyterLab workspace.
  • ListJupyterLabSnapshots: List all snapshots of JupyterLab workspaces.

Volume Management Tools

  • CreateVolume: Create a new volume.
  • CloneVolume: Clone an existing volume.
  • ListVolumes: List all volumes.
  • CreateVolumeSnapshot: Create a snapshot of a volume.
  • ListVolumeSnapshots: List all snapshots of volumes.
  • CreateFlexCache: Create a new FlexCache volume.

Quick Start

Prerequisites

  • Python >= 3.10
  • uv or pip
  • Access to a Kubernetes environment with NetApp Trident installed and configured. Refer to the main README for full compatibility details.

To run the MCP tools from the MCP server, a valid kubeconfig file must be present on the local host. Refer to the "Getting Started: Standard Usage" section from the main README of the NetApp DataOps Toolkit for Kubernetes to learn more.

On Linux and macOS, the toolkit enforces kubeconfig file mode 0600 when loading from disk when possible. For full-disk encryption, etcd encryption at rest, and RBAC guidance for Secrets, see Security considerations in the main README.

Usage Instructions

Run with uv (recommended)

To run the MCP server using uv, run the following command. You do not need to install the NetApp DataOps Toolkit package before running this command.

uvx --from netapp-dataops-k8s netapp_dataops_k8s_mcp.py

Install with pip and run from PATH

To install the NetApp DataOps Toolkit for Kubernetes, run the following command.

python3 -m pip install netapp-dataops-k8s

After installation, the netapp_dataops_k8s_mcp.py command will be available in your PATH for direct usage.

Usage

Example JSON Config

To use the MCP server with an MCP client, you need to configure the client to use the server. For many clients (such as VS Code, Claude Desktop, and AnythingLLM), this requires editing a config file that is in JSON format. Below is an example. Refer to the documentation for your MCP client for specific formatting details.

{
  "mcpServers": {
    "netapp_dataops_k8s_mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "--from",
        "netapp-dataops-k8s",
        "netapp_dataops_k8s_mcp.py"
      ]
    }
  }
}