A practical guide to connecting Claude Code to a database through MCP, choosing safe query surfaces, and avoiding the mistakes that make database tools risky.