THE FIELD NOTES

AKS MCP Server Setup

How to set up the Azure Kubernetes Service MCP server for Claude Code.

Chris House1 min read
Wire the cluster toolsThe local AKS MCP setup steps: Azure CLI sign-in, Kubernetes extension, MCP configuration, and Claude Code verification.NOTE / AKS MCPWire the cluster toolsCHRIS HOUSEchrishouse.ioFIELDNOTES / SESSION01 ›Azure CLISign in before using cluster tools02 ›VS Code extensionInstall the AKS MCP binary03 ›.mcp.jsonConfigure stdio and access level04 ›Claude CodeRestart and verify cluster accessThe VS Code Kubernetes extension supplies the MCP binary configured for Claude Code's local tool connection.
In this note

Step-by-step setup for the AKS MCP server with Claude Code in VS Code.

Prerequisites

  • VS Code with Claude Code extension
  • Azure CLI logged in (az login)
  • Kubernetes extension for VS Code (installs the AKS MCP binary)

1. Install the Kubernetes Extension

Install the Kubernetes extension from the VS Code marketplace. This bundles the AKS MCP server binary.

The binary gets installed to:

C:\Users\<user>\.vs-kubernetes\tools\aks-mcp\v0.0.11\aks-mcp.exe

2. Create .mcp.json in Your Repo

Create a .mcp.json file in your project root:

{
  "mcpServers": {
    "aks-mcp": {
      "command": "C:\\Users\\<user>\\.vs-kubernetes\\tools\\aks-mcp\\v0.0.11\\aks-mcp.exe",
      "args": ["--transport", "stdio", "--access-level", "readwrite"],
      "env": {}
    }
  }
}

Update the path to match your username.

3. Verify Connection

Restart Claude Code. You should see the MCP server connected in the status.

Test with:

  • "list my aks clusters"
  • "show cluster status"
  • "get pods in default namespace"

What You Can Do

The AKS MCP gives Claude access to:

Category Operations
Clusters list, show, start, stop, scale, upgrade
Node pools list, add, delete, scale
kubectl get, describe, logs, exec, apply
Monitoring metrics, events, diagnostics
Networking vnet, nsg, load balancer info

Access Levels

  • readonly - Safe for production, only read operations
  • readwrite - Full access including mutations

Notes

  • MCP servers run locally - no cloud-hosted option yet
  • The binary is bundled with the K8s extension, not a separate install
  • Works with any kubeconfig context you have configured