namespace
Pod namespace (string, optional, defaults to current namespace)
How to use it
namespace is exposed by the K8s MCP Server MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the namespace tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
Install K8s MCP Server
go install github.com/briankscheong/k8s-mcp-server/cmd/k8s-mcp-server@latestOther tools in K8s MCP Server (21)
Container name (string, optional, defaults to first container)
Delete a pod from a namespace
Filter pods by field selector (string, optional)
Get information about a specific ConfigMap
Get information about a specific deployment
Get detailed information about a specific pod
Get logs from a pod
Get information about a specific service
Grace period before deletion (number, optional)
Filter pods by label selector (string, optional)
List ConfigMaps in a namespace
List deployments in a namespace
List all namespaces in the cluster
List all nodes in the cluster
List pods in a namespace
List services in a namespace
Pod name (string, required)
Get logs from previous container instance (boolean, optional)
Number of replicas (number, required)
Scale a deployment to a specific number of replicas
Number of lines to retrieve from the end (number, optional)