结构化数据库健康扫描器。审计模式拓扑以检测孤立表、缺失索引、可空外键、循环依赖等问题——无需读取实际数据。
The first structural antivirus for AI databases. Scans your schema topology for hidden problems — without ever touching your data.
AI agents evolve schemas at speed. But nobody audits the structure. Over time:
GraphCare catches all of this in one scan.
GraphCare only queries metadata ( information_schema, PRAGMA, pg_indexes). It is structurally impossible for it to read, leak, or mutate your row data.
GraphCare is an MCP server. Add it to your MCP client config:
json
{
"mcpServers": {
"graphcare": {
"command": "node",
"args": ["/path/to/graphcare/index.js"]
}
}
}
Or run via Docker:
bash
docker build -t graphcare .
docker run -i graphcare
Or install from npm:
bash
npm install -g graphcare-mcp
graphcare-mcp
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 just file.dbReturns: JSON report with:
db_type — Database engine detectedtables[] — All tables foundfindings[] — Each structural issue with type, severity, table, and messagemetrics{} — Counts per finding type + computed health_score (0-100)Example:
text
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 adviceFindingSeverityImpactOrphaned TablesWarningStructurally isolated dead weightMissing FK IndexesCritical#1 cause of slow JOINs and DELETEsNo Primary KeyCriticalBreaks replication and ORMsNullable Foreign KeysWarningHidden referential integrity gapsCircular DependenciesWarningMakes clean inserts impossibleDuplicate IndexesInfoWasted disk, slower writes
information_schema + pg_indexesinformation_schemasqlite_master + PRAGMAThis 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.