mcp-database-server MCP Server

Production-grade Model Context Protocol (MCP) server for unified SQL database access. Connect multiple databases through a single MCP server with schema discovery, relationship mapping, caching, and safety controls.

Local serverstdioMIT

What is the mcp-database-server MCP Server?

mcp-database-server source profile. From the maintainer documentation: “Production-grade Model Context Protocol (MCP) server for unified SQL database access. Connect multiple databases through a single MCP server with schema discovery, relationship mapping, caching, and safety controls.”

Local setup

The project provides a local client configuration using mcp-database-server. Follow the repository’s build and installation steps before copying it, and replace example paths with the paths on your own computer.

Source

Project documentation · Repository · Discovery listing. This profile records the public documentation checked on 2026-10-08.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
list_databasesList all configured databases with status
introspect_schemaDiscover and cache database schema
get_schemaRetrieve cached schema metadata
run_queryExecute SQL queries with safety controls
export_queryExport large read-only query results to a local file
explain_queryAnalyze query execution plans
suggest_joinsGet intelligent join path recommendations
clear_cacheClear schema cache and statistics
cache_statusView cache health and statistics
health_checkTest database connectivity
analyze_performanceGet detailed performance analytics
suggest_indexesAnalyze queries and recommend indexes
detect_slow_queriesIdentify and alert on slow queries
rewrite_querySuggest optimized query versions
profile_queryProfile query performance with bottlenecks

How to install the mcp-database-server MCP Server

{
  "mcpServers": {
    "database": {
      "command": "mcp-database-server",
      "args": [
        "--config",
        "/absolute/path/to/.mcp-database-server.config"
      ]
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.