Read-only SQL for PostgreSQL, MySQL and SQLite: schema, safe SELECTs, EXPLAIN, index advice
registry version 0.1.0
Python
uvx db-explorer-mcp-serverPython
uvx db-explorer-mcp-server@0.1.0
Pick your client — the config below is generated for this server (local stdio). Copy respects the “Pin version” switch above.
claude_desktop_config.json
{
"mcpServers": {
"db-explorer-mcp-server": {
"command": "uvx",
"args": [
"db-explorer-mcp-server"
],
"env": {
"DATABASE_URL": "<YOUR_DATABASE_URL>"
}
}
}
}{
"mcpServers": {
"db-explorer-mcp-server": {
"command": "uvx",
"args": [
"db-explorer-mcp-server@0.1.0"
],
"env": {
"DATABASE_URL": "<YOUR_DATABASE_URL>"
}
}
}
}Format verified against the official Claude Desktop docs ↗.
terminal
claude mcp add --env DATABASE_URL=<YOUR_DATABASE_URL> db-explorer-mcp-server -- uvx db-explorer-mcp-server
claude mcp add --env DATABASE_URL=<YOUR_DATABASE_URL> db-explorer-mcp-server -- uvx db-explorer-mcp-server@0.1.0
Format verified against the official Claude Code docs ↗.
.cursor/mcp.json
{
"mcpServers": {
"db-explorer-mcp-server": {
"command": "uvx",
"args": [
"db-explorer-mcp-server"
],
"env": {
"DATABASE_URL": "<YOUR_DATABASE_URL>"
}
}
}
}{
"mcpServers": {
"db-explorer-mcp-server": {
"command": "uvx",
"args": [
"db-explorer-mcp-server@0.1.0"
],
"env": {
"DATABASE_URL": "<YOUR_DATABASE_URL>"
}
}
}
}Format verified against the official Cursor docs ↗.
.vscode/mcp.json
{
"servers": {
"db-explorer-mcp-server": {
"command": "uvx",
"args": [
"db-explorer-mcp-server"
],
"env": {
"DATABASE_URL": "<YOUR_DATABASE_URL>"
}
}
}
}{
"servers": {
"db-explorer-mcp-server": {
"command": "uvx",
"args": [
"db-explorer-mcp-server@0.1.0"
],
"env": {
"DATABASE_URL": "<YOUR_DATABASE_URL>"
}
}
}
}Format verified against the official VS Code docs ↗.
mcp_config.json
{
"mcpServers": {
"db-explorer-mcp-server": {
"command": "uvx",
"args": [
"db-explorer-mcp-server"
],
"env": {
"DATABASE_URL": "<YOUR_DATABASE_URL>"
}
}
}
}{
"mcpServers": {
"db-explorer-mcp-server": {
"command": "uvx",
"args": [
"db-explorer-mcp-server@0.1.0"
],
"env": {
"DATABASE_URL": "<YOUR_DATABASE_URL>"
}
}
}
}Format verified against the official Windsurf docs ↗.
Defined in the server's official registry manifest. Required secrets are shown as <YOUR_…> placeholders in the configs above.
DATABASE_URL secret — SQLAlchemy URL of the database to explore. Unset opens the bundled demo database.Distributed as Python, listed under Databases. Review our MCP security guide before granting access to real data.
Run the install command shown above, then paste the config for your client (Claude Desktop, Claude Code, Cursor, VS Code or Windsurf) into its MCP settings and restart the client.
The MCP server itself is free to install. The source is public on https://github.com/AYUSH-148/DB-Explorer-MCP. Any third-party service it calls may require its own API key and account.
Any MCP-compatible client can use it, including Claude Desktop, Claude Code, Cursor, VS Code, Windsurf and custom agents.
Publish this server? Link back with a badge on your README or site — copy either snippet.
Markdown
[](https://mcpnav.net/server/db-explorer-mcp-server/)
HTML
<a href="https://mcpnav.net/server/db-explorer-mcp-server/"><img src="https://mcpnav.net/badge/db-explorer-mcp-server.svg" alt="Listed on MCPNav" height="20"></a>