Skip to main content
Glama
DB Explorer MCP

DB Explorer MCP

by 851-labs

DB Explorer MCP

Connect to any SQL database and explore schemas, run queries, and visualize results with interactive charts — all from Claude Desktop.

Install

npx @anthropic-ai/mcpb add db-explorer-mcp

Or add manually to your Claude Desktop config:

{
  "mcpServers": {
    "db-explorer": {
      "command": "npx",
      "args": ["db-explorer-mcp"],
      "env": {
        "DB_CONNECTION_STRING": "postgres://user:pass@localhost:5432/mydb"
      }
    }
  }
}

Related MCP server: MCPDB - Database Access MCP Server

Supported databases

  • PostgreSQL — postgres://user:pass@host:5432/db

  • MySQL — mysql://user:pass@host:3306/db

  • SQLite — sqlite:///path/to/file.db

Tools

Tool

Description

connect

Connect to a database via connection string

list_tables

List all tables with estimated row counts

describe_table

Describe columns, types, constraints, and foreign keys

get_schema

Get the full database schema with relationships

query

Execute a read-only SQL query

chart

Render an interactive chart from query results

License

This project is released under the MIT License. See LICENSE for details.

Support

If you like this project, please consider giving it a star.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      Connects Claude Desktop directly to databases, allowing it to explore database structures, write SQL queries, analyze datasets, and create reports through an API layer with tools for table exploration and query execution.
      3,714 PyPI
      422
      Mozilla Public 2.0
    • F
      license
      Not graded
      quality
      D
      maintenance
      Provides Claude Desktop with secure access to multiple database connections, allowing users to query MySQL, PostgreSQL, SQLite, and SQL Server databases directly through natural language.
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides Claude with direct access to databases including SQLite, SQL Server, PostgreSQL, and MySQL, enabling execution of SQL queries and table management through natural language.
      782 npm
      1
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables Claude to connect to and interact with SQLite, SQL Server, PostgreSQL, and MySQL databases through natural language. Supports executing queries, managing tables, exporting data, and storing business insights with authentication options including AWS IAM.
      782 npm
      MIT