AI-powered debugging and inspection for Kubernetes clusters using Inspektor Gadget. - AI-powered interface for Kubernetes troubleshooting and monitoring - One-click Inspektor Gadget deployment and removal - Intelligent output summarization and analysis - Automatic gadget discovery from Artifact Hub 1. Ensure you have Docker and a valid kubeconfig file 2. Configure the MCP server in VS Code (see IN
Add this skill
npx mdskills install inspektor-gadget/ig-mcp-serverWell-documented MCP server providing powerful Kubernetes debugging via Inspektor Gadget with dynamic tool registration
1[](https://github.com/inspektor-gadget/ig-mcp-server/releases)2[](LICENSE)3[](https://kubernetes.slack.com/channels/inspektor-gadget)4[](https://goreportcard.com/report/github.com/inspektor-gadget/ig-mcp-server)5[](examples/README.md)6[](https://deepwiki.com/inspektor-gadget/ig-mcp-server)78# Inspektor Gadget MCP Server910AI-powered debugging and inspection for Kubernetes clusters using Inspektor Gadget.1112https://github.com/user-attachments/assets/86367982-c0aa-455c-ac9e-ca43348899df1314## Features1516- AI-powered interface for Kubernetes troubleshooting and monitoring17- One-click Inspektor Gadget deployment and removal18- Intelligent output summarization and analysis19- Automatic gadget discovery from Artifact Hub2021## Quick Start22231. Ensure you have Docker and a valid `kubeconfig` file242. Configure the MCP server in VS Code (see [INSTALL.md](INSTALL.md))253. Start using AI commands in VS Code Copilot Chat264. Try: "Show me DNS traffic" or "Deploy Inspektor Gadget"275. Head to [examples](examples/README.md) for detailed examples.2829## Installation3031You can use the following commands to quickly configure the Inspektor Gadget MCP server using either Docker or a binary in your VS Code settings.3233### Docker3435<summary>36 <details>37 <summary>Install Inspektor Gadget MCP Server - Artifact Hub Discovery</summary>38 <pre><code>code --add-mcp '{39 "name": "inspektor-gadget",40 "command": "docker",41 "args": [42 "run",43 "-i",44 "--rm",45 "--volume",46 "ig-mcp-cache:/root/.cache/ig-mcp-server",47 "--mount",48 "type=bind,src=${env:HOME}/.kube/config,dst=/kubeconfig",49 "ghcr.io/inspektor-gadget/ig-mcp-server:latest",50 "-gadget-discoverer=artifacthub"51 ]52}'</code></pre>53 </details>54<details>55 <summary>Install Inspektor Gadget MCP Server - Specific Gadgets</summary>56 <pre><code>code --add-mcp '{57 "name": "inspektor-gadget",58 "command": "docker",59 "args": [60 "run",61 "-i",62 "--rm",63 "--volume",64 "ig-mcp-cache:/root/.cache/ig-mcp-server",65 "--mount",66 "type=bind,src=${env:HOME}/.kube/config,dst=/kubeconfig",67 "ghcr.io/inspektor-gadget/ig-mcp-server:latest",68 "-gadget-images=trace_dns:latest,trace_tcp:latest,snapshot_process:latest,snapshot_socket:latest"69 ]70}'</code></pre>71 </details>72</summary>7374### Binary7576You can head to the [Releases](https://github.com/inspektor-gadget/ig-mcp-server/releases) page and download the latest binary for your platform:7778<summary>79 <details>80 <summary>Linux</summary>81 <pre><code>MCP_VERSION=$(curl -s https://api.github.com/repos/inspektor-gadget/ig-mcp-server/releases/latest | jq -r .tag_name)82MCP_ARCH=amd6483curl -sL https://github.com/inspektor-gadget/ig-mcp-server/releases/download/${MCP_VERSION}/ig-mcp-server-linux-${MCP_ARCH}.tar.gz | sudo tar -C /usr/local/bin -xzf - ig-mcp-server84</code></pre>85 </details>86 <details>87 <summary>macOS</summary>88 <pre><code>MCP_VERSION=$(curl -s https://api.github.com/repos/inspektor-gadget/ig-mcp-server/releases/latest | jq -r .tag_name)89MCP_ARCH=arm6490curl -sL https://github.com/inspektor-gadget/ig-mcp-server/releases/download/${MCP_VERSION}/ig-mcp-server-darwin-${MCP_ARCH}.tar.gz | sudo tar -C /usr/local/bin -xzf - ig-mcp-server91</code></pre>92 </details>93 <details>94 <summary>Windows</summary>95 <pre><code>$MCP_VERSION = (curl.exe -s https://api.github.com/repos/inspektor-gadget/ig-mcp-server/releases/latest | ConvertFrom-Json).tag_name96$MCP_ARCH = "amd64"97curl.exe -L "https://github.com/inspektor-gadget/ig-mcp-server/releases/download/$MCP_VERSION/ig-mcp-server-windows-$MCP_ARCH.tar.gz" -o "ig-mcp-server.tar.gz"98$destPath = "C:\Program Files\ig-mcp-server"99if (-Not (Test-Path $destPath -PathType Container)) { mkdir $destPath}100tar.exe -xzf "ig-mcp-server.tar.gz" -C "$destPath"101rm ig-mcp-server.tar.gz102Write-Host "โ Extracted to $destPath"103Write-Host "๐ Please add '$destPath' to your PATH environment variable manually."104</code></pre>105 </details>106</summary>107108After downloading, you can run the following command to add it to your VS Code MCP configuration.109110<summary>111 <details>112 <summary>Install Inspektor Gadget MCP Server - Artifact Hub Discovery</summary>113 <pre><code>code --add-mcp '{114 "name": "inspektor-gadget",115 "command": "ig-mcp-server",116 "args": [117 "-gadget-discoverer=artifacthub"118 ]119}'</code></pre>120 </details>121<details>122 <summary>Install Inspektor Gadget MCP Server - Specific Gadgets</summary>123 <pre><code>code --add-mcp '{124 "name": "inspektor-gadget",125 "command": "ig-mcp-server",126 "args": [127 "-gadget-images=trace_dns:latest,trace_tcp:latest"128 ]129}'</code></pre>130 </details>131</summary>132133## Available Tools134135### Inspektor Gadget Lifecycle136137- **ig_deploy**: Manage deployment of Inspektor Gadget on target Kubernetes cluster138139### Gadget Lifecycle140141- **ig_gadgets**: Manage the lifecycle of running gadgets (stop/list/get-results)142143### Dynamic Tools144145Each gadget is registered as its own MCP tool (e.g., `gadget_trace_dns`, `gadget_trace_tcp`, etc.) and supports running gadgets in foreground mode, which is useful for debugging/development and also in background mode for observability.146147Also, You can control which gadgets are available by configuring the MCP server with the `-gadget-discoverer` or `-gadget-images` options, allowing you to limit the tools to only those you need.148149#### Gadget Discovery150151Gadget discovery allows controlling which gadgets are available for use. You can choose between two methods:152153- **Automatic**: Uses Artifact Hub (`-gadget-discoverer=artifacthub`)154- **Manual**: Specify gadgets directly (`-gadget-images=trace_dns:latest`)155156157158See [INSTALL.md](INSTALL.md) for configuration options.159160## Security Notes161162- Requires read-only access to your kubeconfig file163- Needs network access for Artifact Hub discovery164- See [security guide](SECURITY.md) for setting up server with minimal permissions165166## Resources167168- ๐ [Documentation](https://inspektor-gadget.io/docs/)169- ๐ [Examples](examples/README.md)170- ๐ [Issues](https://github.com/inspektor-gadget/ig-mcp-server/issues)171- ๐ฌ [Slack](https://kubernetes.slack.com/channels/inspektor-gadget)172- ๐ [Website](https://inspektor-gadget.io/)173- ๐ [Troubleshooting](TROUBLESHOOTING.md)174- ๐ [Security Guide](SECURITY.md)175176## Related Projects177178- [Inspektor Gadget](https://github.com/inspektor-gadget/inspektor-gadget) - Kubernetes debugging tool179- [MCP Specification](https://spec.modelcontextprotocol.io/) - Model Context Protocol180181## License182183Apache License 2.0 - see [LICENSE](LICENSE) for details.184
Full transparency โ inspect the skill content before installing.