DB Explorer
v0.1.0Read-only SQL for PostgreSQL, MySQL and SQLite: schema, safe SELECTs, EXPLAIN, index advice
Values you need
| Variable | What it is | |
|---|---|---|
DATABASE_URL | optional secret | SQLAlchemy URL of the database to explore. Unset opens the bundled demo database. |
PyPI (uvx) discovery passed
Requires uv (https://docs.astral.sh/uv/)
Run in a terminal
claude mcp add db-explorer-mcp-server -- uvx db-explorer-mcp-server==0.1.0Add to
claude_desktop_config.json{
"mcpServers": {
"db-explorer-mcp-server": {
"args": [
"db-explorer-mcp-server==0.1.0"
],
"command": "uvx"
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"db-explorer-mcp-server": {
"args": [
"db-explorer-mcp-server==0.1.0"
],
"command": "uvx"
}
}
}Add to
.vscode/mcp.json{
"servers": {
"db-explorer-mcp-server": {
"args": [
"db-explorer-mcp-server==0.1.0"
],
"command": "uvx",
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.db-explorer-mcp-server]
command = "uvx"
args = ["db-explorer-mcp-server==0.1.0"]For AI agents
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: explore_schema, execute_query, explain_query, validate_schema, suggest_index, migration_context, validate_migration.
- If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.
Machine-readable: install.md · manifest.json