Cato CLI MCP Server
OfficialThis server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Cato CLI MCP Server
An MCP (Model Context Protocol) server that provides tools for interacting with Cato Networks API through the catocli command-line interface.
Prerequisites
Before using this MCP server, you need to have Docker installed on your system.
macOS
Download Docker Desktop for Mac from the official Docker website
For Apple Silicon (M1/M2/M3): Download the Apple Chip version
For Intel processors: Download the Intel Chip version
Open the downloaded
.dmgfile and drag Docker to your Applications folderLaunch Docker Desktop from Applications
Follow the on-screen instructions to complete the installation
Verify Docker is installed:
docker --version docker compose version
Windows
System Requirements:
Windows 10 64-bit: Pro, Enterprise, or Education (Build 19041 or higher)
Windows 11 64-bit: Pro, Enterprise, or Education
WSL 2 feature enabled
Enable WSL 2:
wsl --installRestart your computer if prompted.
Download and Install Docker Desktop:
Download Docker Desktop for Windows from the official Docker website
Run the installer and follow the installation wizard
Ensure "Use WSL 2 instead of Hyper-V" option is selected
Launch Docker Desktop and complete the initial setup
Verify Docker is installed:
docker --version docker compose version
For detailed installation instructions, see the official Docker documentation.
Related MCP server: vyos-mcp
Add the following to Claude-Desktop config file:
Claude Desktop Configuration
Add the following to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"cato": {
"type": "stdio",
"command": "docker",
"args": [
"run", "--rm", "-i", "--pull", "always",
"-e", "CATO_API_HOST=api.catonetworks.com",
"-e", "CATO_ACCOUNT_ID=12345",
"-e", "CATO_API_KEY=XXXXXXXXX",
"ghcr.io/catonetworks/cato-cli-mcp:latest"
]
}
}
}Windows Configuration
File location: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"cato": {
"type": "stdio",
"command": "docker",
"args": [
"run", "--rm", "-i", "--pull", "always",
"-e", "CATO_API_HOST=api.catonetworks.com",
"-e", "CATO_ACCOUNT_ID=12345",
"-e", "CATO_API_KEY=XXXXXXXXX",
"ghcr.io/catonetworks/cato-cli-mcp:latest"
]
}
}
}Note: On Windows, you can access the config file by:
Press
Win + RType
%APPDATA%\Claudeand press EnterEdit
claude_desktop_config.jsonwith your preferred text editor
Notes:
The
--pull alwaysoption ensures that the AI Agent application (e.g. Claude-Desktop) uses cato-mcp-server's most updated version.
The AI Agent application running cato-mcp-server might open a popup asking for permissions to access data from other apps.
\If you don't wish to allow this, you can remove the
--pull alwaysoption, but then you will need to manually update the image when a new version is released by executing:
docker pull ghcr.io/catonetworks/cato-mcp-server:latest
Authentication
The server supports two ways to authenticate to the Cato API. Pick one.
The mode is selected with CATO_AUTH_MODE (default auto): in auto the server
uses a mounted catocli profile if one is present, otherwise it falls back to the
API-key environment variables.
Option A — Environment variables (API key)
Pass your Cato API key and account ID directly. This is the default and requires nothing installed on the host besides Docker.
{
"mcpServers": {
"cato": {
"type": "stdio",
"command": "docker",
"args": [
"run", "--rm", "-i", "--pull", "always",
"-e", "CATO_API_HOST=api.catonetworks.com",
"-e", "CATO_ACCOUNT_ID=12345",
"-e", "CATO_API_KEY=XXXXXXXXX",
"ghcr.io/catonetworks/cato-cli-mcp:latest"
]
}
}
}Option B — Inherit your catocli profile
If you already use catocli locally
with configured profiles (catocli configure set), the MCP server can reuse
whichever profile is currently active — no API key in your MCP config.
Bind-mount your host ~/.cato directory read-only into the container; the
server reads ~/.cato/config for the active profile name and pulls that profile's
token / account / endpoint from ~/.cato/credentials. Nothing is written.
macOS / Windows (Docker Desktop):
{
"mcpServers": {
"cato": {
"type": "stdio",
"command": "docker",
"args": [
"run", "--rm", "-i", "--pull", "always",
"-v", "/Users/you/.cato:/home/catomcp/.cato:ro",
"ghcr.io/catonetworks/cato-cli-mcp:latest"
]
}
}
}Replace
/Users/you/.catowith the absolute path to your~/.cato(Docker does not expand~or${HOME}insideargs). On Windows use e.g.C:\\Users\\you\\.cato:/home/catomcp/.cato:ro.No
--useris needed: Docker Desktop's file sharing maps the bind mount to the container user, so the0600credentials file is readable.
Linux (native Docker):
{
"mcpServers": {
"cato": {
"type": "stdio",
"command": "docker",
"args": [
"run", "--rm", "-i", "--pull", "always",
"--user", "1000:1000",
"-v", "/home/you/.cato:/home/catomcp/.cato:ro",
"ghcr.io/catonetworks/cato-cli-mcp:latest"
]
}
}
}Native Docker preserves host file ownership, so add
--user <uid>:<gid>matching the owner of~/.cato/credentials(find them withid -u/id -g). Without it, the container user cannot read your0600credentials file.
Switching profiles live: because the mount is read-only and re-read on every
query, running catocli configure use <profile> on the host is inherited by the
MCP server on its next query — no restart needed. To pin a specific profile
regardless of the host's active one, add -e CATO_PROFILE=<name>.
Forcing a mode: set -e CATO_AUTH_MODE=profile to require the mounted profile
(the server logs an error if none is mounted), or -e CATO_AUTH_MODE=env to always
use the API-key variables even when a profile is mounted.
Configuration
The server requires the following environment variables:
# The hostname of the Cato API (without protocol). e.g.: api.catonetworks.com
# For details about your Cato API hostname, please see: https://support.catonetworks.com/hc/en-us/articles/20564679978397-What-is-the-Cato-API
CATO_API_HOST: "api.catonetworks.com"
# The Cato account-id
CATO_ACCOUNT_ID: "1234567"
# The Cato API-KEY for authentication
CATO_API_KEY: "123abc"The server requires the following environment variables:
Variable | Description | Example | Default |
Authentication | |||
| Auth source: |
|
|
| The hostname of the Cato API (hostname only, no protocol or path) |
| required in env mode |
| Your Cato account ID |
| required in env mode |
| Your Cato API key for authentication |
| required in env mode |
| In profile mode, pin a specific profile instead of the host's active one |
| active profile from |
Performance & Limits | |||
| Maximum records to return before truncation |
|
|
| Maximum response size in MB before rejection |
|
|
| Query timeout in seconds |
|
|
| Cache TTL in seconds (0 to disable) |
|
|
| Max API calls per period |
|
|
| Rate limit period in seconds |
|
|
Debugging | |||
| Enable verbose startup logging to stderr (for debugging) |
|
Note: CATO_API_HOST should contain only the hostname (e.g., api.catonetworks.com). The server will automatically construct the full URL https://api.catonetworks.com/api/v1/graphql2 when configuring catocli.
For details about your Cato API hostname, see: What is the Cato API
Performance Features
The server includes several performance optimizations to prevent overwhelming AI clients (like Claude) and improve reliability:
Response Size Limits
Record Limits: If a response contains more than
CATO_MCP_MAX_RECORDSitems (default: 50), it will be truncated and a warning will be added to the response.Size Limits: If a response exceeds
CATO_MCP_MAX_SIZE_MBmegabytes (default: 5), an error is returned with suggestions to use filters.
Query Timeouts
Timeout Protection: Queries that exceed
CATO_MCP_TIMEOUT_SECONDS(default: 120s) will be terminated with a helpful error message.Prevents hanging queries that could lock up the MCP server.
Response Caching
Automatic Caching: Query results are cached for
CATO_MCP_CACHE_TTLseconds (default: 300s/5 minutes).Reduces API load and improves response times for repeated queries.
Cached responses include
_mcp_cached: truemetadata.Set to
0to disable caching.
Rate Limiting
API Protection: Limits calls to prevent API abuse (disabled by default).
Configure via
CATO_MCP_RATE_LIMIT_CALLSandCATO_MCP_RATE_LIMIT_PERIOD.Returns clear error with wait time when limit exceeded.
Query Optimization Hints
Automatic Validation: Warns about high bucket counts, missing filters, and other performance issues.
Suggestions appear in
_mcp_warningsfield of response.
When limits are hit, you'll receive helpful suggestions to:
Use more specific filters (e.g., filter by
site_id)Limit the timeFrame for time-series queries
Break large queries into smaller batches
Example configuration with custom settings:
{
"mcpServers": {
"cato": {
"env": {
"CATO_API_HOST": "api.catonetworks.com",
"CATO_ACCOUNT_ID": "12345",
"CATO_API_KEY": "YOUR_KEY",
"CATO_MCP_MAX_RECORDS": "30",
"CATO_MCP_MAX_SIZE_MB": "3",
"CATO_MCP_TIMEOUT_SECONDS": "180",
"CATO_MCP_CACHE_TTL": "600",
"CATO_MCP_RATE_LIMIT_CALLS": "20",
"CATO_MCP_RATE_LIMIT_PERIOD": "60"
}
}
}
}Available Tools
The server provides the following MCP tools:
catocli_help: Get detailed help for any catocli command with examples and syntax
cato_entity: Lookup entities (sites, users, hosts, network interfaces, etc.)
cato_query: Execute query operations to retrieve analytics and configuration data:
Bandwidth & Traffic Analytics:
appStats,appStatsTimeSeries,socketPortMetrics,socketPortMetricsTimeSeriesNetwork & Sites:
accountSnapshot,site,siteLocation,entityLookupSecurity & Events:
events,eventsTimeSeries,eventsFeed,auditFeedAdministration:
admins,policy,hardware
cato_mutation: Execute mutation operations (manage account, policies, sites, etc.)
cato_raw: Execute raw GraphQL queries
Common Use Cases
Get bandwidth by application per site:
Ask Claude: "Show me application bandwidth usage by site for the last 24 hours"Get WAN link utilization:
Ask Claude: "Show me WAN port bandwidth metrics for all sites"List all sites:
Ask Claude: "List all my Cato sites"View security events:
Ask Claude: "Show me security events from the last hour"Development
Building the Docker Image
docker build -t catonetworks/cato-cli-mcp .Local Development
Install dependencies:
pip install -r requirements.txtRun the server locally:
python server.py --account-id YOUR_ID --cato-token YOUR_TOKEN --endpoint api.catonetworks.comOr use environment variables:
export CATO_ACCOUNT_ID=your_account_id export CATO_API_KEY=your_api_key export CATO_API_HOST=api.catonetworks.com python server.py
License
See LICENSE file for details.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Query and manage PacketFabric NaaS: ports, virtual circuits, cloud routers, pricing, metrics.
Programmatic control of the Hiro security platform: scans, tasks, plans, and approvals.
Read devices, users, keys, ACLs and DNS for a tailnet; manage devices, routes and auth keys.
Remote MCP for 1,500+ APIs. Vault-managed credentials; OAuth or API key. Search, load, and execute.
Related MCP Servers
- AlicenseBqualityBmaintenanceEnables interaction with Proton Pass via CLI operations, including vault and item management, secret injection, and password generation.4720 npm25GPL 3.0
- AlicenseNot gradedqualityDmaintenanceEnables managing VyOS appliances through their HTTP API, providing tools for configuration, operational commands, and interactive troubleshooting.MIT
- AlicenseNot gradedqualityDmaintenanceProvides MCP clients with a local gateway to the official command-line tool, enabling headless prompts and structured output while automatically rotating API keys on rate-limit responses so long-running sessions are not interrupted.MIT
- AlicenseAqualityCmaintenanceEnables AI clients to manage self-hosted Pangolin Community Edition sites, resources, targets, roles, users, organizations, and other Integration API operations over stdio or local Streamable HTTP, with configurable toolsets, write confirmation previews, caching, and secret redaction.6MIT