Skip to main content
Glama

Inspektor Gadget MCP Server

Inspektor Gadget MCP Server

AI-powered debugging and inspection for Kubernetes clusters using Inspektor Gadget.

https://github.com/user-attachments/assets/86367982-c0aa-455c-ac9e-ca43348899df

Features

  • 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

Quick Start

  1. Ensure you have Docker and a valid kubeconfig file
  2. Configure the MCP server in VS Code (see INSTALL.md)
  3. Start using AI commands in VS Code Copilot Chat
  4. Try: "Show me DNS traffic" or "Deploy Inspektor Gadget"
  5. Head to examples for detailed examples.

Installation

You can use the following commands to quickly configure the Inspektor Gadget MCP server using either Docker or a binary in your VS Code settings.

Docker

Binary

You can head to the Releases page and download the latest binary for your platform:

After downloading, you can run the following command to add it to your VS Code MCP configuration.

Available Tools

Management Tools

  • is_inspektor_gadget_deployed: Checks if Inspektor Gadget is deployed in your cluster
  • deploy_inspektor_gadget: Installs Inspektor Gadget in your cluster (skipped if -read-only is set)
  • undeploy_inspektor_gadget: Removes Inspektor Gadget from your cluster (skipped if -read-only is set)

Lifecycle Tools

  • stop-gadget: Stops a background running gadget
  • get-results: Retrieves results from a background running gadget
  • wait: Waits for a gadget to finish running

Dynamic Tools

Each gadget is registered as its own MCP tool (e.g., trace_dns, trace_tcp, etc.) and supports running gadgets in foreground mode, which is useful for debugging/development and also in background mode for observability.

Also, 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.

Gadget Discovery

Gadget discovery allows controlling which gadgets are available for use. You can choose between two methods:

  • Automatic: Uses Artifact Hub (-gadget-discoverer=artifacthub)
  • Manual: Specify gadgets directly (-gadget-images=trace_dns:latest)

Gadget Tools

See INSTALL.md for configuration options.

Security Notes

  • Requires read-only access to your kubeconfig file
  • Needs network access for Artifact Hub discovery
  • See security guide for setting up server with minimal permissions

Resources

License

Apache License 2.0 - see LICENSE for details.

-
security - not tested
A
license - permissive license
-
quality - not tested

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

  1. Features
    1. Quick Start
      1. Installation
        1. Docker
        2. Binary
      2. Available Tools
        1. Management Tools
        2. Lifecycle Tools
        3. Dynamic Tools
      3. Security Notes
        1. Resources
          1. Related Projects
            1. License

              Related MCP Servers

              • A
                security
                A
                license
                A
                quality
                TypeScript implementation of Kubernetes cluster operations for pods, deployments, services.
                Last updated -
                21
                3,346
                984
                TypeScript
                MIT License
                • Linux
                • Apple
              • -
                security
                A
                license
                -
                quality
                Azure MCP Server
                Last updated -
                1,095
                MIT License
                • Linux
                • Apple
              • A
                security
                A
                license
                A
                quality
                Debugg AI MCP
                Last updated -
                1
                612
                89
                TypeScript
                MIT License
              • A
                security
                A
                license
                A
                quality
                Provides Node.js debugging capabilities with process management for AI agents, allowing them to start/stop Node.js processes, set breakpoints, step through code, and evaluate expressions.
                Last updated -
                8
                10
                JavaScript
                MIT License

              View all related MCP servers

              MCP directory API

              We provide all the information about MCP servers via our MCP API.

              curl -X GET 'https://glama.ai/api/mcp/v1/servers/inspektor-gadget/ig-mcp-server'

              If you have feedback or need assistance with the MCP directory API, please join our Discord server