urjeetpatel/db-tools-mcp
MCP server that gives AI agents fast, read-only access to SQL Server and Snowflake schema metadata — tables, columns, foreign keys, and smart join path suggestions — via a local cache. No live queries needed for exploration.
Platform-specific configuration:
{
"mcpServers": {
"db-tools-mcp": {
"command": "npx",
"args": [
"-y",
"db-tools-mcp"
]
}
}
}Add the config above to .claude/settings.json under the mcpServers key.
MCP server that exposes SQL Server and Snowflake schema metadata to AI coding agents. It caches table/column/FK information locally and provides tools for searching schemas, finding join paths, and managing database connections — all without running live queries on every request.
uvxuvx --from "git+https://github.com/urjeetpatel/db-tools-mcp" db-tools-mcpOr install locally for development:
git clone https://github.com/urjeetpatel/db-tools-mcp.git
cd db-tools-mcp
uv sync
uv run db-tools-mcpClaude Desktop (claude_desktop_config.json):
{
"mcpServers": {
"db-tools": {
"command": "uvx",
"args": ["--from", "git+https://github.com/urjeetpatel/db-tools-mcp", "db-tools-mcp"]
}
}
}Claude Code (.mcp.json in your project root):
{
"mcpServers": {
"Db_Tools": {
"command": "uvx",
"args": ["--from", "git+https://github.com/urjeetpatel/db-tools-mcp", "db-tools-mcp"]
}
}
}Use the add_database tool through your MCP client:
add_database(
name="my_db",
db_type="sqlserver",
url="mssql+pyodbc:///?odbc_connect=DRIVER=ODBC Driver 17 for SQL Server;Server=myhost;Database=MyDB;Trusted_Connection=Yes;"
)Or copy the example config manually:
# Linux / macOS
mkdir -p ~/.config/db-tools
cp config.example.yaml ~/.config/db-tools/config.yaml
# Windows (PowerShell)
New-Item -ItemType Directory -Force -Path "$env:USERPROFILE\.config\db-tools"
Copy-Item config.example.yaml "$env:USERPROFILE\.config\db-tools\config.yaml"Then edit ~/.config/db-tools/config.yaml with your connection details.
refresh_metadata() # all sources
refresh_metadata(source="my_db") # one sourceOr from the command line:
uvx --from "git+https://github.com/urjeetpatel/db-tools-mcp" db-tools-rLoading reviews...