Skip to content

Claude Code CLI - Overview

The Claude Code CLI (db-connector.go) is a command-line tool that allows Claude Code to interact directly with Microsoft SQL Server databases without needing to configure Claude Desktop.

  • Direct access: Connects Claude Code with MSSQL without intermediaries
  • Security: Same security features as the MCP server
  • Simplicity: Simple commands for common operations
  • Environment variables: Uses the same environment variables as the MCP server

The CLI is ideal for:

  • Quick development and testing
  • Automated scripts
  • Database exploration
  • Administrative operations
  • Go 1.26 or higher
  • Configured environment variables (see Environment Variables)
  • Network access to SQL Server

The CLI source code is located at claude-code/db-connector.go in the project repository.