Development
Requirements
Section titled “Requirements”- Go 1.26.0 or later
- Microsoft SQL Server (local or remote)
- Git
Initial setup
Section titled “Initial setup”git clone https://github.com/scopweb/mcp-go-mssql.gitcd mcp-go-mssqlgo mod tidyEnvironment variables
Section titled “Environment variables”cp .env.example .env# Edit .env with development credentialssource .envExample for local development:
MSSQL_SERVER=localhostMSSQL_DATABASE=DevDBMSSQL_USER=saMSSQL_PASSWORD=DevPassword123DEVELOPER_MODE=trueMSSQL_READ_ONLY=falseRun in development mode
Section titled “Run in development mode”go run main.goIn development mode (DEVELOPER_MODE=true):
- Self-signed TLS certificates are allowed
- Errors show full technical details
- Encryption is still mandatory
Test the connection
Section titled “Test the connection”cd testgo run test-connection.goClaude Code CLI
Section titled “Claude Code CLI”go run claude-code/db-connector.go testgo run claude-code/db-connector.go tablesgo run claude-code/db-connector.go query "SELECT @@VERSION"go build