# Cortex

> Cortex is an open-source MCP server. Local multi-client RAG server over the Model Context Protocol. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Repository:** https://github.com/vblackjack/cortex
- **MCP Registry name:** io.github.VBlackJack/cortex
- **Listing updated:** 2026-11-13

## About

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

## Install

### Claude Code (Terminal)

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

### Claude Desktop (claude_desktop_config.json)

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

### Cursor (~/.cursor/mcp.json)

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

### VS Code (.vscode/mcp.json)

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

### Windsurf (~/.codeium/windsurf/mcp_config.json)

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

### Other clients (your client's MCP settings (most use this shape))

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

## 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

---
Source: https://ai-powered.com/mcp/cortex-3
