Skip to content

MCP & coding agents

After the stack is healthy, the installer installs the DeepSQL MCP server globally:

Terminal window
npm install -g @deepsql/mcp@latest

As of v1.0.2, the installer then authorizes the CLI against the local instance using your admin email and password — no browser callback, no device code:

Terminal window
echo "$DEEPSQL_INITIAL_ADMIN_PASSWORD" | deepsql login \
--password \
--email "$DEEPSQL_INITIAL_ADMIN_EMAIL" \
--password-stdin \
--url "http://localhost:9085"

A long-lived MCP token is persisted to ~/.config/deepsql/auth.json. Subsequent deepsql mcp invocations (which your coding agents run under the hood) work without re-auth.

Then it prompts you to pick which coding agents to wire up:

Which coding agent(s) will you use DeepSQL with?
1) Claude Code
2) Codex
3) Cursor
a) All of the above
s) Skip
Enter choice(s) separated by spaces (e.g. 1 3):

For each agent you pick, it runs:

Terminal window
deepsql mcp config --install --for <agent> --force

That command writes the MCP server configuration into the right location for that agent. --force overwrites any existing DeepSQL MCP block (it leaves other servers untouched).

~/.claude.json — adds a deepsql entry under mcpServers. Claude Code picks it up on next launch.

If you don’t want any MCP wiring, just pick s (skip) at the prompt — or have npm missing from PATH (the installer skips MCP with a clear message in that case).