Ig MCP Server logo

Ig MCP Server

by inspektor-gadget

Debug container and Kubernetes workloads with eBPF-powered observability tools exposed through MCP.

Install Ig MCP Server

Pick your client, then add it in one click or paste the config.

No confirmed install command yet

We only publish a config when the install details come from the project itself — its README, its docs, or a verified owner. We haven’t found those for inspektor-gadget/ig-mcp-server, and we’d rather show nothing than a guess you’d paste into your client.

Open setup steps on GitHub

Overview

The inspektor-gadget/ig-mcp-server MCP server connects AI agents to Inspektor Gadget for eBPF-based container and Kubernetes troubleshooting. It exposes lifecycle and gadget-management tools through MCP, while dynamically registering individual gadgets for tracing, snapshots, profiling, and security analysis. Results are returned as structured JSON with Kubernetes metadata such as pods, namespaces, containers, and nodes. Reach for it when kernel-level telemetry is needed to investigate DNS, networking, processes, files, syscalls, resource use, or related workload problems.

Use cases

  • Investigate failed DNS queries in Kubernetes workloads
  • Trace refused TCP connections and correlate them with pods
  • Inspect process executions, file activity, and socket state
  • Profile block I/O or TCP round-trip latency
  • Analyze OOM kills and other kernel-level events

Key features

  • Deploy and manage Inspektor Gadget on Kubernetes
  • Dynamically register gadget-specific MCP tools
  • Run gadgets in foreground or background modes
  • Filter gadget output by field
  • Return structured JSON telemetry with Kubernetes metadata
  • Support local, Docker, and in-cluster deployments

Tools2

What Ig MCP Server lets your agent do. Expand a tool for its parameters.

Self-reported~44 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

12/12 checks healthy over the last 110d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars28Stargazers on the source repository.
Last commit3mo agoMost recent push to the default branch.
Tools exposed2Callable tools this server registers over MCP.
Directory activity6 viewsConfig copies, upvotes, and views on AllMCPs.

How Ig MCP Server works

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.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Ig MCP Server

Install it as a local binary, Docker container, or Kubernetes deployment. Docker and a valid kubeconfig file are listed as quick-start prerequisites; the project installation guide contains client setup instructions.

It can expose gadgets for DNS, TCP, process execution, file activity, sockets, syscalls, block I/O, OOM kills, security events, and other Inspektor Gadget capabilities.

Yes. Gadgets support foreground and background modes. Background results can be retrieved with the ig_gadgets tool.

Yes. A read-only mode restricts the server to non-destructive operations.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewIg MCP Server AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/inspektor-gadget-ig-mcp-server?style=directory)](https://allmcps.com/mcp/inspektor-gadget-ig-mcp-server)
HTML Embed
<a href="https://allmcps.com/mcp/inspektor-gadget-ig-mcp-server"><img src="https://allmcps.com/api/badge/inspektor-gadget-ig-mcp-server?style=directory" alt="Ig MCP Server on AllMCPs" /></a>