Zero-risk, strictly read-only SQL database inspector for AI agents (Claude, Antigravity, Cursor)
TypeScript
1
4 commits
updated Oct 7, 2026
Zero-risk, strictly read-only SQL database inspector for AI agents (Claude Desktop, Antigravity, Cursor, Cline).
Let your AI explore schemas, inspect tables, and run SELECT queries without risking accidental DROP, UPDATE, or DELETE.
Giving an AI assistant database access is risky:
UPDATE query without a WHERE clause can wipe production or local dev data.SELECT 1; DROP TABLE users;) can execute hidden destructive actions.SELECT *) blow up context windows and burn API tokens.mcp-safe-db solves this with a Dual-Layer Defense:
PRAGMA query_only = ON;. Even if a query bypasses parsing, the database engine physically rejects write operations.npxnpx mcp-safe-db ./path/to/database.sqlite
Add to your claude_desktop_config.json:
{
"mcpServers": {
"safe-db": {
"command": "npx",
"args": ["-y", "mcp-safe-db", "/absolute/path/to/your/database.sqlite"]
}
}
}
Add to your mcp_config.json:
{
"mcpServers": {
"safe-db": {
"command": "npx",
"args": ["-y", "mcp-safe-db", "/absolute/path/to/your/database.sqlite"]
}
}
}
| Tool | Description | Safe Guard |
|---|---|---|
list_tables | Lists all user tables and views | Filters out internal SQLite tables |
describe_table | Inspects columns, data types, and primary keys | Sanitized table name validation |
sample_table | Returns the first 3 rows of any table | Hard-capped to max 10 rows |
safe_query | Executes arbitrary SELECT queries | Rejects mutations, auto-caps LIMIT |
npm test
Runs the automated security and safety tests.
MIT © 2026
Vibe Coded with 💖 by MrSkele & Antigravity
Zero-risk, strictly read-only SQL database inspector for AI agents (Claude, Antigravity, Cursor)
TypeScript
1
4 commits
updated Oct 7, 2026
Zero-risk, strictly read-only SQL database inspector for AI agents (Claude Desktop, Antigravity, Cursor, Cline).
Let your AI explore schemas, inspect tables, and run SELECT queries without risking accidental DROP, UPDATE, or DELETE.
Giving an AI assistant database access is risky:
UPDATE query without a WHERE clause can wipe production or local dev data.SELECT 1; DROP TABLE users;) can execute hidden destructive actions.SELECT *) blow up context windows and burn API tokens.mcp-safe-db solves this with a Dual-Layer Defense:
PRAGMA query_only = ON;. Even if a query bypasses parsing, the database engine physically rejects write operations.npxnpx mcp-safe-db ./path/to/database.sqlite
Add to your claude_desktop_config.json:
{
"mcpServers": {
"safe-db": {
"command": "npx",
"args": ["-y", "mcp-safe-db", "/absolute/path/to/your/database.sqlite"]
}
}
}
Add to your mcp_config.json:
{
"mcpServers": {
"safe-db": {
"command": "npx",
"args": ["-y", "mcp-safe-db", "/absolute/path/to/your/database.sqlite"]
}
}
}
| Tool | Description | Safe Guard |
|---|---|---|
list_tables | Lists all user tables and views | Filters out internal SQLite tables |
describe_table | Inspects columns, data types, and primary keys | Sanitized table name validation |
sample_table | Returns the first 3 rows of any table | Hard-capped to max 10 rows |
safe_query | Executes arbitrary SELECT queries | Rejects mutations, auto-caps LIMIT |
npm test
Runs the automated security and safety tests.
MIT © 2026
Vibe Coded with 💖 by MrSkele & Antigravity