/install graphcare
GraphCare — Structural Database Health Scanner
The first structural antivirus for AI databases. Scans your schema topology for hidden problems — without ever touching your data.
Why
AI agents evolve schemas at speed. But nobody audits the structure. Over time:
- Foreign keys lose their indexes (JOINs slow to a crawl)
- Tables drift into isolation (orphaned, unreachable data)
- Primary keys go missing (replication breaks, ORMs fail)
- Nullable FKs create silent referential gaps
- Circular dependencies make inserts impossible
- Redundant indexes waste disk and slow writes
GraphCare catches all of this in one scan.
Zero-Trust by Design
GraphCare only queries metadata (information_schema, PRAGMA, pg_indexes). It is structurally impossible for it to read, leak, or mutate your row data.
- READ-ONLY: Zero writes, zero mutations
- NO ROW DATA: Only schema metadata is accessed
- STATELESS: Memory purged after every scan
Setup
GraphCare is an MCP server. Add it to your MCP client config:
{
"mcpServers": {
"graphcare": {
"command": "node",
"args": ["/path/to/graphcare/index.js"]
}
}
}
Or run via Docker:
docker build -t graphcare .
docker run -i graphcare
Or install from npm:
npm install -g graphcare-mcp
graphcare-mcp
Tools
audit_db_structure
Full structural scan. Pass a connection string, get a complete health report.
Parameters:
connection_string(required) — Database URI:postgresql://,mysql://,sqlite:///path/to/db, or justfile.db
Returns: JSON report with:
db_type— Database engine detectedtables[]— All tables foundfindings[]— Each structural issue with type, severity, table, and messagemetrics{}— Counts per finding type + computedhealth_score(0-100)
Example:
Use graphcare to audit my database at postgresql://localhost:5432/myapp
The agent calls audit_db_structure with the connection string and receives a structured JSON report.
explain_finding
Plain-language explanation of any finding type. Includes severity, impact, and recommended fix.
Parameters:
finding_type(required) — One of:orphaned_table,missing_fk_index,duplicate_index,nullable_fk,no_primary_key,circular_dependencycontext(optional) — Table or column name for specific advice
What GraphCare Detects
| Finding | Severity | Impact |
|---|---|---|
| Orphaned Tables | Warning | Structurally isolated dead weight |
| Missing FK Indexes | Critical | #1 cause of slow JOINs and DELETEs |
| No Primary Key | Critical | Breaks replication and ORMs |
| Nullable Foreign Keys | Warning | Hidden referential integrity gaps |
| Circular Dependencies | Warning | Makes clean inserts impossible |
| Duplicate Indexes | Info | Wasted disk, slower writes |
Supported Databases
- PostgreSQL — Full 6-finding detection via
information_schema+pg_indexes - MySQL — Full detection via
information_schema - SQLite — Full detection via
sqlite_master+PRAGMA
Security
This tool runs read-only queries against database metadata catalogs only. It never executes SELECT on user tables, never writes, and holds no state between invocations. Connection strings are received via MCP JSON-RPC over stdin — never exposed in process listings.
Built by Mind Protocol.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install graphcare - 安装完成后,直接呼叫该 Skill 的名称或使用
/graphcare触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
GraphCare — Structural Database Health Scanner 是什么?
Structural database health scanner. Audits schema topology for orphaned tables, missing indexes, nullable FKs, circular dependencies — without ever reading r... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 151 次。
如何安装 GraphCare — Structural Database Health Scanner?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install graphcare」即可一键安装,无需额外配置。
GraphCare — Structural Database Health Scanner 是免费的吗?
是的,GraphCare — Structural Database Health Scanner 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
GraphCare — Structural Database Health Scanner 支持哪些平台?
GraphCare — Structural Database Health Scanner 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 GraphCare — Structural Database Health Scanner?
由 NLR(@nlr-ai)开发并维护,当前版本 v1.0.0。