sylve-mcp
Provides tools for managing Sylve FreeBSD clusters, including Bhyve VMs, Jails, ZFS storage, networking, backups, HA/replication, and cluster/node operations through the Sylve REST API.
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., "@sylve-mcp show cluster status and list all VMs with their IPs"
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.
SYLVE-MCP(1)
NAME
sylve-mcp — Model Context Protocol server for Sylve FreeBSD clusters, Bhyve VMs, Jails, ZFS, Networking, and Backups
Related MCP server: mcp-homelab-server
SYNOPSIS
sylve-mcp [--config FILE] [--context NAME] [-n NODE] [-k] [--timeout SECONDS]
[--read-only] [--expose-tags TAG1,TAG2] [--expose-all] [--swagger FILE] [-V] [-h]DESCRIPTION
sylve-mcp exposes the Sylve REST API to agents and models over the Model
Context Protocol (MCP) stdio transport. It is a companion to
sylve-cli and
sylve-ansible; all three programs
share the same configuration file and SYLVE_* environment variables.
The server speaks newline-delimited JSON-RPC 2.0 on standard input and output
and implements initialize, ping, tools/list, tools/call,
resources/list, resources/read, prompts/list, and prompts/get. It uses
only the standard library for the protocol — the runtime dependencies are
httpx and PyYAML (matching the sylve-cli stack).
Every endpoint of the bundled OpenAPI spec (Sylve 0.3.1: 336 paths, 441 operations) is reachable. The server registers 35 curated, cluster-aware tools plus three universal Swagger tools that cover the rest.
INSTALLATION
Requires Python 3.10 or newer.
From a local checkout with pip:
pip install .From the FreeBSD port:
cd packaging/freebsd/sysutils/py-sylve-mcp
make packageOPTIONS
Operate cluster-wide by default; override per call by passing node or
context as tool arguments.
--config FILEPath to the configuration file (default:~/.config/sylve/config.yaml).--context NAMENamed login context to use by default (seesylve_context_list).-n, --node NODEDefault target cluster node hostname or UUID.-k, --insecureDisable TLS certificate verification.--timeout SECONDSHTTP request timeout in seconds (default:30.0).--read-onlyRefuse every non-GETAPI request before it leaves the process. Safe for unattended production triage.--expose-tags TAG1,TAG2Also register one MCP tool per Swagger operation in the given comma-separated tags (e.g.VM,Jail,ZFS).--expose-allRegister one MCP tool for every one of the 441 Swagger operations.--swagger FILEOverride the bundledswagger.jsonpath.-V, --versionPrint the version and exit.-h, --helpPrint usage information and exit.
COMMANDS
Curated cluster-aware tools (35)
Group | Tools |
Session |
|
Cluster / nodes |
|
VMs |
|
Jails |
|
Storage |
|
Network |
|
HA / backup / tasks |
|
Curated tools resolve VM names, jail names, ZFS pool names, and dataset names
to IDs automatically, accept human-readable sizes (2G, 20G), expose live
guest-agent IP addresses, and poll asynchronous tasks to wait_timeout
(default 60s) — returning the in-progress task record instead of hanging.
Universal Swagger tools
Tool | Purpose |
| Search all operations by keyword, Swagger tag, or HTTP method. |
| Full request/response schema for one operation, |
| Execute any documented operation with |
For an endpoint without a dedicated tool, follow the workflow:
sylve_api_search → sylve_api_schema → sylve_api_call.
Resources and prompts
Resources:
sylve://cluster/status,sylve://cluster/resources,sylve://openapi/tagsPrompts:
triage-cluster,plan-node-drain
HOW TO USE
1. Authenticate
sylve-mcp does not log in. Reuse an existing sylve session, or provide
credentials via the environment.
Save a context (writes ~/.config/sylve/config.yaml, mode 0600):
sylve login https://sylve.example.test:8181Or run purely from the environment in CI/containers:
export SYLVE_SERVER=https://sylve.example.test:8181
export SYLVE_TOKEN=eyJhbGciOi...
export SYLVE_NODE=node1.example.test # optional default node2. Start the server
sylve-mcp # uses the active context from config.yaml
sylve-mcp --context prod # a specific saved context
sylve-mcp --read-only # read-only: refuse all non-GET requests
sylve-mcp --expose-tags VM,Jail # also register one tool per VM/Jail operationThe server reads JSON-RPC messages from stdin and writes responses to stdout, so it is normally launched by an MCP client rather than a shell.
3. Register with an MCP client
OpenCode (opencode.json):
{
"mcp": {
"sylve": { "type": "stdio", "command": ["sylve-mcp"], "enabled": true }
}
}Claude Desktop / Claude Code (claude_desktop_config.json):
{
"mcpServers": {
"sylve": { "command": "sylve-mcp", "args": [] }
}
}Cursor (.cursor/mcp.json) uses the same mcpServers shape as Claude.
Add "args": ["--read-only"] when the client may act unattended.
4. Drive it from the agent
Read-only and destructive operations are distinguished for the client via MCP
tool annotations (readOnlyHint / destructiveHint), so safe queries run
automatically and state changes prompt for confirmation:
"List all VMs and their states" -> sylve_vm_list
"Show vm 101 with its IPs" -> sylve_vm_show
"Create a 2G/20G VM web-01 on zroot" -> sylve_vm_create
"Drain node1 for maintenance (dry run)" -> sylve_node_drain (dry_run=true)
"Restore the latest backup job 12 snapshot" -> sylve_backup
"Wait on lifecycle task 42" -> sylve_task action=wait
"Find the login-config endpoint" -> sylve_api_search query=loginENVIRONMENT
SYLVE_CONFIG— override configuration file path.SYLVE_CONTEXT— override active context name.SYLVE_SERVER— override server URL without a saved context.SYLVE_TOKEN— override bearer token without a saved context.SYLVE_NODE— default target cluster node.SYLVE_INSECURE— set to1,true, oryesto skip TLS verification.SYLVE_READ_ONLY— set to1,true, oryesto enforce read-only mode.SYLVE_SWAGGER— override the bundledswagger.jsonpath.XDG_CONFIG_HOME— base directory for the default configuration file.
FILES
~/.config/sylve/config.yamlDefault configuration file containing saved login contexts and bearer tokens (mode 0600), created bysylve login.docs/swagger.jsonVendored Sylve OpenAPI 2.0 specification (also packaged assylve_mcp/swagger.json). Regenerate from the upstream Sylve repository.docs/man/man1/sylve-mcp.1Roff manual page, rendered fromdocs/man/src/sylve-mcp.1.inwithmake man.
EXIT STATUS
0— clean shutdown at end of input (EOF), or--help/--version.1— startup error (invalid spec path, bad configuration).
Tool-call failures are returned to the MCP client as isError: true in the
JSON-RPC response and do not terminate the server.
EXAMPLES
Provision a VM, then attach its console logs in a later message:
sylve_vm_create(name="web-01", memory="2G", disk_size="20G",
pool="zroot", cloud_init=true, user_data="#cloud-config ...",
start=true)
sylve_vm_logs(vm="web-01")Triage a degraded cluster with the built-in prompt:
/prompt triage-clusterSEE ALSO
sylve-cli — the
sylve(1)command line,sylve-config(5)sylve-ansible — the
sylve.cloudAnsible collectionTESTING.md — unit and live test suites
PLAN.md — design and implementation notes
sylve-mcp is an independent tool and is not affiliated with or endorsed by
the Sylve project. It is licensed under the BSD-2-Clause license.
Available Tools
38 toolssylve_api_callB
Execute any documented Sylve API operation directly (GET/POST/PUT/PATCH/DELETE). Combine with sylve_api_schema to build accurate bodies. Filters out None query params.
Inputs: path (required), method (required), body, node, +8 more.
sylve_api_schemaARead-onlyIdempotent
Show the full request/response schema (with $refs resolved) for one Swagger operation. Use sylve_api_search to find the operation first.
Inputs: path (required), method (required), node, context.
sylve_api_searchARead-onlyIdempotent
Search all Sylve Swagger operations by keyword, tag, or HTTP method. Use this to discover any of the 441 endpoints before calling them.
Inputs: tag, node, limit, query, +2 more.
sylve_backupCDestructive
Inspect backup targets, jobs, and events; run or restore backups.
Inputs: action (required), body, node, wait, +8 more.
sylve_cluster_resourcesARead-onlyIdempotent
List every VM, Jail, and template across all cluster nodes.
Inputs: node, context.
sylve_cluster_statusARead-onlyIdempotent
Show cluster status: Raft leader, quorum members, node health, and guest counts.
Inputs: node, context.
sylve_context_listARead-onlyIdempotent
List configured Sylve login contexts from ~/.config/sylve/config.yaml.
Inputs: node, context.
sylve_downloadBDestructive
List, show, queue URL downloads, or delete ISOs/images on the downloader.
Inputs: action (required), ids, url, node, +8 more.
sylve_jail_actionCDestructive
Start, stop, or restart one or more Jails by CTID or name.
Inputs: jails (required), action (required), node, wait, +2 more.
sylve_jail_bootstrapCDestructive
List, create, or delete pkgbase FreeBSD jail bootstraps on a ZFS pool.
Inputs: action (required), name, node, pool, +4 more.
sylve_jail_createCDestructive
Create a FreeBSD Jail on a ZFS pool.
Inputs: name (required), pool (required), base, dhcp, +15 more.
sylve_jail_deleteBDestructive
Delete a Jail, optionally removing its rootfs and MAC objects.
Inputs: jail (required), node, context, delete_macs, +1 more.
sylve_jail_listBRead-onlyIdempotent
List FreeBSD Jails across the cluster.
Inputs: node, context.
sylve_jail_logsARead-onlyIdempotent
Retrieve a Jail's console log output.
Inputs: jail (required), node, context.
sylve_jail_migrateCDestructive
Validate and migrate a Jail to another cluster node.
Inputs: jail (required), target (required), node, wait, +3 more.
sylve_jail_showARead-onlyIdempotent
Show a Jail's full configuration and live guest info.
Inputs: jail (required), node, context.
sylve_jail_snapshotCDestructive
List, create, roll back, or delete Jail ZFS snapshots.
Inputs: jail (required), action (required), name, node, +3 more.
sylve_jail_templateCDestructive
List, show, capture, deploy, or delete jail templates.
Inputs: action (required), jail, name, node, +3 more.
sylve_network_overviewBRead-onlyIdempotent
Query one network subsystem (interfaces, switches, routes, DHCP, firewall, objects, WireGuard).
Inputs: kind, node, context.
sylve_node_audit_logsARead-onlyIdempotent
Show recent audit records from a node (or all nodes) with parsed request paths.
Inputs: node, context.
sylve_node_drainADestructive
Build and optionally execute a maintenance drain plan for a node (HA failover, migration, or stop). Dry run by default for safety.
Inputs: node (required), wait, context, dry_run, +6 more.
sylve_node_listARead-onlyIdempotent
List all cluster nodes with CPU%, RAM%, disk, guest counts, and version.
Inputs: node, context.
sylve_node_showARead-onlyIdempotent
Show detailed CPU/RAM/swap/disk telemetry for a node (defaults to the connected node).
Inputs: node, context.
sylve_replicationCDestructive
Manage HA replication policies, events, and failovers.
Inputs: action (required), mode, node, wait, +8 more.
sylve_taskCDestructive
List, show, or wait on guest lifecycle tasks; cancel migrations.
Inputs: action (required), node, limit, context, +2 more.
sylve_vm_actionBDestructive
Start, stop, shutdown, reboot, or restart one or more VMs by name or RID.
Inputs: vms (required), action (required), node, wait, +2 more.
sylve_vm_createBDestructive
Provision a Bhyve VM from scratch or from a template. Parses sizes like '2G', auto-allocs RID and VNC port, validates cloud-init YAML. Supports dry_run.
Inputs: iso, rid, tpm, vnc, +41 more.
sylve_vm_deleteCDestructive
Delete a VM and optionally its volumes, raw disks, and MAC objects.
Inputs: vm (required), node, force, context, +3 more.
sylve_vm_listBRead-onlyIdempotent
List Bhyve VMs across the cluster.
Inputs: node, context, detailed.
sylve_vm_logsBRead-onlyIdempotent
Retrieve a VM's serial console log output.
Inputs: vm (required), node, context.
sylve_vm_migrateBDestructive
Validate and live-migrate a VM to another cluster node.
Inputs: vm (required), target (required), node, wait, +3 more.
sylve_vm_showARead-onlyIdempotent
Show a VM's full configuration, live state, and guest-agent IP addresses.
Inputs: vm (required), node, context.
sylve_vm_snapshotBDestructive
List, create, roll back, or delete VM ZFS snapshots.
Inputs: vm (required), action (required), name, node, +3 more.
sylve_vm_templateCDestructive
List, show, capture, deploy, or delete VM templates.
Inputs: action (required), vm, name, node, +3 more.
sylve_whoamiARead-onlyIdempotent
Show the active Sylve login context, user, node, and JWT expiry status.
Inputs: context (required), node.
sylve_zfs_datasetCDestructive
List, create, edit, or delete ZFS filesystems and volumes.
Inputs: action (required), name, node, size, +5 more.
sylve_zfs_poolCDestructive
List, inspect, or scrub ZFS storage pools (resolves pool names to GUIDs).
Inputs: action (required), node, pool, context.
sylve_zfs_snapshotCDestructive
List, create, roll back, or delete ZFS snapshots, plus periodic snapshot jobs.
Inputs: action (required), name, node, context, +4 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 38 tools
Most tools target a clearly distinct resource and action (VM, jail, ZFS, node, backup, replication, task). A few boundaries are blurry: VM/jail/ZFS snapshot tools overlap in concept, and sylve_api_call can duplicate nearly any operation, but the descriptions make the intended scope clear.
The sylve_ prefix and resource-based grouping are consistent across the set (sylve_vm_list, sylve_vm_show, sylve_jail_create, etc.). Minor deviations are the noun-only multi-action tools such as sylve_zfs_pool, sylve_vm_snapshot, and sylve_network_overview, which omit the verb but remain readable.
At 38 tools, the surface is heavy for a single MCP server and exceeds the typical comfortable range. While the domain is broad, several tools could be consolidated or scoped further, and the three api_* meta-tools plus multiple resource-specific lifecycle tools inflate the count.
Core lifecycle coverage is strong across VMs, jails, ZFS, backups, replication, tasks, and cluster/node operations. Minor gaps exist around explicit network mutation, user/context creation, and some fine-grained operations, but sylve_api_search/schema/call provide a workaround via the full Swagger surface.
Related MCP Connectors
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.
Your org's AI agents, tasks, runs, search, and brain files as MCP tools and resources.
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
The agent-native cloud: database, functions, AI, storage, computers. 53 tools. OAuth or API key.
Related MCP Servers
- AlicenseNot gradedqualityAmaintenanceEnables interaction with Proxmox VE for managing VMs, containers, storage, and cluster resources via natural language through the Model Context Protocol.81MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to manage a homelab by providing tools for Docker, Ollama, and system monitoring through the Model Context Protocol.MIT
- AlicenseAqualityDmaintenanceEnables LLM agents to monitor and manage a Proxmox VE cluster, including cluster status, VM/container lifecycle, and node actions via MCP tools.8MIT
- AlicenseAqualityCmaintenanceEnables AI agents to manage Proxmox VE clusters, LXC containers, snapshots, services, and Tailscale mesh status.71MIT