gns3-mcp
Click on "Install 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., "@gns3-mcpBuild a lab with two Cisco routers connected via Ethernet."
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.
gns3-mcp
A full-feature MCP server for the GNS3 v3 (3.0) controller REST API. It lets an AI agent (Claude Code / Claude Desktop / any MCP client) drive a GNS3 network-emulation lab end-to-end: build topologies, manage device lifecycle, snapshot, capture packets, manage templates / computes / images / RBAC, and automate device CLIs over node consoles.
Built with Python + FastMCP. Ships as a Claude Code plugin and as a standalone pip-installable MCP server. ~125 tools, 4 resources, and 3 prompts.
Features
Area | Tools |
Controller | version, statistics, reload/shutdown, IOU license |
Projects | CRUD, open/close/load, duplicate, export/import, lock, files |
Nodes | CRUD, create-from-template, start/stop/suspend/reload (single + all), isolate, duplicate, idle-PC, disk/files |
Links | CRUD, filters, reset |
Console automation |
|
Packet capture | start/stop, Wireshark restart, pcap download |
Snapshots | list / create / restore / delete |
Drawings | canvas annotations CRUD |
Templates / Appliances | CRUD + duplicate; browse & install appliance catalog |
Computes / Images | manage compute servers, query emulators; upload/install/prune images |
RBAC | users, groups, roles, privileges, ACL |
Resource pools | CRUD + membership |
Resources |
|
Prompts |
|
Related MCP server: GNS3 MCP Server
Configuration
All settings come from the environment (prefix GNS3_):
Variable | Default | Purpose |
|
| Controller URL (no |
| – | Login credentials |
| – | Pre-issued bearer token (skips login) |
|
| Verify TLS for https |
| – | Project id used when a tool omits |
|
| Disable all mutating tools (41 read-only tools remain) |
|
|
|
|
| HTTP bind |
|
| Console read timeout (s) |
Install
As a Claude Code plugin
/plugin marketplace add /home/oscar/Code/gns3-mcp
/plugin install gns3The plugin declares the MCP server in plugin/.mcp.json; it runs the gns3-mcp console
script, so install the package first (below) or adjust the command to python -m gns3_mcp.
As a standalone MCP server
pip install -e . # from this repo (or, once published: pipx install gns3-mcp-server)The PyPI distribution is named gns3-mcp-server; it installs the gns3-mcp
console script (and a gns3-mcp-server alias, so uvx gns3-mcp-server works too).
Register with Claude Code:
claude mcp add gns3 -- gns3-mcp
# then set env: GNS3_BASE_URL, GNS3_USERNAME, GNS3_PASSWORDOr in Claude Desktop config:
{
"mcpServers": {
"gns3": {
"command": "gns3-mcp",
"env": {
"GNS3_BASE_URL": "http://localhost:3080",
"GNS3_USERNAME": "admin",
"GNS3_PASSWORD": "your-password"
}
}
}
}Run as a remote HTTP server instead:
GNS3_TRANSPORT=http GNS3_HTTP_PORT=8080 gns3-mcpSafety
GNS3_READ_ONLY=trueregisters only read-only tools.Destructive tools (
project_delete,node_deletevia flow,controller_shutdown,controller_reload,images_prune) require an explicitconfirm=true.Console automation can run arbitrary commands on emulated devices — treat it like shell access to your lab.
Development
pip install -e ".[dev]"
python -m pytest # hermetic unit + tool + console tests (respx-mocked)
# Opt-in live smoke test against a real controller:
GNS3_LIVE=1 GNS3_BASE_URL=http://localhost:3080 \
GNS3_USERNAME=admin GNS3_PASSWORD=... python -m pytest tests/test_live_smoke.py -sArchitecture: a single async GNS3Client (client.py) handles login, 401 re-auth,
pagination, and binary I/O; every tool module under tools/ is a thin layer over it and
exposes register(mcp). console.py is a minimal telnet proxy for driving node consoles.
Contributing & releases
Commits follow Conventional Commits (feat:,
fix:, feat!: for breaking changes), which drives automated versioning.
release-please opens a release PR that
bumps the version and updates CHANGELOG.md; merging it tags a release and
publishes to PyPI via Trusted Publishing (after the test suite passes). Full details in
CONTRIBUTING.md.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables AI-powered network engineering by providing natural language control over GNS3 network simulations. Supports creating projects, building network topologies, managing devices, controlling simulations, and analyzing network traffic through conversational AI interactions.Last updated4223MIT
- AlicenseAqualityDmaintenanceEnables control of GNS3 network lab automation, including projects, nodes, consoles, and SSH, through Claude Desktop or any MCP-compatible client.Last updated1510MIT
- Alicense-qualityDmaintenanceEnables AI agents to control Cisco Packet Tracer in real time, allowing natural language-driven creation and configuration of network topologies.Last updated3MIT
- Flicense-qualityBmaintenanceBridges AI assistants with EVE-NG network simulation labs, enabling autonomous management of labs, device configuration, and diagnostics through natural language.Last updated1
Related MCP Connectors
Build, validate, and deploy multi-agent AI solutions from any AI environment.
Create and manage AI agents that collaborate and solve problems through natural language interacti…
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/Olaw2jr/gns3-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server