SQL Query MCP
by andyWang1688
Connects AI clients to PostgreSQL, MySQL, and Hive for schema discovery, bounded read-only SQL, query plans, and controlled file exchange.
Install SQL Query MCP
Pick your client, then add it in one click or paste the config.
~/Library/Application Support/Claude/claude_desktop_config.json{
"mcpServers": {
"andywang1688-sql-query-mcp": {
"command": "pipx",
"args": [
"run",
"sql-query-mcp",
"sql-query-mcp"
],
"env": {
"SQL_QUERY_MCP_CONFIG": "YOUR_VALUE_HERE"
}
}
}
}
Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.
Values are written into the snippet above so you can paste it as is. They never leave your browser.
We couldn’t confirm it starts correctly
The install command didn't complete successfully in our automated test.
pipx run sql-query-mcp sql-query-mcpProcess exited before answering initialize.
This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .
Overview
Use cases
- Inspect database schemas before generating SQL
- Run bounded read-only queries against configured databases
- Review query plans for PostgreSQL, MySQL, or Hive
- Export PostgreSQL or MySQL results to CSV or XLSX
- Import prepared CSV/XLSX files into existing tables
Key features
- PostgreSQL, MySQL, and Hive support
- Schema, database, table, and sample discovery
- Validated read-only SQL execution
- Asynchronous query status, pagination, and cancellation
- Query-plan inspection
- Controlled CSV/XLSX export and import
Security & health
What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.
Recent health check succeeded.
Adoption & maintenance
Factual signals from GitHub, npm, and our automated checks — not a rating.
How SQL Query MCP works
Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings
Reviews
No reviews yet — be the first to share how it worked for you.
Frequently Asked Questions about SQL Query MCP
Related MCP servers
Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.
AllMCPs Directory Badge
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/andywang1688-sql-query-mcp)<a href="https://allmcps.com/mcp/andywang1688-sql-query-mcp"><img src="https://allmcps.com/api/badge/andywang1688-sql-query-mcp?style=directory" alt="SQL Query MCP on AllMCPs" /></a>