$git clone https://github.com/strowk/mcp-k8s-goMCP π¬ prompt ποΈ resource π€ tool
| 1 | <h4 align="center">Golang-based MCP server connecting to Kubernetes</h4> |
| 2 | |
| 3 | <h1 align="center"> |
| 4 | <img src="docs/images/logo.png" width="180"/> |
| 5 | <br/> |
| 6 | MCP K8S Go |
| 7 | </h1> |
| 8 | |
| 9 | <p align="center"> |
| 10 | <a href="#features">Features</a> β |
| 11 | <a href="#browse-with-inspector">Browse With Inspector</a> β |
| 12 | <a href="#use-with-claude">Use With Claude</a> β |
| 13 | <a href="https://github.com/strowk/mcp-k8s-go/blob/main/CONTRIBUTING.md">Contributing β</a> β |
| 14 | <a href="https://modelcontextprotocol.io">About MCP β</a> |
| 15 | </p> |
| 16 | |
| 17 | <p align="center"> |
| 18 | <a href="https://github.com/strowk/mcp-k8s-go/actions/workflows/dependabot/dependabot-updates"><img src="https://github.com/strowk/mcp-k8s-go/actions/workflows/dependabot/dependabot-updates/badge.svg"></a> |
| 19 | <a href="https://github.com/strowk/mcp-k8s-go/actions/workflows/test.yaml"><img src="https://github.com/strowk/mcp-k8s-go/actions/workflows/test.yaml/badge.svg"></a> |
| 20 | <a href="https://github.com/strowk/mcp-k8s-go/actions/workflows/golangci-lint.yaml"><img src="https://github.com/strowk/mcp-k8s-go/actions/workflows/golangci-lint.yaml/badge.svg"/></a> |
| 21 | <br/> |
| 22 | <a href="https://github.com/strowk/mcp-k8s-go/releases/latest"><img src="https://img.shields.io/github/v/release/strowk/mcp-k8s-go?logo=github&color=22ff22" alt="latest release badge"></a> |
| 23 | <a href="https://goreportcard.com/report/github.com/strowk/mcp-k8s-go"><img src="https://goreportcard.com/badge/github.com/strowk/mcp-k8s-go" alt="Go Reference"></a> |
| 24 | <a href="https://github.com/strowk/mcp-k8s-go/blob/main/LICENSE"><img src="https://img.shields.io/github/license/strowk/mcp-k8s-go" alt="license badge"></a> |
| 25 | </p> |
| 26 | |
| 27 | ## Features |
| 28 | |
| 29 | MCP π¬ prompt ποΈ resource π€ tool |
| 30 | |
| 31 | - ποΈπ€ List Kubernetes contexts |
| 32 | - π¬π€ List Kubernetes namespaces |
| 33 | - π€ List, get, create and modify any Kubernetes resources |
| 34 | - includes custom mappings for resources like pods, services, deployments |
| 35 | - π€ List Kubernetes nodes |
| 36 | - π¬ List Kubernetes pods |
| 37 | - π€ Get Kubernetes events |
| 38 | - π€ Get Kubernetes pod logs |
| 39 | - π€ Run command in Kubernetes pod |
| 40 | |
| 41 | ## Browse With Inspector |
| 42 | |
| 43 | To use latest published version with Inspector you can run this: |
| 44 | |
| 45 | ```bash |
| 46 | npx @modelcontextprotocol/inspector npx @strowk/mcp-k8s |
| 47 | ``` |
| 48 | |
| 49 | ## Use With Claude |
| 50 | |
| 51 | <details><summary><b> |
| 52 | Demo Usage |
| 53 | </b></summary> |
| 54 | |
| 55 | Following chat with Claude Desktop demonstrates how it looks when selected particular context as a resource and then asked to check pod logs for errors in kube-system namespace: |
| 56 | |
| 57 |  |
| 58 | |
| 59 | </details> |
| 60 | |
| 61 | To use this MCP server with Claude Desktop (or any other client) you might need to choose which way of installation to use. |
| 62 | |
| 63 | You have multiple options: |
| 64 | |
| 65 | | | <a href="#using-smithery">Smithery</a> | <a href="#using-mcp-get">mcp-get</a> | <a href="#prebuilt-from-npm">Pre-built NPM</a> | <a href="#from-github-releases">Pre-built in Github</a> | <a href="#building-from-source">From sources</a> | <a href="#using-docker">Using Docker</a> | |
| 66 | | ------------ | -------------------------------------- | ------------------------------------ | ---------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------ | ---------------------------------------- | |
| 67 | | Claude Setup | Auto | Auto | Manual | Manual | Manual | Manual | |
| 68 | | Prerequisite | Node.js | Node.js | Node.js | None | Golang | Docker | |
| 69 | |
| 70 | ### Using Smithery |
| 71 | |
| 72 | To install MCP K8S Go for Claude Desktop automatically vi |