trackmcp
Back to directory
cortexapps

cortex-mcp

View on GitHub

The Cortex MCP Server

4 stars PythonServers & Infrastructure Updated Sep 26, 2025

Documentation

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

json
{
  "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:

bash
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

json
{
  "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`

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:

json
{
  "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

  • GitHub Issues: https://github.com/cortexapps/cortex-mcp/issues
  • Email: help@cortex.io

License

MIT License - see LICENSE file for details.

Frequently asked questions

What is cortex-mcp?

cortex-mcp is The Cortex MCP Server

How do I install cortex-mcp?

Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.

Is cortex-mcp open source?

Yes — it is hosted on GitHub at https://github.com/cortexapps/cortex-mcp and has 4 stars.

Related MCP tools

Run your own MCP server? See who uses it and what to fix.

Measure it with TrackMCP