Database Explorer MCP

Database Explorer MCP connects assistants to PostgreSQL, MySQL or Firestore for connection setup, schema inspection, queries and exports.

Local serverstdioTypeScriptMIT★ 5

What is the Database Explorer MCP Server?

Database Explorer MCP connects assistants to PostgreSQL, MySQL or Firestore for connection setup, schema inspection, queries and exports.

Inspect a database through MCP

The TypeScript server offers distinct connection tools for PostgreSQL, MySQL and Firestore. Once connected, an assistant can list tables, inspect triggers or functions, run a query and export a table's schema or data. The active database service belongs to the running server process, so choose the intended connection before issuing a query.

Build and launch from source

The repository documents a Node.js source installation and an npm build that produces dist/index.js. Register that compiled file as a stdio server. Package metadata defines a binary name, but this profile uses the documented source route rather than assuming that a registry installation is available.

Connection details are tool arguments

PostgreSQL and MySQL take host, database, user and password values through their connection tools. Firestore takes a project ID and service-account key file path. These are different credential paths; a generic API key does not configure all three. Keep credentials in the intended client and review the tool trace when testing a connection.

Match access to the task

The query tool executes a supplied database query. Its permissions therefore come from the database account, rather than from a promise that the MCP server is read-only. For a schema review, start with a read-only account and a known table. Compare column definitions and a small result set with the database console before relying on an exported schema.

Project documentation

Repository and setup guide

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
!pgConnect to PostgreSQL using supplied connection fields.
!mysqlConnect to MySQL using supplied connection fields.
!firestoreConnect to Firestore using a project ID and key file.
!tablesList available tables or collections.
!triggersInspect database triggers.
!functionsInspect database functions.
!queryExecute a query using the active database connection.
!export-dbExport the schema of a specified table.
!export-dataExport data from a specified table.

How to install the Database Explorer MCP Server

{
  "mcpServers": {
    "database-explorer": {
      "command": "node",
      "args": [
        "/ABSOLUTE_PATH/db-mcp-tool/dist/index.js"
      ]
    }
  }
}

Install dependencies and run npm run build in the repository. Replace the absolute path; connection credentials are supplied to the corresponding tools.

Configuration

Node.js, the built source project and credentials for the selected database.

Frequently asked questions

Connection tools receive the credentials as arguments. PostgreSQL and MySQL use database connection fields; Firestore uses a project ID and a service-account key file path.