Installation¶
The ONTAP MCP Server is distributed as a Docker container image, or you can build it from source.
Container Images¶
ONTAP MCP Server is available as pre-built container images:
| Image | Description |
|---|---|
ghcr.io/netapp/ontap-mcp:latest |
Stable release version |
ghcr.io/netapp/ontap-mcp:nightly |
Latest development builds |
MCP Client Integration¶
To integrate the ONTAP MCP server with your MCP client (e.g., GitHub Copilot, Claude Desktop), configure your mcp.json file to connect to the MCP server.
Start the ONTAP MCP server:
docker run -d \
--name ontap-mcp-server \
-p 8083:8083 \
-v /path/to/your/ontap.yaml:/opt/mcp/ontap.yaml \
ghcr.io/netapp/ontap-mcp:latest \
start --port 8083 --host 0.0.0.0
If you only want to bind to localhost, omit the --host option.
See Configuration File below for details on preparing ontap.yaml.
Then configure your mcp.json:
{
"servers": {
"ontap-mcp": {
"type": "http",
"url": "http://your-server-ip:8083"
}
}
}
Building from Source¶
Prerequisites¶
- Go(check
.go.envin the repository root for the exact required version) - Git
- Just
- Docker (optional, for building Docker images)
Clone the Repository¶
First, clone the ontap-mcp repository:
git clone https://github.com/NetApp/ontap-mcp.git
cd ontap-mcp
Build Docker Image¶
Build your own Docker image from source:
# Build the Docker image using make (creates ontap-mcp:latest by default)
just docker-build
# Or specify a custom tag
just docker-build DOCKER_TAG=ontap-mcp:local
Alternatively, build directly with Docker:
# From the ontap-mcp repository root
docker build -f Dockerfile -t ontap-mcp:local .
Running the Built Docker Image¶
After building, use your local image in your MCP client configuration. See MCP Client Integration above for configuration examples - just replace ghcr.io/netapp/ontap-mcp:latest with your local image tag (e.g., ontap-mcp:local).
Configuration File¶
The server requires a YAML config file that defines which ONTAP clusters to connect to.
By default, it looks for ontap.yaml in its working directory (/opt/mcp inside the container).
Create your config file based on the ontap-example.yaml template:
Pollers:
cluster1:
addr: 10.0.0.1
username: admin
password: password
use_insecure_tls: true
Mount it into the container using -v:
docker run -d \
--name ontap-mcp-server \
-p 8083:8083 \
-v /path/to/your/ontap.yaml:/opt/mcp/ontap.yaml \
ghcr.io/netapp/ontap-mcp:latest \
start --port 8083 --host 0.0.0.0
Logs¶
To view the MCP server logs:
docker logs <container-id>
Configuration¶
For complete configuration options and environment variables, run:
docker run --rm ghcr.io/netapp/ontap-mcp:latest start --help
This displays all available environment variables with descriptions, authentication options, and advanced settings.
Next Steps¶
- Explore Prepare ONTAP
- Explore Usage Examples