# Securely troubleshoot Kubernetes clusters with Claude Code and MCP

DevFeed: [Securely troubleshoot Kubernetes clusters with Claude Code and MCP](<https://devfeed.tech/articles/securely-troubleshoot-kubernetes-clusters-with-claude-code-and-mcp-31192.md>)

Original publisher: [Read original article](<https://tailscale.com/learn/kubernetes-mcp>)

Published: 2026-04-13T13:05:11Z

Content type: tutorial

Language: en

Sources: [Learn on Tailscale](<https://devfeed.tech/sources/learn-on-tailscale.md>)

Topics: [Kubernetes](<https://devfeed.tech/topics/kubernetes.md>), [Model Context Protocol](<https://devfeed.tech/topics/model-context-protocol.md>), [Claude Code](<https://devfeed.tech/topics/claude-code.md>), [MCP Server](<https://devfeed.tech/topics/mcp-server.md>), [Authorization](<https://devfeed.tech/topics/authorization.md>), [observability](<https://devfeed.tech/topics/observability.md>)

Tags: [access-control](<https://devfeed.tech/tags/access-control.md>), [claude-code](<https://devfeed.tech/tags/claude-code.md>), [cli](<https://devfeed.tech/tags/cli.md>), [codex](<https://devfeed.tech/tags/codex.md>), [commands](<https://devfeed.tech/tags/commands.md>), [cursor](<https://devfeed.tech/tags/cursor.md>), [gitops](<https://devfeed.tech/tags/gitops.md>), [helm-charts](<https://devfeed.tech/tags/helm-charts.md>), [kubernetes](<https://devfeed.tech/tags/kubernetes.md>), [mcp](<https://devfeed.tech/tags/mcp.md>), [observability](<https://devfeed.tech/tags/observability.md>), [opentelemetry](<https://devfeed.tech/tags/opentelemetry.md>)

## AI overview

A practical guide to connecting Claude Code and other MCP-compatible clients to Kubernetes through an MCP server. It compares server implementations and explains operational safeguards including RBAC scoping, context pinning, observability, non-destructive mode, and secrets masking.

## Source excerpt

Set up Kubernetes MCP for Claude Code, Cursor, Codex fast, and see how to handle credentials, access control, and audit trails.