MCP Hub
Back to servers

vyos-mcp

An MCP server for managing VyOS routers via the HTTPS REST API, enabling configuration changes, operational commands, and system maintenance tasks. It also provides tools to search and read live VyOS documentation directly from official sources to assist with command syntax and router features.

glama
Updated
Mar 31, 2026

mcp-server-vyos

CI codecov PyPI Python License: MIT

MCP server for VyOS router management via the HTTPS REST API. Provides both router management tools and live VyOS documentation lookup.

Installation

pip install mcp-server-vyos

Configuration

Set environment variables:

  • VYOS_URL — Router API endpoint (e.g., https://vyos.example.com)
  • VYOS_API_KEY — API key for authentication

VyOS Router Setup

Enable the HTTPS API on your VyOS router:

configure
set service https api keys id my-mcp-key key <your-api-key>
set service https api rest
commit
save

Claude Code

Add to your MCP client configuration:

{
  "mcpServers": {
    "vyos": {
      "command": "mcp-server-vyos",
      "env": {
        "VYOS_URL": "https://vyos.example.com",
        "VYOS_API_KEY": "your-api-key"
      }
    }
  }
}

Tools

Router Management

ToolDescription
vyos_infoSystem info (no auth required)
vyos_retrieveRead configuration at a path
vyos_return_valuesGet multi-valued config node values
vyos_existsCheck if a config path exists
vyos_showRun operational show commands
vyos_configureApply config with commit-confirm (safe default)
vyos_confirmConfirm a pending commit-confirm
vyos_saveSave running config to disk
vyos_loadLoad a configuration file
vyos_mergeMerge config file or string into running config
vyos_generateGenerate keys, certificates, etc.
vyos_resetReset operations
vyos_rebootReboot the router
vyos_poweroffPower off the router
vyos_image_addAdd a system image from URL
vyos_image_deleteDelete a system image

Documentation

ToolDescription
vyos_docs_searchSearch VyOS documentation by topic
vyos_docs_readRead a specific documentation page

Documentation is fetched live from the vyos-documentation repository, so it stays in sync with the latest VyOS releases. Results are cached for 1 hour.

Safety

  • Configuration changes use commit-confirm by default -- changes auto-revert after 5 minutes unless confirmed with vyos_confirm
  • Destructive operations (vyos_reboot, vyos_poweroff, vyos_image_delete) include warning descriptions
  • API keys are never logged or included in tool outputs
  • Self-signed TLS certificates are accepted by default (common on VyOS)

Development

uv venv && source .venv/bin/activate
uv pip install -e ".[dev]"
pytest
ruff check .

License

MIT

Reviews

No reviews yet

Sign in to write a review