SQL MCP Server
Governed SQL access for AI agents with policy enforcement, tenant isolation, cost controls, and PostgreSQL, MySQL, and OceanBase support.
Install SQL MCP Server
Run the project’s own setup commands, in order.
Setup steps from the project
SQL MCP Server installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com
docker compose -f examples/quickstart/compose.yaml up -d --waitgit clone https://github.com/nethinwei/sql-mcp-server.gitcd sql-mcp-servermake build
Overview
Use cases
- Govern agent access to production relational data
- Enforce row and field policies across tenants
- Limit query cost with budgets, timeouts, and result caps
- Audit controlled database operations
- Provide trusted operators with a restricted SQL escape hatch
Key features
- PostgreSQL, MySQL, and OceanBase support
- Entity and relational-algebra query interface
- RBAC, field ACLs, row policies, and masking
- EXPLAIN checks, limits, timeouts, and budgets
- Tenant isolation and fail-closed enforcement
- Permission-gated execute_sql escape hatch
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 MCP Server 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 MCP Server
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/sql-mcp-server)<a href="https://allmcps.com/mcp/sql-mcp-server"><img src="https://allmcps.com/api/badge/sql-mcp-server?style=directory" alt="SQL MCP Server on AllMCPs" /></a>