loaditout.ai
SkillsPacksTrendingLeaderboardAPI DocsBlogSubmitRequestsCompareAgentsXPrivacyDisclaimer
{}loaditout.ai
Skills & MCPPacksBlog

db-tools-mcp

MCP Tool

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.

Install

$ npx loaditout add urjeetpatel/db-tools-mcp

Platform-specific configuration:

.claude/settings.json
{
  "mcpServers": {
    "db-tools-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "db-tools-mcp"
      ]
    }
  }
}

Add the config above to .claude/settings.json under the mcpServers key.

About

db-tools-mcp

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.

Quick start
1. Install and run with uvx
uvx --from "git+https://github.com/urjeetpatel/db-tools-mcp" db-tools-mcp

Or install locally for development:

git clone https://github.com/urjeetpatel/db-tools-mcp.git
cd db-tools-mcp
uv sync
uv run db-tools-mcp
2. Register with your MCP client

Claude 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"]
    }
  }
}
3. Add your first database

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.

4. Populate the cache
refresh_metadata()          # all sources
refresh_metadata(source="my_db")  # one source

Or from the command line:

uvx --from "git+https://github.com/urjeetpatel/db-tools-mcp" db-tools-r

Tags

ai-toolsclaudedatabasedatabase-toolsfastmcpllm-toolsmcpmcp-servermodel-context-protocolsnowflakesql-server

Reviews

Loading reviews...

Quality Signals

0
Installs
Last updated18 days ago
Security: AREADME

Safety

Risk Levelmedium
Data Access
readwrite
Network Accessnone

Details

Sourcegithub-crawl
Last commit3/30/2026
View on GitHub→

Embed Badge

[![Loaditout](https://loaditout.ai/api/badge/urjeetpatel/db-tools-mcp)](https://loaditout.ai/skills/urjeetpatel/db-tools-mcp)