Run in Cline terminal:
npx -y mcp-db-analyzer| Env var | Default | Description |
|---|---|---|
DATABASE_URL |
(required) | Connection string — postgresql://user:pass@host/db, mysql://..., or sqlite:///path/to/db.sqlite |
Add to your MCP client config:
{
"mcpServers": {
"db-analyzer": {
"command": "npx",
"args": ["-y", "mcp-db-analyzer"],
"env": {
"DATABASE_URL": "postgresql://user:password@localhost:5432/mydb"
}
}
}
}The server is read-only — it does not execute writes or schema changes.