Home / MCP servers / Data & databases / sql-query-mcp

sql-query-mcp

sql-query-mcp is a MCP server by andyWang1688 that work with PostgreSQL and MySQL within clear boundaries: schema discovery, sampling, read-only queries and query-plan inspection.

Updated 2026-06-26

What is sql-query-mcp?

sql-query-mcp is a MCP server by andyWang1688 that work with PostgreSQL and MySQL within clear boundaries: schema discovery, sampling, read-only queries and query-plan inspection. It is listed under Data & databases and has 7 GitHub stars.

TypeMcp server
AuthorandyWang1688
RepositoryandyWang1688/sql-query-mcp
Popularity7 GitHub stars
CategoryData & databases
SecurityLow risk (84/100)
Rank#1,939 of 4,418 MCP servers; #140 in Data & databases
LicenseMIT
Last commit2026-06-26
RunsLocally
LanguagePython

Is sql-query-mcp safe to install?

sql-query-mcp scores 84/100 on the MCPMods security check: Low risk. Things to review: can take actions such as send, write or deploy. It passed 4 of 6 checks.

MCP server results come from listing signals: who publishes it, where your data goes and what it can do. The code itself is not scanned yet.

CheckResult
Community-built serverNote
Runs on your machine onlyPass
No credentials mentionedPass
Can take actions such as send, write or deployReview
No code executionPass
Source on GitHubPass

How do I install sql-query-mcp?

  1. Find the launch command. The README says how the server starts (npx, uvx, docker or a remote URL) and which API keys it needs.
    https://github.com/andyWang1688/sql-query-mcp
  2. Add it to Claude Code. Replace the part after -- with the command from the README. Remote servers use --transport http with a URL.
    claude mcp add sql-query-mcp -- <command from README>
    claude mcp add --transport http sql-query-mcp <server-url>
  3. Check it connected. This lists your MCP servers and their status.
    claude mcp list

Or ask Claude to set it up

Paste this into Claude Code and it installs sql-query-mcp for you:

Add the "sql-query-mcp" MCP server from https://github.com/andyWang1688/sql-query-mcp to Claude Code. Read its README for the launch command and any API keys I need, run claude mcp add, then check that it connects.