MCP Server Policy

KUBERNETES MCP POLICY

Enforce policies on every tool call to the Kubernetes MCP Server. 22 tools listed, categorised, and ready for rules.

1 read 21 write 22 tools total
kubernetes cloud

GET STARTED

Download this policy scaffold and add your rules. Intercept enforces them on every tool call before it reaches Kubernetes.

terminal

# Download policy scaffold

curl -o kubernetes.yaml https://raw.githubusercontent.com/policylayer/intercept/main/policies/kubernetes.yaml

# Run with Intercept

intercept --policy kubernetes.yaml -- npx -y @

Server documentation: https://www.npmjs.com/package/mcp-server-kubernetes

READ TOOLS

1

EXECUTE TOOLS

2

OTHER TOOLS

19

POLICY YAML

This scaffold lists every tool with empty rules. Add conditions — rate limits, argument validation, deny rules — then deploy with Intercept.

kubernetes.yaml
version: "1"
description: "Policy for "
default: "allow"
tools:
    cleanup:
        rules: []
    exec_in_pod:
        rules: []
    explain_resource:
        rules: []
    install_helm_chart:
        rules: []
    kubectl_apply:
        rules: []
    kubectl_context:
        rules: []
    kubectl_create:
        rules: []
    kubectl_delete:
        rules: []
    kubectl_describe:
        rules: []
    kubectl_generic:
        rules: []
    kubectl_get:
        rules: []
    kubectl_logs:
        rules: []
    kubectl_patch:
        rules: []
    kubectl_rollout:
        rules: []
    kubectl_scale:
        rules: []
    list_api_resources:
        rules: []
    node_management:
        rules: []
    ping:
        rules: []
    port_forward:
        rules: []
    stop_port_forward:
        rules: []
    uninstall_helm_chart:
        rules: []
    upgrade_helm_chart:
        rules: []

RELATED POLICIES

FREQUENTLY ASKED QUESTIONS

What tools does the Kubernetes MCP server expose?

The Kubernetes MCP Server exposes 22 tools across 3 categories: Other, Execute, Read. Each tool can be individually controlled with Intercept policies.

How do I enforce policies on Kubernetes?

Download the policy scaffold, add rules (rate limits, argument validation, deny rules), then run Intercept as a proxy in front of the Kubernetes MCP server. Every tool call is evaluated against your YAML policy before execution.

Is the Kubernetes policy free to use?

Yes. All Intercept policies are open source under the Apache 2.0 licence. Download, modify, and deploy without restrictions.

ENFORCE POLICIES ON KUBERNETES

Open source. One binary. Zero dependencies.