Install the Cortex MCP server
Install the Cortex MCP server to connect AI clients with Cortex Cloud capabilities.
With the Cortex MCP Server, you can use natural language in your MCP client to investigate and manage cases and issues. The MCP Server can be run within a Docker container or a Poetry virtual environment. .
This documentation contains instructions for configuring and using the Cortex MCP server. More detailed setup instructions are provided in a README file included in the download.
These instructions use Claude Desktop, but you can use any client that supports MCP.
Download the Cortex MCP server
Go to Settings → Configurations → Integrations → Cortex MCP Server.
Download MCP File
(Optional) Download the checksum file and run a command such as
shasum(Linux/macOS) orcertutil(Windows) to verify the integrity and authenticity of the file. For example:shasum -a 256 -c cortex-checksum.zip.sha256.Extract the .zip file.
From the Cortex MCP Server page in Cortex Cloud, click the link to open the page to create a new API key.
Create an API key
Either click the link from the Cortex MCP Server page or navigate to Settings → Configurations → Integrations → API Keys → New Key.
In the Role tab, do the following:
Under Security Level, select Standard.
Under Role, select the desired level of access for this key. You can select from predefined roles or custom roles. Roles are available according to what was defined in either the Cortex Gateway or the tenant's Access Management. You can view the configuration of the role selected by expanding the sections under Components.
It is critical to avoid assigning excessive permissions when creating an API key for the Cortex MCP Server. Since the key has both read and write capabilities, overly broad permissions can lead to unintended actions and potentially compromise your environment. Ensure the key follows the principle of least privilege and is granted only the minimum required access.
(Optional) Under Comment, provide a comment that describes the purpose of the API key.
(Optional) If you want to define a time limit on the API key authentication, select Enable Expiration Date, and select the expiration date and time. You can track the expiration date of each API key in the API Keys page. In addition, an API Key Expiration notification appears in the Notification Center one week and one day before the defined expiration date.
(Optional) If Scope-Based Access Control (SBAC) is enabled for the tenant, click Scope, and under Scope Definition, select the scope areas that you want to limit the user role to access for this API.
Click Generate to generate the API key.
Copy the generated API key and click Done.
To configure the Cortex MCP Server, you need the Cortex API URL, Cortex API key, and Cortex API key ID. You will not be able to view the API key again after you complete this step. Ensure that you copy the API key before closing the notification.
Install and run the Cortex MCP Server
In the extracted files, follow the detailed instructions in the README.md file located in the top directory. Instructions are provided for both Docker and Poetry and include the following:
Docker
Create an .env file with the environment variables.
Build and run the Docker container.
Run the Docker container:
docker run --env-file .env -it cortex-mcp.
Poetry
Install Poetry.
Create and activate a virtual environment.
Install project dependencies.
Provide the required variables in the Python runtime environment.
Start the server:
python src/main.py.
Use the CLI
From the CLI, you can run three commands.
start: Start the Cortex MCP server. Relevant only for the Poetry virtual environment.update: Any new or updated components provided by Cortex are automatically downloaded into the builtin_components folder. During each update, the folder is fully replaced and all existing contents are recreated. Do not add custom tools to this directory, as it is managed entirely by Cortex and is overwritten at every update.version: Display the current version of the Cortex MCP Server.
Additional information about the CLI is available in the README file located in the src directory.
Last updated
Was this helpful?
