LocalFree

SQL Query MCP server

andyWang1688/sql-query-mcp

Work with PostgreSQL and MySQL within clear boundaries: schema discovery, sampling, read-only queries and query-plan inspection.

7 GitHub stars

Install SQL Query in Claude Code

This server doesn't publish a package to a registry, so follow the install steps in its README. Once it runs, register it with Claude Code:

Claude Code
claude mcp add sql-query -- <command to start the server>

Frequently asked questions

What does the SQL Query MCP server do?

Work with PostgreSQL and MySQL within clear boundaries: schema discovery, sampling, read-only queries and query-plan inspection.

Is the SQL Query MCP server free?

Yes, most likely. Open source and no paid account or API key is mentioned in the listing. Check the provider for current pricing.

Does SQL Query run locally or remotely?

Local. Runs on your machine (stdio). You install it with npx, uvx, Docker or from source.

How do I add SQL Query to Claude Code?

Follow the install steps in the project's README at https://github.com/andyWang1688/sql-query-mcp, then register it with "claude mcp add".

More databases MCP servers

View all