MCP Directory

MCP Server for MySQL vs Postgres MCP Pro

A side-by-side comparison of two Databases servers — tools, transport, auth, maintenance, and copy-paste config for each.

 MCP Server for MySQL

Read-only (optionally write) access to MySQL databases for LLMs — inspect schemas and run SQL queries.

Unverified
stdio (local)
No auth
JavaScript
Postgres MCP Pro

Read/write Postgres access plus index tuning, EXPLAIN plans, and database health analysis for AI agents.

Verified
stdio (local)
API key
Python
CategoryDatabasesDatabases
LanguageJavaScriptPython
Transportstdio (local)stdio (local)
AuthNoneAPI key
GitHub stars1.8k2.9k
Last commit3 months ago3 months ago
Verified
Actively maintained
Installnpm install -g @benborla29/mcp-server-mysqluvx postgres-mcp --access-mode=restricted
RepoOpen Open

Verdict

Pick MCP Server for MySQL if you want zero-setup with no API key.

Pick Postgres MCP Pro if you prefer the more popular, battle-tested option, and you need the broadest set of tools.

Add MCP Server for MySQL

Install / run
npm install -g @benborla29/mcp-server-mysql

Paste into ~/Library/Application Support/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "mcp-server-for-mysql": {
      "command": "/path/to/npx/binary/npx",
      "args": [
        "-y",
        "@benborla29/mcp-server-mysql"
      ],
      "env": {
        "MYSQL_HOST": "127.0.0.1",
        "MYSQL_PORT": "3306",
        "MYSQL_USER": "root",
        "MYSQL_PASS": "",
        "MYSQL_DB": "db_name",
        "PATH": "/path/to/node/bin:/usr/bin:/bin",
        "ALLOW_INSERT_OPERATION": "false",
        "ALLOW_UPDATE_OPERATION": "false",
        "ALLOW_DELETE_OPERATION": "false"
      }
    }
  }
}

Add Postgres MCP Pro

Install / run
uvx postgres-mcp --access-mode=restricted

Paste into ~/Library/Application Support/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "postgres-mcp-pro": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "DATABASE_URI",
        "crystaldba/postgres-mcp",
        "--access-mode=restricted"
      ],
      "env": {
        "DATABASE_URI": "postgresql://<user>:<password>@<host>:5432/<dbname>"
      }
    }
  }
}

Requires Docker to be installed and running.

FAQ

MCP Server for MySQL or Postgres MCP Pro — which is better?

Pick MCP Server for MySQL if you want zero-setup with no API key. Pick Postgres MCP Pro if you prefer the more popular, battle-tested option, and you need the broadest set of tools.

Can I use both MCP Server for MySQL and Postgres MCP Pro?

Yes — MCP clients let you enable multiple servers at once. Add both configs to your client's mcpServers and use whichever tool fits the task.

Do MCP Server for MySQL and Postgres MCP Pro work with Claude, Cursor and Windsurf?

Both do. Copy the per-client config below into Claude Desktop, Cursor, or Windsurf.