数据库浏览器
STDIO多类型数据库探索和管理工具
多类型数据库探索和管理工具
A powerful Model Context Protocol (MCP) tool for exploring and managing different types of databases including PostgreSQL, MySQL, and Firestore.
Multiple Database Support
Database Operations
Before adding the tool to Cursor, you need to build the project:
npm install
npm run build
To add the tool to Cursor:
Note: Replace{ "name": "database-explorer", "command": "node /path/to/project/dist/index.js", "description": "Database Explorer MCP Tool" }
/path/to/project with the actual path to your project directory.Using the Tool:
After setup, you can connect to your database using one of these commands:
!pg with connection details!mysql with connection details!firestore with connection detailsOnce connected, you can use various database operations:
!tables to list all tables!triggers to view triggers!functions to list functions!query to execute SQL queries!export-db to export table schemas!export-data to export table dataSee the Commands section below for detailed usage examples.
!pg - Connect to PostgreSQL database
{ "connection": { "host": "hostname", "port": 5432, "database": "dbname", "user": "username", "password": "password" } }
!mysql - Connect to MySQL database
{ "connection": { "host": "hostname", "port": 3306, "database": "dbname", "user": "username", "password": "password" } }
!firestore - Connect to Firestore database
{ "connection": { "projectId": "your-project-id", "keyFilename": "path/to/keyfile.json" } }
!tables - List all tables in the connected database!triggers - List all triggers in the connected database!functions - List all functions in the connected database!query - Execute SQL query (PostgreSQL and MySQL only)
{ "query": "SELECT * FROM table_name" }
!export-db - Export table schema
{ "table": "table_name" }
!export-data - Export table data as INSERT statements
{ "table": "table_name" }
pg for PostgreSQLmysql2 for MySQL@google-cloud/firestore for Firestore