# Cortex MCP server

> Provides a semantic memory infrastructure for AI agents to save decisions, context, and sources with quality-gated writes and conflict tracking.

- Repository: https://github.com/FilippoPilo/cortex-connector
- Page: https://hostedmcp.org/servers/filippopilo/cortex-connector
- Transport: remote
- Stars: 2
- License: MIT
- Latest version: 1.1.0

## Install

### Claude Code

```sh
claude mcp add --transport http cortex-connector https://skynetlab-cortex-saas-mcp.cortex-320.workers.dev/mcp
```

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

```json
{
  "mcpServers": {
    "cortex-connector": {
      "url": "https://skynetlab-cortex-saas-mcp.cortex-320.workers.dev/mcp"
    }
  }
}
```

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

```json
{
  "servers": {
    "cortex-connector": {
      "type": "http",
      "url": "https://skynetlab-cortex-saas-mcp.cortex-320.workers.dev/mcp"
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"cortex-connector","type":"http","url":"https://skynetlab-cortex-saas-mcp.cortex-320.workers.dev/mcp"}'
```

### Codex

```sh
codex mcp add cortex-connector --url https://skynetlab-cortex-saas-mcp.cortex-320.workers.dev/mcp
```

### Codex config.toml (`~/.codex/config.toml`)

```toml
[mcp_servers.cortex-connector]
url = "https://skynetlab-cortex-saas-mcp.cortex-320.workers.dev/mcp"
```

### Gemini CLI

```sh
gemini mcp add -s user --transport http cortex-connector https://skynetlab-cortex-saas-mcp.cortex-320.workers.dev/mcp
```

### Gemini settings.json (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "cortex-connector": {
      "url": "https://skynetlab-cortex-saas-mcp.cortex-320.workers.dev/mcp",
      "type": "http"
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `CORTEX_ACCESS_TOKEN` | no | no |  |

## FAQ

### How does Cortex ensure memory quality?

Cortex uses a quality gate on writes where every memory undergoes a novelty and redundancy check before being stored to prevent junk accumulation.

### Can Cortex detect contradictions in information?

Yes, the system uses typed claims and conflict tracking to detect and track contradictions between memories instead of silently overwriting them.

### Where is the data stored and how is privacy handled?

The infrastructure operates in the European Union and memories are personal, meaning each user only sees their own data.
