vyos-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., "@vyos-mcpshow configuration for interfaces on edge-fw"
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.
vyos-mcp
An MCP server for managing VyOS appliances over their HTTP API. It exposes
tools for the config verbs (show / set / delete), the config lifecycle (commit-confirm / revert /
save), operational show commands and log retrieval/search, plus two guided "skill" prompts for
traffic analysis and interactive troubleshooting.
Transport is streamable HTTP only.
How it works
VyOS exposes a REST API where every call is a POST of a multipart form with a data JSON op
descriptor and a per-appliance key. This server wraps that API behind well-described MCP tools,
selecting the target appliance by name from a YAML inventory.
API reference: https://docs.vyos.io/en/latest/automation/vyos-api.html
Commit model (important)
VyOS's /configure endpoint commits immediately — there is no separate commit step. To get a
safe, revertible edit:
set_config/delete_configwithconfirm_minutes> 0 — applies a commit-confirm; the change auto-reverts after that many minutes unless confirmed.Verify with
show_config/run_show.confirm_commit— keep the change.save_config— persist to boot config.
revert_config reloads the last saved config (/config/config.boot), discarding unsaved running
changes.
Related MCP server: Palo Alto Device Server
Tools
Tool | Purpose |
| List managed appliances (no keys) |
| Read config ( |
| Apply |
| Apply |
| Finalize a pending commit-confirm |
| Reload the last saved config |
| Persist running config to boot |
| Run an operational |
| Retrieve / regex-search system logs with tail |
Prompts (skills)
traffic_analysis(appliance, interface?, focus?)troubleshoot(appliance, symptom)— interactive; asks you to run tests and correlates results.
Setup
npm install
npm run buildEnable the API on each VyOS appliance
set service https api keys id mcp key '<PLAINTEXT-KEY>'
set service https api
commit ; saveConfigure the inventory
Copy the example and edit it:
cp appliances.example.yaml appliances.yamlappliances:
- name: edge-fw
host: 10.0.0.1
port: 443 # default 443
verify_ssl: false # default true; opt out per appliance for self-signed certs
api_key: ${EDGE_FW_KEY} # literal, or ${ENV_VAR} reference
description: "Branch edge firewall"API keys may be ${ENV_VAR} references so secrets stay out of the file. Referenced vars must be
set when the server starts. The config path defaults to ./appliances.yaml; override with
VYOS_MCP_CONFIG.
TLS:
verify_ssldefaults totrue(secure by default). Because VyOS ships a self-signed certificate, verification will fail until you install a properly-issued certificate or add the appliance CA to the host trust store. You can setverify_ssl: falseper appliance to skip verification, but that exposes the connection to man-in-the-middle attacks — only do so on a trusted network.
Run
export EDGE_FW_KEY=... # any env vars referenced by appliances.yaml
npm start # or: npm run devServer listens on http://localhost:3000/mcp (PORT, VYOS_MCP_PATH configurable). Health check
at GET /health.
The MCP endpoint itself is unauthenticated. Bind it to localhost or a trusted network, or front it with a reverse proxy that adds auth.
Connect from Claude Code
claude mcp add --transport http vyos http://localhost:3000/mcpSmoke test with the MCP Inspector
# List tools
npx @modelcontextprotocol/inspector --cli http://localhost:3000/mcp \
--transport http --method tools/list
# List appliances
npx @modelcontextprotocol/inspector --cli http://localhost:3000/mcp \
--transport http --method tools/call --tool-name list_appliances
# Read config
npx @modelcontextprotocol/inspector --cli http://localhost:3000/mcp \
--transport http --method tools/call --tool-name show_config \
--tool-arg appliance=edge-fw --tool-arg 'path=["interfaces"]'
# List prompts
npx @modelcontextprotocol/inspector --cli http://localhost:3000/mcp \
--transport http --method prompts/listNot included
The VyOS /generate, /reset, /renew, /reboot, /poweroff, /image and /traceroute
endpoints are not wrapped yet — they follow the same pattern in src/tools.ts if you need them.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
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/Galvill/vyos-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server