- You ask a question in Claude:
/db whats my ltv. The/dbskill picks a tool — the question is ambiguous, so it uses/plan. /plancalls the Plan Agent, which returns a plan and SQL. Planning relies on the index — a precomputed summary of your database./runexecutes SQL through the connection you configured at setup.
Components
- Claude Code plugin — a bundle of:
/dbskill — your entry point.- MCP server link — a
.mcp.jsonthat points your client at our MCP server.
- MCP server — hosted at
mcp.datafrey.ai. A thin wrapper over the DataFrey API that exposes/planand/run. Self-hostable. - CLI — the
datafreycommand. A thin wrapper over the DataFrey API that handles database connections, index management, and plugin install. - DataFrey API — our cloud backend:
- Management API — credentials, database connections, and indexing.
- Plan Agent — turns a natural-language question into a plan and SQL. Uses the index.
- Index — a summary of your schema. Built by
datafrey index, used by the Plan Agent. See Planning. - Query Runner — executes SQL against your database under read-only guardrails.
Lifecycles
CLI - Setup
The CLI covers auth, database credentials, and plugin install. Walkthrough: Quickstart.CLI - Index
datafrey index builds a server-side summary of your schema. Used by Planning.