# Model Ledger

Model Ledger maps deployed models, their dependencies, and changes over time. Its MCP server lets an AI agent query that inventory.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 17
- Author: block
- License: Apache-2.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/block/model-ledger
- Updated: 2026-09-17
- HTML: https://affpapa.org/en/nevibecode/mcp/model-ledger

## What it does

Model Ledger discovers models, heuristics, and ETL across connected platforms, then builds a dependency graph from matching `DataNode` input and output ports. Each mutation becomes an immutable event, so the ledger can reconstruct its state at a chosen point in time.

The package exposes a Python SDK, CLI, REST API, and an MCP server with eight tools. Storage options include in-memory data, SQLite, JSON, Snowflake, and remote HTTP. The MCP setup uses `uvx` to launch `model-ledger`; the README also provides the `model-ledger[mcp]` package extra for this mode.

## Requirements
- Needs: Python and uv (commands run via uvx)

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add model-ledger -- uvx model-ledger
```
uvx runs the command named after the package; if the README names another one, use uvx --from model-ledger <command>

### Codex

**Platform CLI**
```bash
codex mcp add model-ledger -- uvx model-ledger
```
uvx runs the command named after the package; if the README names another one, use uvx --from model-ledger <command>

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "model-ledger": {
            "command": "uvx",
            "args": [
                "model-ledger"
            ]
        }
    }
}
```
uvx runs the command named after the package; if the README names another one, use uvx --from model-ledger <command>

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "model-ledger": {
            "type": "stdio",
            "command": "uvx",
            "args": [
                "model-ledger"
            ]
        }
    }
}
```
uvx runs the command named after the package; if the README names another one, use uvx --from model-ledger <command>

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add model-ledger uvx model-ledger
```
uvx runs the command named after the package; if the README names another one, use uvx --from model-ledger <command>

## When to use it
- inventory deployed models
- trace direct and transitive dependencies
- reconstruct the ledger at a past point
- record model changes as events
- validate models against governance profiles

## Example prompts
- Show every model that depends on `customer_features`.
- Trace the dependency path leading to `fraud_alerts`.
- Review the model inventory and list its latest changes.

## Similar
- [REA](https://affpapa.org/en/nevibecode/mcp/rea.md) — MCP server · ★ 386989
- [GitHub](https://affpapa.org/en/nevibecode/mcp/github.md) — MCP server · ★ 33918
- [Netdata](https://affpapa.org/en/nevibecode/mcp/netdata.md) — MCP server · ★ 81115
- [browser-use](https://affpapa.org/en/nevibecode/mcp/browser-use.md) — MCP server · ★ 119160
- [Codebase Memory](https://affpapa.org/en/nevibecode/mcp/codebase-memory.md) — MCP server · ★ 47392
- [mcp-server](https://affpapa.org/en/nevibecode/mcp/mcp-server.md) — MCP server · ★ 43872

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
