mcp-sql-rust MCP Server
Token-efficient MCP server for MySQL, PostgreSQL, and SQLite
mcp-sql-rust scores 54 (Fair), licensed MIT and written in Rust. It installs as a local process. It does not declare tools yet. Filed under Databases. GitHub shows 1 stars. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.
Fair trust
54 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: mit.
License, quality and maintenance
Quality: Grade C
55/100 for listing completeness. Lost points: short README, no listed tools, short summary.
How quality is graded
Where the 54 comes from
22 + 10 + 1 + 10 + 4 + 7 = 54. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 10 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 1 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 7 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "rzlco666-mcp-sql-rust": { "command": "npx", "args": [ "-y", "https://github.com/rzlco666/mcp-sql-rust/releases/download/v0.4.0/mcp-sql-rust-x86_64-unknown-linux-gnu.mcpb" ], "env": { "DATABASE_URL": "YOUR_DATABASE_URL" } } }}
Environment variables
| Name | Required | Notes |
|---|---|---|
DATABASE_URLSecret | Required | Database connection URL |
DATABASE_URLSecret | Required | Database connection URL |
DATABASE_URLSecret | Required | Database connection URL |
Tools
All capabilitiesTools show up when the registry metadata or the repository README lists them. Public READMEs are read directly. A GitHub token is used only when one is already configured.
About
Strut Stack SQL
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).
Mission
- Token thrift — default 3 tools, columnar
{cols,rows,meta}, row/byte caps - Best-practice Rust — AST SQL guard before pool checkout, lean release binary
- Multi-engine — PostgreSQL + MySQL + SQLite in one binary
- Ship-ready — one-command install, stdio + Streamable HTTP, Cursor-friendly launcher
Install (one command)
curl -fsSL https://raw.githubusercontent.com/rzlco666/strut-stack-sql/main/install.sh | bash
strut-stack-sql --version
Installs 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.
Quick start (Cursor)
{
"mcpServers": {
"strut-stack-sql": {
"command": "strut-stack-sql",
"args": ["--full-tools"],
"cwd": "${workspaceFolder}"
}
}
}
Project .env:
DATABASE_URL=postgresql://user:pass@127.0.0.1:5432/app
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):
{
"mcpServers": {
"strut-stack-sql": {
"command": "node",
"args": [
"/absolute/path/to/strut-stack-sql/packaging/cursor-mcp-launcher.mjs",
"${workspaceFolder}"
]
}
}
}
Why this shape
| 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.
CLI
strut-stack-sql --version
strut-stack-sql # stdio, read-only
strut-stack-sql --allow-writes
strut-stack-sql --full-tools
strut-stack-sql --http 127.0.0.1:8080
Docs
| 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 |
Agent clients
See AGENTS.md for Cursor / OMNI / CodeGraph conventions.
License
MIT
Frequently asked questions
What is mcp-sql-rust MCP Server?
Token-efficient MCP server for MySQL, PostgreSQL, and SQLite
How do I install mcp-sql-rust MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. mcp-sql-rust MCP Server runs locally from the MCP bundle https://github.com/rzlco666/mcp-sql-rust/releases/download/v0.4.0/mcp-sql-rust-x86_64-unknown-linux-gnu.mcpb with the command npx -y https://github.com/rzlco666/mcp-sql-rust/releases/download/v0.4.0/mcp-sql-rust-x86_64-unknown-linux-gnu.mcpb.
Is mcp-sql-rust MCP Server free and open source?
Yes. mcp-sql-rust MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does mcp-sql-rust MCP Server support remote (HTTP) connections?
No remote endpoint is listed for mcp-sql-rust MCP Server. It runs locally on your machine over stdio, started by your MCP client.
How is mcp-sql-rust MCP Server's trust score calculated?
mcp-sql-rust MCP Server scores 54 out of 100 (Fair). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.