# CodeLedger MCP server

> Provides AI coding agents with task-relevant repository context and evidence-backed file bundles to improve accuracy and reduce token usage.

- Repository: https://github.com/codeledgerECF/codeledger
- Page: https://hostedmcp.org/servers/codeledgerecf/codeledger
- Transport: stdio
- Stars: 8
- Latest version: 0.10.82

## Install

### Claude Code

```sh
claude mcp add codeledger -- npx -y @codeledger/cli
```

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

```json
{
  "mcpServers": {
    "codeledger": {
      "command": "npx",
      "args": [
        "-y",
        "@codeledger/cli"
      ]
    }
  }
}
```

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

```json
{
  "servers": {
    "codeledger": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@codeledger/cli"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "codeledger": {
      "command": "npx",
      "args": [
        "-y",
        "@codeledger/cli"
      ]
    }
  }
}
```

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

```toml
[mcp_servers.codeledger]
command = "npx"
args = ["-y", "@codeledger/cli"]
```

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

```json
{
  "mcpServers": {
    "codeledger": {
      "command": "npx",
      "args": [
        "-y",
        "@codeledger/cli"
      ]
    }
  }
}
```

## FAQ

### Does CodeLedger send my source code to their servers?

No, runtime analysis is local by default and does not send your source code through CodeLedger telemetry by default.

### Which AI coding agents are compatible with CodeLedger?

It works with Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Aider, Windsurf, and other CLI or MCP-compatible agents.

### How does CodeLedger improve coding workflows?

It helps by selecting task-relevant files, which can lead to higher test pass rates, fewer iterations, and reduced token usage.

### Do I need an account to use the local CLI?

No account is required for the local CLI flow.
