# vault-index MCP server

> Provides local hybrid keyword and vector search over markdown notes and code for long-term AI memory.

- Repository: https://github.com/GitGudatCodeing/claude-second-brain
- Page: https://hostedmcp.org/servers/gitgudatcodeing/claude-second-brain
- Transport: stdio
- Stars: 1
- License: MIT
- Latest version: 0.4.2

## Install

### Claude Code

```sh
claude mcp add claude-second-brain -- uvx vault-index
```

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

```json
{
  "mcpServers": {
    "claude-second-brain": {
      "command": "uvx",
      "args": [
        "vault-index"
      ]
    }
  }
}
```

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

```json
{
  "servers": {
    "claude-second-brain": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "vault-index"
      ]
    }
  }
}
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "claude-second-brain": {
      "command": "uvx",
      "args": [
        "vault-index"
      ]
    }
  }
}
```

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

```toml
[mcp_servers.claude-second-brain]
command = "uvx"
args = ["vault-index"]
```

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

```json
{
  "mcpServers": {
    "claude-second-brain": {
      "command": "uvx",
      "args": [
        "vault-index"
      ]
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `VAULT_INDEX_DB` | no | no | Path to the SQLite index file (default ~/.mcp-memory/vault-index.db) |
| `VAULT_MODEL_CACHE` | no | no | Embedding model cache folder (default ~/.mcp-memory/models) |
| `VAULT_RERANK` | no | no | Set to 0 to turn off the cross-encoder rerank of the top 10 results |

## FAQ

### Does this server require cloud services?

No, everything runs locally on your machine using a single SQLite file and small CPU models.
