CLI
- Stdio
- HTTP
For local database connections, use stdio transport:
The
-- separates Claude’s flags from DBHub’s arguments. Everything after -- is the DBHub command.Project Configuration
For project-specific database connections shared with your team, create.mcp.json in your project root.
- Stdio
- HTTP
.mcp.json
User Configuration
For personal configuration across all projects, add to your user scope:- MacOS/Linux
- Windows
Edit
~/.claude/settings.json and add to the mcpServers section.