Working with the Cato Remote MCP Server

Prev Next

Overview

The Remote MCP Server provides access to historical data within your account’s retention period. For example, an account with three months of retention can query three months of data.

You can authenticate with an API key or sign in with Cato Admin credentials using OAuth. Access to data and actions follows the permissions of the API key or the authenticated Cato Admin. For information about permissions, see Managing Admin Roles Using RBAC.

You can review events for Cato MCP tool calls to identify the tool invoked, the connected MCP client, and the API key or Cato Admin used for authentication. For more information, see Auditing Cato MCP Tool Calls.

Example Use Cases

AI-Assisted Threat Investigation

An analyst asks: Investigate this IP and summarize related security events.

The MCP client:

  1. Calls the Security Events tool

  2. Retrieves relevant structured data

  3. Returns results to the LLM

  4. The LLM summarizes findings

Automated XOps Incident Enrichment

When an XOps story is generated, the AI agent retrieves: Related flows, target reputation, and user history. The agent then responds with:

  • A contextual report

  • Suggested mitigation actions

AI-Driven Network Troubleshooting

This example demonstrates how, using the Cato MCP server, the AI performs structured, cross-domain queries across networking and application metrics. This replaces manually navigating multiple dashboards in the CMA.

An administrator reports that users at the London site are experiencing slow access to Microsoft 365.

  1. Using Remote MCP, the AI agent queries:

    1. Site Operations metrics

    2. WAN link health

    3. Packet loss and latency statistics

    4. Application performance metrics

  2. It detects:

    1. Increased packet loss on the primary WAN link

    2. Degraded SLA for M365 traffic class

  3. It correlates:

    1. Link quality degradation

    2. Bandwidth saturation during peak hours

  4. It recommends:

    1. Failing over to the secondary link

    2. Adjusting QoS priority

    3. Investigating ISP performance

Prerequisites

  • An MCP-compatible client connected to your LLM.

  • For API key authentication: a valid Cato API key.

  • For OAuth authentication:    

    • Valid Cato Admin credentials.

    • An MCP client that supports OAuth with a pre-registered client ID. Configure the client ID specified below; the server URL alone is insufficient.

Connecting to the Cato Remote MCP Server

After connecting, your client discovers the available Cato tools. New tools are exposed automatically as the server is updated.

Connecting with an API Key

Use an Admin API key for interactive work, or a Service API key for production and automation.

  1. Connect your MCP client to your LLM.

  2. Set the MCP server URL to https://api.catonetworks.com/api/v1/rest/mcp. This endpoint serves all CMA instances.

  3. Add the custom header x-api-key and enter your Cato API key as its value.

  4. Save and activate the connection.

Connecting with Cato Admin Credentials (OAuth)

OAuth lets you authenticate in your browser with your Cato Admin credentials and approve the client’s access to Cato.

Use https://api.catonetworks.com/mcp for OAuth connections in all regions, including EU, US, India, and Japan.

Cato uses pre-registered public OAuth clients. Configure the client ID according to your MCP client:

MCP client

Client ID

Claude Code

mcp-claude

Cursor

mcp-cursor

OpenAI / Codex

mcp-openai

Claude Code

  1. Open a terminal and run:

    claude mcp add --transport http --client-id mcp-claude --callback-port 18124 cato-mcp https://api.catonetworks.com/mcp --scope user
  2. In Claude Code, run /mcp, select cato-mcp, and select Authenticate.

  3. Complete the browser sign-in and verification steps below.

Cursor

  1. Add the following server configuration to ~/.cursor/mcp.json. If the file already contains servers, add cato-mcp under the existing mcpServers object.

    {
      "mcpServers": {
        "cato-mcp": {
          "url": "https://api.catonetworks.com/mcp",
          "auth": {
            "CLIENT_ID": "mcp-cursor"
          }
        }
      }
    }
  2. Go to Cursor Settings > MCP and select Authenticate next to cato-mcp.

  3. Complete the browser sign-in and verification steps below.

OpenAI Codex and ChatGPT

For Codex, configure the connection using the terminal or the configuration file. The ChatGPT desktop app can use the same local Codex MCP configuration on the same host. ChatGPT web requires a separate remote connection; it does not read your local configuration file.

Terminal setup

  1. Open a terminal and run:

    codex mcp add cato-oauth \
      --url https://api.catonetworks.com/mcp \
      --oauth-client-id mcp-openai
  2. Complete the Cato browser sign-in when prompted. If sign-in does not start automatically, run codex mcp login cato-oauth.

  3. Reload your client or start a new session, then verify the connection as described below.

Configuration file setup

  1. Alternatively, add the following configuration to ~/.codex/config.toml. Preserve any existing configuration and use a unique server name.

    [mcp_servers.cato-mcp]
    url = "https://api.catonetworks.com/mcp"
    oauth_resource = "https://api.catonetworks.com/mcp"
    
    [mcp_servers.cato-mcp.oauth]
    client_id = "mcp-openai"
  2. Save the file and run:

    codex mcp login cato-mcp
  3. Complete the browser sign-in and verification steps below.

The terminal example names the connection cato-oauth; the configuration file example names it cato-mcp. Choose one setup method and use its connection name when you run codex mcp login.

ChatGPT desktop

  1. Configure the local server using one of the OpenAI setup methods above.

  2. In the ChatGPT desktop app on the same host, open Settings > MCP servers and restart the connection if required.

  3. If the connection requires sign-in, select Authenticate and complete the Cato browser sign-in.

  4. Start a new local session and verify the connection as described below.

ChatGPT web

ChatGPT web uses a separate remote MCP connection. Cato support for this connection must be available in your release before you configure it.

Completing Sign-In and Verifying the Connection
  1. When your browser opens the Cato login page, sign in with your Cato Admin credentials.

  2. Review the consent screen and approve the requested access.

  3. Return to the MCP client and reload it or start a new session.

  4. Enter the following prompt to verify access:

    Use the Cato MCP tools to list the accounts I can access.

If authentication fails, verify that the COPILOT_MCP_OAUTH tag has been added to your account, that the URL is https://api.catonetworks.com/mcp, and that the correct client ID is configured.

Auditing Cato MCP Tool Calls

The Cato Remote MCP Server generates an event for each tool call. You can use these events to track how MCP clients access your account and which tools they invoke.

The event details include:

  • The MCP tool invoked and the connected MCP client.

  • The authentication method: API key or OAuth.

  • For API key authentication, the API key name.

  • For OAuth authentication, the Cato Admin's name and email address.

  • The source IP address, country, and country code.

  • The user agent.

To review Cato MCP tool call events:

  1. In the CMA, open the Events page.

  2. Filter by Type Connectivity and Sub-Type CatoMCP.

  3. Expand an event to review the tool call details and authentication identity.

Known Limitations

  • MCP clients that support only local MCP connections (STDIO) can’t connect directly to the Cato Remote MCP endpoint. To use these clients, you must deploy a lightweight MCP proxy that bridges the local STDIO connection to the remote Cato MCP server.