MCP server exposing comfy-vault's ComfyUI model tools to Claude and Codex.
Project description
comfy-vault-mcp
An MCP server that exposes comfy-vault to coding agents, so you can ask Claude or Codex to audit and clean up your ComfyUI model library in plain language.
It wraps the comfy-vault library (PyPI package comfy-model-vault, a real
dependency — not vendored) as five tools. The agent calls them; comfy-vault does
the work.
Tools
| Tool | What it does |
|---|---|
vault_scan |
Index a models directory recursively; counts, sizes, categories. |
vault_orphans |
List models no workflow references (read-only). |
vault_lora_info |
Look up Civitai metadata for a file by its content hash. |
vault_duplicates |
Find byte-identical duplicate models (same SHA256). |
vault_delete |
Delete orphans — dry-run unless confirm=true, fenced to the scanned roots. |
Install
pip install comfy-vault-mcp
This installs comfy-model-vault (the comfy-vault library) as a dependency.
Python 3.10+.
Use with Claude Code
claude mcp add comfy-vault -- comfy-vault-mcp
or add it to .mcp.json in your project:
{
"mcpServers": {
"comfy-vault": {
"command": "comfy-vault-mcp"
}
}
}
Use with Codex CLI
Add to ~/.codex/config.toml:
[mcp_servers.comfy-vault]
command = "comfy-vault-mcp"
Example
Once connected, ask in natural language:
"Find all unused Pony LoRAs over 2 GB in
D:\ComfyUI\models, check which of them still exist on Civitai, and show me the duplicates — but don't delete anything yet."
The agent will call vault_orphans, vault_lora_info, and vault_duplicates,
then summarise. vault_delete stays a dry-run until you explicitly confirm.
Offline / testing mode
Set COMFY_VAULT_CIVITAI_FIXTURES to a directory of recorded {sha256}.json
Civitai responses, and vault_lora_info resolves from those instead of the live
API — no network, no key. This is how the test suite runs. For live use, an
optional CIVITAI_API_KEY raises your rate limit but is not required.
License
MIT. Same license as comfy-vault, for consistency across the toolkit.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file comfy_vault_mcp-0.1.1.tar.gz.
File metadata
- Download URL: comfy_vault_mcp-0.1.1.tar.gz
- Upload date:
- Size: 12.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7159250c2bc4ddc3ccb5241a36ffb55884b450c38761fca985a31bf9f404ccb1
|
|
| MD5 |
7570be4c9aa685184fbbd5697bd73ee1
|
|
| BLAKE2b-256 |
edbeed30e6daab1c7d4f18207007bbe1276f2afd2c4548e3cfed620d927da327
|
File details
Details for the file comfy_vault_mcp-0.1.1-py3-none-any.whl.
File metadata
- Download URL: comfy_vault_mcp-0.1.1-py3-none-any.whl
- Upload date:
- Size: 8.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fd5b2b4dcfc3d34f2102eae2cbabc3effa46f99d1219b700888e79baa3be717b
|
|
| MD5 |
c650f4b8fc1b487e019452b3cbeb2df8
|
|
| BLAKE2b-256 |
ab5979ba83f017abe9345285d0406d11556707b6ec9463333ca4d4974e2d1bf7
|