Skip to content
MCP server

Cortex

Local multi-client RAG server over the Model Context Protocol.

Runs locallyStatus and history
Install
Pricing
Open source
Runs
Locally
Version
2026.1021.3
Listing updated
4 days ago

About Cortex

Cortex is an open-source MCP server. It runs locally on your machine and is started by your AI client.

Install

Run in a terminal

claude mcp add cortex --env CORTEX_KB_PATH='<CORTEX_KB_PATH>' -- uvx cortex-local-rag

Add to claude_desktop_config.json

{
  "mcpServers": {
    "cortex": {
      "command": "uvx",
      "args": [
        "cortex-local-rag"
      ],
      "env": {
        "CORTEX_KB_PATH": "<CORTEX_KB_PATH>"
      }
    }
  }
}

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "cortex": {
      "command": "uvx",
      "args": [
        "cortex-local-rag"
      ],
      "env": {
        "CORTEX_KB_PATH": "<CORTEX_KB_PATH>"
      }
    }
  }
}

Add to .vscode/mcp.json

{
  "servers": {
    "cortex": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "cortex-local-rag"
      ],
      "env": {
        "CORTEX_KB_PATH": "<CORTEX_KB_PATH>"
      }
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "cortex": {
      "command": "uvx",
      "args": [
        "cortex-local-rag"
      ],
      "env": {
        "CORTEX_KB_PATH": "<CORTEX_KB_PATH>"
      }
    }
  }
}

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "cortex": {
      "command": "uvx",
      "args": [
        "cortex-local-rag"
      ],
      "env": {
        "CORTEX_KB_PATH": "<CORTEX_KB_PATH>"
      }
    }
  }
}

Configuration

  • CORTEX_KB_PATHAbsolute path to the local knowledge base Cortex indexes and serves.Required

Pricing

Open source

Cortex FAQ

Is Cortex free?

Yes. Cortex is open source, so you can use and self-host it for free.

How do I add Cortex to Claude Code?

Run this command in your terminal: claude mcp add cortex --env CORTEX_KB_PATH='<CORTEX_KB_PATH>' -- uvx cortex-local-rag