# codedb MCP server

> Provides code intelligence for AI agents by mapping repositories through symbol definitions, callers, outlines, and dependency graphs.

- Repository: https://github.com/justrach/codedb
- Page: https://hostedmcp.org/servers/justrach/codedb
- Transport: stdio
- Stars: 1402
- License: BSD-3-Clause

## Install

### Claude Code

```sh
claude mcp add codedb -- npx -y codedeebee
```

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

```json
{
  "mcpServers": {
    "codedb": {
      "command": "npx",
      "args": [
        "-y",
        "codedeebee"
      ]
    }
  }
}
```

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

```json
{
  "servers": {
    "codedb": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "codedeebee"
      ]
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"codedb","type":"stdio","command":"npx","args":["-y","codedeebee"]}'
```

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

```json
{
  "mcpServers": {
    "codedb": {
      "command": "npx",
      "args": [
        "-y",
        "codedeebee"
      ]
    }
  }
}
```

### Codex

```sh
codex mcp add codedb -- npx -y codedeebee
```

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

```toml
[mcp_servers.codedb]
command = "npx"
args = ["-y", "codedeebee"]
```

### Gemini CLI

```sh
gemini mcp add -s user codedb npx -- -y codedeebee
```

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

```json
{
  "mcpServers": {
    "codedb": {
      "command": "npx",
      "args": [
        "-y",
        "codedeebee"
      ]
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `CODEDB_EMBEDDINGS_DIMENSIONS` | no | no |  |
| `CODEDB_EMBEDDINGS_MODEL` | no | no |  |
| `CODEDB_EMBEDDINGS_TIMEOUT_MS` | no | no |  |
| `CODEDB_EMBEDDINGS_TOKEN` | no | no |  |
| `CODEDB_EMBEDDINGS_URL` | no | no |  |
| `CODEDB_SEMANTIC_INDEX_CONCURRENCY` | no | no |  |

## Tools (22)

- `codedb_tree`
- `codedb_outline`
- `codedb_symbol`
- `codedb_search`
- `codedb_word`
- `codedb_callers`
- `codedb_explain`
- `codedb_callpath`
- `codedb_context`
- `codedb_hot`
- `codedb_deps`
- `codedb_read`
- `codedb_changes`
- `codedb_status`
- `codedb_snapshot`
- `codedb_projects`
- `codedb_index`
- `codedb_find`
- `codedb_glob`
- `codedb_ls`
- `codedb_list_dir`
- `codedb_query`

## FAQ

### Can codedb edit my code?

No, codedb is a context engine, not an editor, and has no edit capability. You should use your client's native tools to make edits.

### What programming languages are supported?

It supports Zig, C/C++, Python, TypeScript/JavaScript, Rust, Go, PHP, Ruby, HCL, R, Dart/Flutter, and OCaml.
