追記専用のログを使用してデプロイされたモデルとその依存関係を追跡し、AIエージェント向けに接続された依存関係グラフを提供します。
別名 block/model-ledger, model-ledger
- スター
- 17
- ツール
- —
- ダウンロード数(30日間)
- 1,119
- 最新バージョン
- 0.7.13
- 最終コミット
- 2026年9月17日
- ライセンス
- Apache-2.0
Model Ledger MCPとは
Model LedgerはMCPサーバーです。 追記専用のログを使用してデプロイされたモデルとその依存関係を追跡し、AIエージェント向けに接続された依存関係グラフを提供します。.
プロジェクトのREADMEから生成された概要
Model Ledger MCP server について
Model Ledgerは、組織がデプロイされたモデルとその相互依存関係を追跡するための、中央集権的なインベントリとして機能します。すべての変更を不変のスナップショットとして記録する追記専用のイベントログとして動作するため、完全な履歴の保持と特定の時点における状態の再構築が可能です。MLflowやSageMakerのようなプラットフォーム固有のレジストリとは異なり、このツールはモデル、ヒューリスティックルール、およびETLプロセスを検出することで、複数のプラットフォームにまたがる単一の接続されたグラフを作成します。
開発者は、AIエージェント向けに設計されたネイティブなMCP serverを通じて、このインベントリを操作できます。mcp extraを付けてパッケージをインストールすることで、Claudeなどのクライアントを8つのツールを備えたエージェントインターフェースに接続できます。システムはSQLite、Snowflake、JSON、リモートHTTPなどのさまざまなバックエンドをサポートしています。型定義された入出力ポートを持つDataNodesを使用し、connectメソッドを通じて依存関係のエッジを自動的に構築するため、手動での設定なしにグラフを最新の状態に保つことができます。
できること
- 1廃止による影響の分析特定の機能が削除された場合に、どのモデルが動作しなくなるかをAIエージェントに特定させます。
- 2モデルの依存関係の追跡特定のモデルの完全なリネージ(系統)をリクエストし、アップストリームおよびダウンストリームの接続を確認します。
- 3履歴状態の再構築不変のイベントログを使用して、特定の時点におけるモデルインベントリの状態を表示します。
- 4依存関係マッピングの自動化入力ポート名と出力ポート名を一致させることで、モデル同士を自動的にリンクします。
プロジェクトの README から作成されています。すべてのユースケースは、その引用と照らし合わせて確認されています。
Model Ledger MCPのインストール方法
フォーマット検証日 2026年11月10日Claude CodeにModel Ledger MCPをインストール
$ claude mcp add model-ledger -- uvx model-ledgerCursorにModel Ledger MCPをインストール
~/.cursor/mcp.json
{
"mcpServers": {
"model-ledger": {
"command": "uvx",
"args": [
"model-ledger"
]
}
}
}VS CodeにModel Ledger MCPをインストール
.vscode/mcp.json
{
"servers": {
"model-ledger": {
"type": "stdio",
"command": "uvx",
"args": [
"model-ledger"
]
}
}
}Claude DesktopにModel Ledger MCPをインストール
claude_desktop_config.json
{
"mcpServers": {
"model-ledger": {
"command": "uvx",
"args": [
"model-ledger"
]
}
}
}CodexにModel Ledger MCPをインストール
~/.codex/config.toml
[mcp_servers.model-ledger] command = "uvx" args = ["model-ledger"]
Gemini CLIにModel Ledger MCPをインストール
~/.gemini/settings.json
{
"mcpServers": {
"model-ledger": {
"command": "uvx",
"args": [
"model-ledger"
]
}
}
}自動チェック
実行日 2026年11月14日詳細レポート →自動チェックに合格しました。これはセキュリティ監査ではありません。コードを読み、サーバーに必要最小限のアクセス権を与えてください。 チェックの仕組み
- ソースリポジトリがリンクされており、アクセス可能block/model-ledger is public and reachablegithub.com/block/model-ledger ↗合格
- パッケージがこのリポジトリをソースとして示しているmodel-ledger names block/model-ledger as sourcepypi.org/project/model-ledger/ ↗合格
- ビルドの来歴(Sigstore 証明)Sigstore attestation for model-ledgerpypi.org/project/model-ledger/ ↗合格
- オープンソースライセンス (OSI)Apache-2.0spdx.org/licenses/Apache-2.0.html ↗合格
- 過去1年以内にコミットまたはリリースありLast commit or release 2026-09-17github.com/block/model-ledger ↗合格
- OpenSSF Scorecard未チェック
- パッケージ名が有名なパッケージに酷似していないNo popular package one edit away from model-ledger合格
- パッケージと依存関係に重大なアドバイザリがない12 resolved dependencies checked; no critical advisoryosv.dev ↗合格
- モデルへの隠れた指示がない0 tool descriptions and the README read; no override phrases, credential paths or hidden characters合格
- 破壊的なツールがラベル付けされている未チェック
- リモート endpoint が MCP ハンドシェイクに応答する未チェック
README
GitHubで見るmodel-ledger
git for models — know what models you have deployed, where they run, what they depend on, and what changed.
📖 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
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.
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:
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
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.
Model Ledger MCPのよくある質問
Model Ledger MCPをClaude Codeに追加するには
ターミナルでclaude mcp add model-ledger -- uvx model-ledgerを実行します。すべてのプロジェクトで利用するには--scope userを追加します。
Model Ledger MCPをCursorに追加するには
~/.cursor/mcp.jsonを開き、上記のインストールセクションに示すCursor設定を使ってmcpServersの下にサーバーを追加します。
Model LedgerはMLflowやSageMakerと何が違うのですか?
単一のプラットフォームに紐付いたレジストリとは異なり、Model Ledgerはすべてのプラットフォームをまたいで一つの接続されたグラフとして機能します。
依存関係グラフはどのように機能しますか?
出力ポート名と入力ポート名が一致するとグラフが自動的に構築されるため、手動での接続作業は不要です。
Claudeで使用できますか?
はい、MCP serverを使用することで、Claudeやその他のMCPエージェントからモデルのインベントリを参照できます。