MCP Server
Web.Casa implements a Model Context Protocol (MCP) server as a dedicated plugin, exposing 44 tools that let external AI tools and IDEs interact with your server through a standardized interface.
What Is MCP
Section titled “What Is MCP”MCP (Model Context Protocol) is a standard that exposes server management capabilities as structured tools that AI models can call. By connecting an MCP-compatible client to Web.Casa’s MCP server, your AI assistant gains the ability to manage hosts, containers, files, databases, and more — all through natural language.
API Token Management
Section titled “API Token Management”Access to the MCP server is authenticated via API tokens with scope-based permissions.
Creating a Token
Section titled “Creating a Token”- Navigate to Settings > MCP Server
- Click Create Token
- Choose an expiry option:
| Expiry | Use Case |
|---|---|
| 30 days | Short-term testing or temporary access |
| 90 days | Regular development workflows |
| 180 days | Long-running integrations |
| 365 days | Annual renewal cycle |
| No expiry | Persistent integrations (use with caution) |
- Copy the full token immediately — it is only shown once
Token Security
Section titled “Token Security”- Tokens are prefixed with
wc_for easy identification - Stored as SHA-256 hashes — the raw token is shown only once at creation
- Each token tracks creation date, expiry, and last used timestamp
- Permission scopes use
category:actionformat (e.g.,hosts:write,deploy:read) - Wildcard
*:*grants full access - Tokens can be revoked immediately from the settings UI
Tip: Rotate tokens periodically. If a token may have been compromised, revoke it immediately and create a new one.
MCP Endpoint
Section titled “MCP Endpoint”https://your-server.com/api/plugins/mcpserver/mcpIDE Configuration
Section titled “IDE Configuration”Cursor
Section titled “Cursor”{ "mcpServers": { "webcasa": { "url": "https://your-server.com/api/plugins/mcpserver/mcp", "headers": { "Authorization": "Bearer YOUR_TOKEN" } } }}Windsurf
Section titled “Windsurf”{ "mcpServers": { "webcasa": { "url": "https://your-server.com/api/plugins/mcpserver/mcp", "headers": { "Authorization": "Bearer YOUR_TOKEN" } } }}Claude Code
Section titled “Claude Code”{ "mcpServers": { "webcasa": { "url": "https://your-server.com/api/plugins/mcpserver/mcp", "headers": { "Authorization": "Bearer YOUR_TOKEN" } } }}Tip: The configuration snippets on the MCP Server settings page are pre-filled with your actual server URL. Copy them directly and only replace the token value.
Available Tools (44 Total)
Section titled “Available Tools (44 Total)”Host Management
Section titled “Host Management”list_hosts— list all reverse proxy hostscreate_host— create a new host with domain, upstream, and TLS settingsupdate_host— update upstream, TLS mode, WebSocket, compression, or enabled statedelete_host— remove a host by IDtoggle_host— enable or disable a host
Project Deployment
Section titled “Project Deployment”list_projects— list all deployment projectsget_project— get project detailsdeploy_project— create a project from Git and trigger the first buildbuild_project— trigger a new build for an existing projectget_build_logs— get build logs for a projectauto_deploy— one-command: Git URL → project → build → reverse proxy with HTTPS
Docker
Section titled “Docker”docker_ps— list all containers with status, ports, and resource usagedocker_logs— get container logsdocker_run— run a new container with image, ports, volumes, and env varslist_stacks— list Docker Compose stackscreate_stack— create a Compose stack from YAMLcontrol_stack— up, down, or restart a Compose stackget_stack_logs— get stack logs
Database
Section titled “Database”list_db_instances— list all managed database instancescreate_db_instance— create a new database instanceexecute_query— execute a read-only SQL query
System & Files
Section titled “System & Files”get_system_metrics— CPU, memory, disk usage, load averageget_system_info— hostname, OS, kernel, uptime, CPU cores, architecturerun_command— execute a shell command with timeoutread_file— read file contentslist_directory— list files and directorieswrite_file— write content to a filedelete_file— delete a file
AI-Powered
Section titled “AI-Powered”generate_compose— generate Docker Compose YAML from natural languagediagnose_error— analyze error logs with AI for root causes and fixes
Monitoring & Alerts
Section titled “Monitoring & Alerts”list_alert_rules— list all alert rulescreate_alert_rule— create a monitoring alert ruleget_alert_history— get recent alerts
Firewall
Section titled “Firewall”firewall_status— get firewall status and active zonesmanage_firewall_rule— add or remove port or service rules
Notifications
Section titled “Notifications”list_notify_channels— list configured notification channels
Backup
Section titled “Backup”trigger_backup— trigger an immediate system backup
System Inspection
Section titled “System Inspection”run_inspection— run a health inspection with AI-powered analysis
Cron Jobs
Section titled “Cron Jobs”list_cron_jobs— list all scheduled jobs (optional tag filter)get_cron_job_logs— get execution logscreate_cron_job— create a scheduled jobupdate_cron_job— update job settingsdelete_cron_job— delete a jobtrigger_cron_job— manually trigger a job
Security Considerations
Section titled “Security Considerations”- Always use HTTPS for the MCP endpoint to protect tokens in transit
- Create separate tokens for different clients or team members
- Use scoped permissions — grant only the categories each client needs
- Monitor the last used timestamp to detect unused or potentially compromised tokens
- Revoke tokens when they are no longer needed