# inspektor-gadget/ig-mcp-server [Health: Active]

**Category:** 📊 Monitoring  
**Repository:** https://github.com/inspektor-gadget/ig-mcp-server  
**GitHub Stars:** 28  
**Views:** 6  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/inspektor-gadget-ig-mcp-server

## Description
Debug your Container and Kubernetes workloads with an AI interface powered by eBPF.

## Tools
Capabilities this server exposes over MCP:

- **ig_deploy** — Deploy, upgrade, undeploy, or check the status of Inspektor Gadget on your cluster
- **ig_gadgets** — List running gadgets, retrieve results from background runs, or stop gadgets

## Claude Desktop Quick Installation
No confirmed install details yet, so no config is published. Follow the setup steps in the repository above.

## Documentation

## What inspektor-gadget/ig-mcp-server MCP server does

The inspektor-gadget/ig-mcp-server MCP server exposes Inspektor Gadget to MCP-compatible AI clients. Inspektor Gadget uses eBPF programs attached to the Linux kernel to collect low-level telemetry from container and Kubernetes workloads. The MCP layer gives an AI agent a way to start these observations, inspect their output, and use the resulting data during troubleshooting.

The server is intended for investigations where logs, metrics, or Kubernetes resource state do not explain the problem. Supported observability examples include DNS queries, TCP connections, process executions, file activity, signals, socket bindings, syscalls, OOM kills, and deadlocks. Gadget output can include Kubernetes context such as the pod, namespace, container, and node associated with an event.

## How it works

An MCP client sends tool calls to the server. The server communicates with Inspektor Gadget, which attaches eBPF probes and returns telemetry. The server then provides structured JSON to the client, allowing an AI model to filter, correlate, and summarize events.

The `ig_deploy` tool manages Inspektor Gadget on a cluster. It can deploy, upgrade, undeploy, or report deployment status. The `ig_gadgets` tool lists active gadgets, retrieves results from background executions, and stops gadgets.

Individual gadgets are registered dynamically as MCP tools with a `gadget_` prefix. Their parameters, field descriptions, and filtering options are generated from gadget metadata. A gadget can run in the foreground for an immediate investigation or in the background so its results can be retrieved later.

## Tools and capabilities

Available gadget categories include:

- Tracing DNS, TCP, process execution, file opens, signals, socket bindings, capabilities, LSM hooks, OOM kills, SSL activity, and other events.
- Snapshotting running processes and open sockets.
- Reporting top file, TCP, and block I/O consumers.
- Profiling block I/O latency and TCP round-trip times.
- Suggesting or auditing seccomp profiles.
- Running advanced tools such as syscall recording and deadlock detection.

The exact dynamically registered tools depend on configuration. Tool calls support foreground and background modes, field-level output filtering, and structured JSON results.

## Setup and configuration

The inspektor-gadget/ig-mcp-server MCP server can run as a local binary using stdio, as a Docker container, or directly in a Kubernetes cluster using HTTP transport. The documented quick-start prerequisites are Docker and a valid `kubeconfig` file. Client configuration is required before an IDE or CLI can call the server; the project’s installation guide covers setup for VS Code, GitHub Copilot CLI, Claude Code, and other MCP-compatible clients.

After configuration, example prompts include requesting DNS traffic, checking for failed TCP connections, or asking the server to deploy Inspektor Gadget. The project also provides example walkthroughs for further usage.

## Limitations and notes

Each dynamically registered gadget adds its tool definition, parameter schema, and field descriptions to the model’s context window. Registering many gadgets can therefore consume a significant portion of the available context, especially with models that have smaller context limits.

The inspektor-gadget/ig-mcp-server MCP server includes a read-only mode for restricting operations to non-destructive actions. Deployment and gadget execution also depend on access to the relevant Kubernetes cluster and the capabilities required by Inspektor Gadget and eBPF on that environment.

_Full upstream README: https://allmcps.com/mcp/inspektor-gadget-ig-mcp-server/readme_

