opengauss-mcp
I open-sourced opengauss-mcp, an openGauss database tool server built on Spring AI MCP Server.
Why Build This
While experimenting with MCP tools, I noticed that giving a model a single “compose SQL and run it” entry point blurs two separate questions: whether the model actually read the schema first, and whether the account should be running that statement at all.
Splitting common openGauss operations into distinct MCP tools gives schema inspection, statistics queries, and SQL execution their own doors. You can see what the model inspected before it ran a query.
That idea became opengauss-mcp.
What It Does
Built on Spring AI MCP Server, opengauss-mcp connects to local development tools or desktop MCP clients over stdio:
- Schema Inspection: Read table columns and types before writing queries.
- Statistics Queries: Fetch database statistics for analysis and tuning.
- SQL Execution: Run queries for debugging and verification.
When wiring it up, give it a least-privilege database account rather than handing production write access to an agent.
Repository
The project is on GitHub—feel free to try it out or open an issue:
- GitHub Repository: Sanjeever/opengauss-mcp
