Model Ledger

io.github.block由 GitHub 账号 block 发布v0.7.13更新于 Oct 27, 2026

Model inventory and governance: trace deployed models and their dependencies as an append-only log

发布方自己的服务:model.tools — Zero-Auth Agent Utilities

概览

AI 生成的概览

Model Ledger 的本地 MCP 服务器,让助手追踪已部署模型、其依赖关系图与变更历史。

可以做什么
  • 追踪跨平台的模型及其依赖,回答弃用某项后会影响哪些模型
  • 查看只追加的事件日志与快照,实现完整历史与时间点重建
  • 把发现的模型、启发式规则与 ETL 组织成由带类型端口节点构成的连通图
  • 对照 SR 11-7/SR 26-2、EU AI Act、NIST AI RMF 等合规配置进行校验
  • README 提到八个工具的代理接口,但清单未列出具体工具
适用场景
适用于模型分散部署在多个平台的组织,希望助手回答影响面问题(例如哪些模型使用某个特征),或回顾随时间发生的变化。
运行要求
作为本地 stdio 进程在桌面运行,从 PyPI 安装 model-ledger 并带 mcp 附加包,通过 uvx 或 model-ledger mcp 命令启动。提供演示模式;实际使用需配置后端(内存、SQLite、JSON、Snowflake 或远程 HTTP),使用连接器时还需平台凭据。
安装前请注意
连接器可读取 SQL、REST、GitHub 及内部平台,README 说明凭据放在内部包层中,需谨慎保管。账本以不可变事件记录变更,写入基本不可撤销。清单未声明任何认证或环境变量。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Model Ledger,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

model-ledger

git for models — know what models you have deployed, where they run, what they depend on, and what changed.

[CI] [License] [Python] [PyPI] [Downloads] [Docs]

📖 Documentation · Quickstart · Concepts · Governance


model-ledger is a model inventory for any organization with deployed models. It discovers models, heuristic rules, and ETL across your platforms, maps the dependency graph automatically, and records every change as an immutable event. Unlike registries tied to a single platform (MLflow, SageMaker, W&B), it spans all of them — as one connected graph — and it's built to be driven by AI agents through a native MCP server.

Benchmarked at production scale: full inventory reconstruction over a ledger of 28.8k models and 212k events runs in under a second (CHANGELOG, v0.7.4).

Install

bash
pip install model-ledger

The graph builds itself

Every model is a DataNode with typed input and output ports. When an output port name matches an input port name, connect() creates the dependency edge — no hand-wiring.

python
from model_ledger import Ledger, DataNode
ledger = Ledger()
ledger.add([    DataNode("segmentation", platform="etl",      outputs=["customer_segments"]),    DataNode("fraud_scorer", platform="ml",       inputs=["customer_segments"], outputs=["risk_scores"]),    DataNode("fraud_alerts", platform="alerting", inputs=["risk_scores"]),])ledger.connect()
ledger.trace("fraud_alerts")# ['segmentation', 'fraud_scorer', 'fraud_alerts']

Every mutation is recorded as an immutable Snapshot — an append-only event log that gives you full history and point-in-time reconstruction, because nothing is overwritten.

Talk to your inventory

The MCP server is a first-class surface — point Claude (or any MCP agent) at it:

bash
pip install "model-ledger[mcp]"claude mcp add model-ledger -- model-ledger mcp --demo

You: if we deprecate customer_features, what breaks?

Claude: 3 models consume it directly, 2 more transitively.

Documentation

Everything lives at block.github.io/model-ledger — and it can't drift, because the API reference is generated from source and every example runs in CI:

  • Quickstart — install to your first dependency trace in 60 seconds
  • Concepts — DataNode, Snapshot, and Composite, in three ideas
  • Agents (MCP) — the eight-tool agent surface, with a worked transcript
  • Connectors — discover from SQL, REST, GitHub, or your own platform
  • Backends — in-memory, SQLite, JSON, Snowflake, or remote HTTP
  • Governance — how the primitives map to SR 11‑7/SR 26‑2, the EU AI Act, and NIST AI RMF
  • API reference — generated from the source

Architecture

mermaid
flowchart LR    subgraph Sources        C1[SQL / REST / GitHub / Prefect<br/>connectors]    end    subgraph Core        L[Ledger<br/>append-only event log,<br/>point-in-time reconstruction]        G[Dependency graph]        V[Compliance profiles<br/>SR 11-7/SR 26-2 · EU AI Act · NIST AI RMF]    end    subgraph Surfaces        S1[Python SDK]        S2[CLI]        S3[REST API]        S4[MCP server · 8 tools]    end    B1[(in-memory · SQLite · JSON ·<br/>Snowflake · remote HTTP)]    C1 --> L    L --> G    L --> V    L --- B1    S1 --> L    S2 --> L    S3 --> L    S4 --> L

For organizations

The OSS core handles discovery, graph building, change tracking, storage, the agent protocol, and compliance validation — the SR 11‑7/SR 26‑2, EU AI Act Annex IV, and NIST AI RMF profiles ship in model_ledger.validate. Your internal package provides only the thin layer on top: connector configs, custom connectors for internal platforms, and credentials. Thin config, not reimplemented logic.

Contributing

See CONTRIBUTING.md. All commits require DCO sign-off.

Security

See SECURITY.md for how to report vulnerabilities privately.

License

Apache-2.0. See LICENSE.

Created and maintained by Vignesh Narayanaswamy at Block.

来源:README.md,提交 93be51a

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.7.13最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

其他 Model 集成