Skip to content

MCP Server Integration

Cyberzard implements the Model Context Protocol (MCP) to expose its security tools to AI agents like Claude, GPT, and other MCP-compatible clients.

Start the MCP server:

Terminal window
# Default stdio transport (for Claude Desktop)
cyberzard mcp
# SSE transport for web clients
cyberzard mcp --transport sse --port 8080
# Streamable HTTP transport
cyberzard mcp --transport streamable-http --port 8080

Add to your claude_desktop_config.json:

{
"mcpServers": {
"cyberzard": {
"command": "cyberzard",
"args": ["mcp"],
"env": {
"CYBERPANEL_HOST": "https://your-server:8090",
"CYBERPANEL_USER": "admin",
"CYBERPANEL_PASS": "your-password"
}
}
}
}
ToolDescription
scan_serverFull security scan for malware, miners, suspicious files
read_fileSafely read file contents with size limits
propose_remediationGenerate remediation plans from scan results
execute_remediationExecute approved remediation actions
ToolDescription
cyberpanel_list_websitesList all websites
cyberpanel_create_websiteCreate a new website
cyberpanel_create_databaseCreate MySQL/MariaDB database
cyberpanel_list_email_accountsList email accounts
cyberpanel_issue_sslIssue/renew SSL certificate
cyberpanel_firewall_add_ruleAdd firewall rule

Best for local integrations like Claude Desktop:

Terminal window
cyberzard mcp --transport stdio

For web-based clients:

Terminal window
cyberzard mcp --transport sse --host 0.0.0.0 --port 8080

For modern HTTP clients:

Terminal window
cyberzard mcp --transport streamable-http --host 0.0.0.0 --port 8080

Cyberzard can also connect to external MCP servers and use their tools:

from cyberzard.mcp.client import MCPClientManager
manager = MCPClientManager()
# Connect via stdio
await manager.connect_stdio("filesystem", command="npx", args=["-y", "@modelcontextprotocol/server-filesystem", "/path"])
# Connect via HTTP
await manager.connect_http("remote-server", "http://localhost:8080/sse")
# List available tools
tools = manager.list_all_tools()
# Call a tool
result = await manager.call_tool("filesystem", "read_file", {"path": "/etc/passwd"})
  • MCP exposes powerful system tools - use appropriate access controls
  • Set CYBERPANEL_* environment variables securely
  • Consider using a firewall for network transports
  • Review tool permissions before exposing to untrusted clients