Skip to main content

MCP (Model Context Protocol) server for Cortex API integration

Project description

Cortex MCP Overview

[!NOTE] Research Preview

Not seeing the results you expect? This is an early version of the Cortex MCP. Please send feedback and bug reports to Cortex Customer Engineering.

Cortex MCP is a Model Context Protocol server that provides access to the Cortex API. It uses relevant context from your workspace, ensuring awareness of your system's structure when answering your questions.

You can query information in natural language, powering faster decisions and efficient processes. For example:

  • Who is the right person to handle an incident with backend-server?
  • Show me the services that belong to the platform engineering team
  • We're having an incident with backend-server, give me a summary of information to help handle the incident

Requirements

Before getting started, you'll need:

  • MCP Client: Claude Desktop or other MCP-compatible client
  • Cortex Personal Access Token: Create a token in your Cortex workspace settings.

Installation

[!NOTE] Docker Required

Make sure Docker is installed and running on your system before proceeding with the installation.

Then configure your MCP client. We've tested this with Claude Desktop, and Cursor, but it should work with any MCP-compatible client.

If you are a self-managed Cortex customer, you must also set CORTEX_API_BASE_URL=https:// alongside the CORTEX_API_TOKEN variable. See the docs for an example configuration.

Claude Desktop

{
  "mcpServers": {
    "cortex": {
      "command": "docker",
      "args": [
        "run",
        "--rm",
        "-i",
        "--env",
        "CORTEX_API_TOKEN=YOUR_API_TOKEN_HERE",
        "ghcr.io/cortexapps/cortex-mcp:latest"
      ]
    }
  }
}

Claude Code

Use the following command to add Cortex MCP to Claude Code:

claude mcp add-json "cortex" '{
  "command": "docker",
  "args": [
    "run",
    "--rm",
    "-i",
    "--env",
    "CORTEX_API_TOKEN=YOUR_API_TOKEN_HERE",
    "ghcr.io/cortexapps/cortex-mcp:latest"
  ]
}'

If successful, you should see: "Added stdio MCP server cortex to local config"

Cursor

{
  "mcpServers": {
    "cortex": {
      "command": "docker",
      "args": [
        "run",
        "--rm",
        "-i",
        "--env",
        "CORTEX_API_TOKEN=YOUR_API_TOKEN_HERE",
        "ghcr.io/cortexapps/cortex-mcp:latest"
      ]
    }
  }
}

VSCode

VS Code MCP Servers Documentation

Sample .vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "cortex-key",
      "description": "Cortex API Key",
      "password": true
    }
  ],
  "servers": {
    "Cortex": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "--rm",
        "-i",
        "ghcr.io/cortexapps/cortex-mcp:latest"
      ],
      "env": {
        "CORTEX_API_TOKEN": "${input:cortex-key}"
      }
    }
  }
}

Warp

Under Settings > AI > Manage MCP Servers, you can configure your JSON config:

{
  "cortex": {
    "command": "docker",
    "args": [
      "run",
      "--rm",
      "-i",
      "--env",
      "CORTEX_API_TOKEN=YOUR_API_TOKEN_HERE",
      "ghcr.io/cortexapps/cortex-mcp:latest"
    ],
    "env": {},
    "start_on_launch": true
  }
}

Support

License

MIT License - see LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

iflow_mcp_cortex_mcp-0.0.0.tar.gz (13.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

iflow_mcp_cortex_mcp-0.0.0-py3-none-any.whl (12.4 kB view details)

Uploaded Python 3

File details

Details for the file iflow_mcp_cortex_mcp-0.0.0.tar.gz.

File metadata

  • Download URL: iflow_mcp_cortex_mcp-0.0.0.tar.gz
  • Upload date:
  • Size: 13.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.10 {"installer":{"name":"uv","version":"0.9.10"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for iflow_mcp_cortex_mcp-0.0.0.tar.gz
Algorithm Hash digest
SHA256 728dc282bb9a9e2a61963461fa4aa8f1d590b4bee084fc30f6e6ec544de83362
MD5 9a761bd5ed162c96869254426c579c53
BLAKE2b-256 93716a997ef5dccb3fe49e4643215127afeb88c5b537eae488407747d49e9e1e

See more details on using hashes here.

File details

Details for the file iflow_mcp_cortex_mcp-0.0.0-py3-none-any.whl.

File metadata

  • Download URL: iflow_mcp_cortex_mcp-0.0.0-py3-none-any.whl
  • Upload date:
  • Size: 12.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.10 {"installer":{"name":"uv","version":"0.9.10"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for iflow_mcp_cortex_mcp-0.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a23edcdaeed45ad9d94daf42cc40b4f8254c906b81b70d56ed169955150af4a1
MD5 aad9ce99396258687bf1eecba06eba8b
BLAKE2b-256 11beb8b7837de22fe789ccc520fe8f8751803bd7d7793a4499d4ee38bdbf9944

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page