Command Palette

Search for a command to run...

UnylyUnyly
Browse all

Clab

FreeNot checked

Clab — Model Context Protocol server

GitHubEmbed

About

Clab — Model Context Protocol server

README

This is a quick and dirty MCP (Model Context Protocol) trial for interacting with containerlab using AI. The example is tailored for claude desktop.

  1. Running containerlab API server
  2. Latest build of containerlab from the main branch
    • Build it yourself: make build
    • Copy the binary: cp bin/containerlab $(which containerlab)

Building the MCP Server

For Windows

export GOOS=windows
export GOARCH=amd64
go build -o clab-mcp-server.exe main.go

For Mac

# For Intel Macs
export GOOS=darwin
export GOARCH=amd64
go build -o clab-mcp-server main.go

# For Apple Silicon (M1/M2/M3)
export GOOS=darwin
export GOARCH=arm64
go build -o clab-mcp-server main.go

For Linux

export GOOS=linux
export GOARCH=amd64
go build -o clab-mcp-server main.go

Setup for Claude Desktop

  1. Place the MCP server executable in an accessible location
    • For Windows: clab-mcp-server.exe
    • For Mac/Linux: clab-mcp-server
  2. Create a configuration file named claude_desktop_config.json with the following content:
# For Windows:
{
  "mcpServers": {
    "clab-api": {
      "command": "C:\\clab-mcp-server.exe",
      "args": [],
      "env": {
        "API_SERVER_URL": "http://localhost:8080"
      }
    }
  }
}

# For Mac/Linux:
{
  "mcpServers": {
    "clab-api": {
      "command": "/path/to/clab-mcp-server",
      "args": [],
      "env": {
        "API_SERVER_URL": "http://localhost:8080"
      }
    }
  }
}
  1. Ensure the containerlab API server is running at http://localhost:8080 or update the URL as needed

Usage

Once configured, Claude will be able to:

  • List available labs
  • Deploy new network topologies
  • Inspect lab details
  • Execute commands on lab nodes
  • Destroy and clean up labs

You can ask Claude to perform these operations using natural language, and it will use the appropriate MCP tools to interact with your containerlab environment.

from github.com/FloSch62/clab-mcp-server

Installing Clab

This server has no published package — it is built from source. Open the repository and follow its README.

▸ github.com/FloSch62/clab-mcp-server

FAQ

Is Clab MCP free?

Yes, Clab MCP is free — one-click install via Unyly at no cost.

Does Clab need an API key?

No, Clab runs without API keys or environment variables.

Is Clab hosted or self-hosted?

Self-hosted: the server runs locally on your machine via the install command above.

How do I install Clab in Claude Desktop, Claude Code or Cursor?

Open Clab on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.

Related MCPs

Compare Clab with

Not sure what to pick?

Find your stack in 60 seconds

Author?

Embed badge for your README

Browse similar

All development MCPs