Skip to content

For the complete documentation index, see llms.txt. Markdown versions of all docs pages are available by appending .md to any docs URL.

kmcp build

Page as Markdown

kmcp build command

Build a Docker image for your MCP server. You can later use this image to deploy your MCP server in a Kubernetes environment.

kmcp build [flags]

Flags:

  • -h, --help - Help for the command
  • --kind-load - Load image onto a kind cluster (requires kind)
  • --kind-load-cluster - Name of the kind cluster to load the image onto (default: current cluster context)
  • --platform - Target platform (e.g., linux/amd64, linux/arm64)
  • --project-dir, -d - Build directory (default: current directory)
  • --push - Push the Docker image to a container registry
  • --tag, -t - Docker image tag

Example

The following command creates a Docker image for the my-mcp-server project on your local machine and tags the image as latest. The image is then loaded to a kind cluster named kind.

kmcp build --project-dir my-mcp-server -t my-mcp-server:latest --kind-load-cluster kind