Skip to content

MCP server to explore any SQL database (PostgreSQL, MySQL, SQLite) with interactive charts

License

Notifications You must be signed in to change notification settings

851-labs/db-explorer-mcp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"
      }
    }
  }
}

Supported databases

  • PostgreSQLpostgres://user:pass@host:5432/db
  • MySQLmysql://user:pass@host:3306/db
  • SQLitesqlite:///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.

About

MCP server to explore any SQL database (PostgreSQL, MySQL, SQLite) with interactive charts

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •