ClaudeCodeMod

All shelves / MCP servers

Containerlab MCP Server

FloSch62/clab-mcp-server · 13 stars · Go

MCP server

Install

The repo has no one-line install. Follow its README.

Open the repo

Files

README.md

Containerlab MCP Server

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.

Facts

Kind
MCP server
Repo
FloSch62/clab-mcp-server
Group
Uncategorized
Stars
13
Language
Go
Last push
2025-05-01
Forks
3

More on this shelf

  1. 1REAio.github.morluto/reaReverse engineer anything from your terminal or agent with one CLI and MCP server.125.3k
  2. 2com.browser-use/browser-usecom.browser-use/browser-useControl a real Chrome browser to complete any task: fill forms, extract data, book flights.117.7k
  3. 3World Monitorapp.worldmonitor/mcpLive markets, conflicts, country risk, chokepoints, energy, and China decision signals. 93 tools.88.3k
  4. 4Scrapling MCP Serverd4vinci/scrapling🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scraplingdev86.9k
  5. 5Everythingmodelcontextprotocol/serversThis MCP server attempts to exercise all the features of the MCP protocol. It is not intended to be a useful server, but rather a test server for builders of MCP clients. It implements prompts, tools, resources, sampling, and more to showcase MCP capabilities.85.8k
  6. 6Fetchmodelcontextprotocol/serversA Model Context Protocol server that provides web content fetching capabilities. This server enables LLMs to retrieve and process content from web pages, converting HTML to markdown for easier consumption.85.8k