Token-efficient MCP server for MySQL, PostgreSQL, and SQLite
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Light strut. Extreme load.
Token-efficient MCP server for MySQL, PostgreSQL, and SQLite β written in Rust. Part of the StrutStack ecosystem; usable standalone with any agent client.
Formerly published as mcp-sql-rust (compat binary alias still ships in v1.0).
{cols,rows,meta}, row/byte capsInstalls to ~/.local/bin (also creates mcp-sql-rust alias). Ensure ~/.local/bin is on your PATH.
Other channels (Homebrew, Scoop, winget, Docker, cargo): docs/INSTALL.md.
Project .env:
Without credentials the server still starts (ephemeral sqlite::memory:) so MCP initialize succeeds; set DATABASE_URL for real queries.
Official workspace launcher (loads nested apps/api/.env, never blocks start on dead DB):
| Choice | Detail |
|---|---|
| Default tools | search_objects, execute_sql, analyze_query_performance |
| Extra tools | --full-tools (+ DDL aliases need --allow-ddl) |
| Results | Columnar JSON only by default (token-efficient) |
| Guard | sqlparser AST; multi-statement deny; write tiers; complexity limits |
| Timeouts | Client timeout + PG statement_timeout / MySQL max_execution_time |
| Transports | stdio Β· --http 127.0.0.1:8080 (/mcp, /healthz) |
Measured RSS / cold-start vs Node rivals (same seed query): docs/BENCHMARKS.md. We do not invent QPS leaderboards.
| Doc | Purpose |
|---|---|
| docs/QUICKSTART.md | First run |
| docs/INSTALL.md | All install channels |
| docs/SECURITY.md | Guard + write tiers |
| docs/TOOLS.md | Tool schemas |
| docs/CONFIGURATION.md | .env / TOML / CLI |
| docs/ARCHITECTURE.md | Modules |
| docs/BENCHMARKS.md | Reproducible harness |
See AGENTS.md for Cursor / OMNI / CodeGraph conventions.
MIT
No reviews yet β be the first to share how this listing worked for you.
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/strut-stack-sql)<a href="https://allmcps.com/mcp/strut-stack-sql"><img src="https://allmcps.com/api/badge/strut-stack-sql?style=directory" alt="Strut Stack Sql on AllMCPs" /></a>