LANForge MCP
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@LANForge MCPCheck the health of the LANforge system and list any active alerts."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
LANForge MCP
Universal Model Context Protocol server for controlling and observing Candela LANforge from MCP-compatible AI clients.
LANForge MCP gives an AI a compact operator interface while preserving access to the full LANforge surface:
Any JSON GET table through
queryand live endpoint discoveryAny CLI-JSON command through
run_commandorraw_cliLANforge scripts discovered from their real
argparseschemasWi-Fi stations, L3/L4 traffic, monitoring, events, alerts, attenuators, reports, diagnostics, and reusable workflows
Multiple LANforge systems from one server
stdio for desktop AI clients and Streamable HTTP for shared deployments
Linux, macOS, Windows, Docker, and LANforge-local deployment when Python 3.10+ is available
The design deliberately uses about 40 understandable tools plus dynamic gateways instead of exposing 600+ nearly identical MCP tools.
Safety first
First launch is read-only and remote shell access is disabled. Full LANforge control is available only when the operator opts in:
safety:
read_only: false
dry_run: false
require_confirmation: true
allow_shell: true
allow_runtime_mode_changes: falseDestructive commands still require confirm=true. Every mutation is audited with common credentials recursively redacted. Runtime safety changes are locked unless an administrator explicitly enables them.
Related MCP server: testing-mcp
Install
Python 3.10 or newer is required.
Linux / macOS
git clone https://github.com/AarifCandela/LANForge-MCP.git
cd LANForge-MCP
./scripts/install.sh
. .venv/bin/activate
lanforge-mcp versionWindows PowerShell
git clone https://github.com/AarifCandela/LANForge-MCP.git
Set-Location LANForge-MCP
powershell -ExecutionPolicy Bypass -File .\scripts\install.ps1
.\.venv\Scripts\Activate.ps1
lanforge-mcp versionRelease wheel
Download the wheel from the latest GitHub release, then:
python -m venv .venv
# activate the venv, then:
python -m pip install lanforge_mcp-1.0.0-py3-none-any.whlConnect to LANforge
Copy the example and edit the host:
cp examples/config.yaml config.yaml
lanforge-mcp check --config config.yamlThe LANforge GUI JSON API is normally http://LANFORGE_IP:8080. SSH is optional and is needed only for remote scripts and shell_command.
Connect an AI client (stdio)
Use the absolute executable and config paths for maximum portability:
{
"mcpServers": {
"lanforge": {
"command": "/absolute/path/LANForge-MCP/.venv/bin/lanforge-mcp",
"args": ["serve", "--config", "/absolute/path/LANForge-MCP/config.yaml"]
}
}
}On Windows, command is typically C:\\path\\LANForge-MCP\\.venv\\Scripts\\lanforge-mcp.exe.
See docs/clients.md for Claude Desktop/Code, Cursor, VS Code, Cline, Continue, Hermes, and generic clients.
Remote HTTP deployment
Non-loopback HTTP requires a bearer token unless the operator explicitly overrides the guard:
export LANFORGE_MCP_AUTH_TOKEN="$(openssl rand -hex 32)"
lanforge-mcp serve --transport http --bind 0.0.0.0 --port 8231 --config config.yamlClients connect to http://SERVER:8231/mcp and send the configured bearer token in the Authorization header. Terminate TLS at a trusted reverse proxy for traffic outside a private lab network.
Docker:
export LANFORGE_HOST=192.168.1.50
export LANFORGE_MCP_AUTH_TOKEN="replace-with-a-long-random-token"
docker compose up --build -dSee docs/deployment.md.
Universal LANforge access model
Capability | MCP tools |
Systems and health |
|
Every read table |
|
Every CLI command |
|
LANforge OS (optional) |
|
Wi-Fi stations |
|
Traffic | L3/L4 create/start/stop/remove, stats and diagnosis |
Observability |
|
Automation suites | script discovery/schema/run/status/output/cancel |
Campaigns | workflow templates and arbitrary declarative workflows |
Evidence | Markdown, standalone HTML, and JSON reports |
Unknown commands are forwarded to the connected GUI, so newer LANforge features do not require an MCP release. Offline catalogs improve discoverability but the installed LANforge GUI remains authoritative.
Validate the server
.venv/bin/pytest
.venv/bin/ruff check src tests tools
.venv/bin/mypy src
.venv/bin/fastmcp list --command '.venv/bin/lanforge-mcp serve --config config.yaml' --jsonUse read-only mode for the first live connection. Only perform mutating hardware tests on an authorized lab system.
Documentation
License and trademarks
MIT licensed. LANforge is a product and trademark of Candela Technologies. This repository is an independent MCP integration and is not an official Candela support channel.
This server cannot be deployed
Maintenance
Related MCP Connectors
Connect any AI agent to 1,000+ apps and 27,000+ actions through one remote MCP server (OAuth).
Zero-setup MCP gateway securely connecting AI to your tools with authentication and workflows
Discover and call 10,000+ production APIs from one MCP server. Pay-per-call billing for AI agents.
Protocol-native energy infrastructure orchestration for AI data centers. Provides 46 MCP tools across 8 grid protocols (IEC-61850, DNP3, Modbus, OCPP, OpenADR, IEEE 2030.5, IEC 60870-5-104, ICCP) with 5 core API primitives: connect, dispatch, settle, comply, and intel. Enables AI agents to programmatically interact with substations, grid interfaces, and energy assets for real-time workload-grid coordination.
Related MCP Servers
- FlicenseNot gradedqualityAmaintenanceEnables AI clients to view screens, run commands, and transfer files across a fleet of LAN-connected devices through a single MCP interface.-
- FlicenseNot gradedqualityBmaintenanceMCP server that enables AI agents to programmatically run tests, query results, and receive intelligent recommendations about test execution strategy.-

wlanpi-mcpofficial
AlicenseBqualityBmaintenanceAn MCP server that exposes WLAN Pi capabilities like device info, Wi-Fi scanning, service management, and VLANs to AI assistants via the wlanpi-core REST API.711BSD 3-Clause
MaxoPerf MCP Serverofficial
FlicenseNot gradedqualityCmaintenanceRemote MCP server enabling AI agents to manage the MaxoPerf performance testing platform via natural language, including creating tests, launching cloud load runs, viewing results, and diagnosing failures.1-