drio
Open app

MCP SQL

Source

MCP server to give client the ability to access SQL databases (MySQL and PostgreSQL supported)

Catalog onlyCatalog onlySTDIO

Overview

MCP SQL is a server that enables clients to access SQL databases, specifically MySQL and PostgreSQL.

To use MCP SQL, you need to add a specific configuration to your MCP config file, which allows the server to run and access the databases.

  • Supports both MySQL and PostgreSQL databases. - Easy configuration through MCP config file. - Allows seamless access to SQL databases for clients.
  1. Accessing and managing MySQL databases from a client application.
  2. Connecting to PostgreSQL databases for data retrieval and manipulation.
  3. Integrating SQL database access into various applications using MCP.

Add to your AI client

Use these steps to connect MCP SQL in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "mcp-sql-algonacci": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-sql-algonacci"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "mcp-sql-algonacci": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-sql-algonacci"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "mcp-sql-algonacci": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-sql-algonacci"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "mcp-sql-algonacci": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-sql-algonacci"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "mcp-sql-algonacci": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-sql-algonacci"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "mcp-sql-algonacci": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-sql-algonacci"
      ]
    }
  }
}

FAQ

What databases does MCP SQL support?

MCP SQL supports both MySQL and PostgreSQL databases.

How do I configure MCP SQL?

You need to add a specific JSON configuration to your MCP config file as outlined in the usage section.

Is MCP SQL open source?

Yes! MCP SQL is available on GitHub for anyone to use and contribute.

MCP SQL — MCP Registry