Add it to Claude Code
claude mcp add sql-augur -- sqlaugurMake your agent remember this setup
sql-augur's config, env vars, and the gotchas you hit — recalled in every future Claude Code, Cursor, and Codex session.
npx conare@latestFree · one command · indexes the sessions already on disk. Set up in the browser instead →
What it does
- AST-level query validation using Microsoft's official T-SQL parser
- Read-only by design, permitting only SELECT and CTE queries
- Integrated DBA diagnostic tools including First Responder Kit and sp_WhoIsActive
- Token bucket throughput limiting and concurrency control
- Response size optimization for DBA tools by excluding verbose columns
Tools 3
list_serversLists configured SQL Server connections.execute_queryExecutes a read-only SELECT or CTE query validated via AST.get_schemaExplores database schema objects.Try it
Original README from mbentham/SqlAugur
SqlAugur
<a href="https://glama.ai/mcp/servers/@mbentham/sql-augur"> </a>An MCP server that gives AI assistants safe, read-only access to SQL Server databases. Every query is parsed into a full AST using Microsoft's official T-SQL parser — not regex — so comment injection, string literal tricks, and encoding bypasses are blocked at the syntax level.
┌──────────────┐ ┌───────────────────────────────────────────┐ ┌──────────────┐
│ │ stdio │ SqlAugur │ │ │
│ AI Client │◄────────►│ │───────►│ SQL Server │
│ │ │ ┌────────────┐ ┌──────────────────────┐ │ │ │
└──────────────┘ │ │ Query │ │ Schema / Diagram / │ │ └──────────────┘
│ │ Validator │ │ DBA Services │ │
│ └────────────┘ └──────────────────────┘ │
│ ┌────────────────────────────────────┐ │
│ │ Rate Limiter │ │
│ └────────────────────────────────────┘ │
└───────────────────────────────────────────┘
Quick Start
Prerequisite: .NET 10.0 runtime
1. Install
dotnet tool install -g SqlAugur
2. Configure — create ~/.config/sqlaugur/appsettings.json (Linux/macOS) or %APPDATA%\sqlaugur\appsettings.json (Windows), setting the connection string for your environment:
{
"SqlAugur": {
"Servers": {
"production": {
"ConnectionString": "Server=myserver;Database=master;Integrated Security=True;TrustServerCertificate=False;Encrypt=True;"
}
}
}
}
3. Connect — add to your MCP client:
<details open> <summary><strong>Claude Desktop</strong></summary>Add to your Claude Desktop config (claude_desktop_config.json):
{
"mcpServers": {
"sqlaugur": {
"command": "sqlaugur"
}
}
}
</details>
<details>
<summary><strong>Claude Code</strong></summary>
claude mcp add --transport stdio sqlaugur -- sqlaugur
Or add to .mcp.json in your project root:
{
"mcpServers": {
"sqlaugur": {
"type": "stdio",
"command": "sqlaugur"
}
}
}
</details>
<details>
<summary><strong>VS Code / Copilot</strong></summary>
Add to .vscode/mcp.json in your workspace:
{
"servers": {
"sqlaugur": {
"command": "sqlaugur"
}
}
}
</details>
4. Verify — ask your AI assistant to list_servers and you should see your configured connection.
For Docker, Podman, and other install methods, see Installation.
Why This Approach
AST-level query validation — Most MCP database servers use keyword blocking or no validation at all. This project parses every query into a full syntax tree using Microsoft's official
TSql170Parser. Comment injection, string literal tricks, and encoding bypasses are blocked at the syntax level, not with fragile regex patterns.Rate limiting — Token bucket throughput limiting and concurrency control prevent runaway AI query loops from overwhelming production SQL Servers. No other MCP database server offers this.
DBA diagnostic tooling — Integrated support for First Responder Kit, DarlingData, and sp_WhoIsActive with parameter blocking that prevents write operations. This is an entirely new MCP capability category.
Response size optimisation — DBA tools exclude verbose columns (XML query plans, deadlock graphs, metric breakdowns) and truncate long strings by default, reducing response sizes by 90–99%. Use
verboseandincludeQueryPlansparameters to get full untruncated output when needed.Progressive discovery — Up to 29 tools organized into toolsets that load on demand. Only 6 core tools are exposed initially, keeping the AI's context window small and reducing token usage. Additional toolsets are discovered and enabled as needed.
Features
Security
- Read-only by design — only SELECT and CTE queries are permitted
- AST-based query validation using ScriptDom (not regex)
- Parameter blocking on all diagnostic stored procedures to prevent writes
- Concurrency and throughput rate l