Skip to main content

MCP server for VyOS router management via the HTTPS REST API

Project description

mcp-server-vyos

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

Tool Description
vyos_info System info (no auth required)
vyos_retrieve Read configuration at a path
vyos_return_values Get multi-valued config node values
vyos_exists Check if a config path exists
vyos_show Run operational show commands
vyos_configure Apply config with commit-confirm (safe default)
vyos_confirm Confirm a pending commit-confirm
vyos_save Save running config to disk
vyos_load Load a configuration file
vyos_merge Merge config file or string into running config
vyos_generate Generate keys, certificates, etc.
vyos_reset Reset operations
vyos_reboot Reboot the router
vyos_poweroff Power off the router
vyos_image_add Add a system image from URL
vyos_image_delete Delete a system image

Documentation

Tool Description
vyos_docs_search Search VyOS documentation by topic
vyos_docs_read Read 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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcp_server_vyos-0.1.0.tar.gz (10.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_server_vyos-0.1.0-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file mcp_server_vyos-0.1.0.tar.gz.

File metadata

  • Download URL: mcp_server_vyos-0.1.0.tar.gz
  • Upload date:
  • Size: 10.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mcp_server_vyos-0.1.0.tar.gz
Algorithm Hash digest
SHA256 294383d20305fa35dca0f5d0bf9f26fe214ded35afbd13b0c31b6ec596f70311
MD5 86c08a04e25007e8f3429f38f01d104b
BLAKE2b-256 6726239f9e4ade9ad4568c3e1d508df4989c82086a96944d13075c2f7894aa38

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_server_vyos-0.1.0.tar.gz:

Publisher: release-please.yml on cacack/mcp-server-vyos

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mcp_server_vyos-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mcp_server_vyos-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 31f64038d14febc58dab8298d9ec0d032fbb3e87a4021fde1f9440c3c43aecee
MD5 f4f0d79e1e2e78921b4800992399c598
BLAKE2b-256 d790b8559bab2590fc77256056b1e819b84deff71919382924e00a994f007d45

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_server_vyos-0.1.0-py3-none-any.whl:

Publisher: release-please.yml on cacack/mcp-server-vyos

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page