Database Explorer Featured
A powerful Model Context Protocol (MCP) tool for exploring and managing different types of databases including PostgreSQL, MySQL, and Firestore.
wirdes
Tools
!pg
!mysql
!firestore
!tables
!triggers
!functions
!query
!export-db
!export-data
README
Database Explorer MCP Tool
A powerful Model Context Protocol (MCP) tool for exploring and managing different types of databases including PostgreSQL, MySQL, and Firestore.
Features
-
Multiple Database Support
- PostgreSQL
- MySQL
- Firestore
-
Database Operations
- Connect to databases
- List tables
- View triggers
- List functions
- Execute SQL queries (PostgreSQL and MySQL)
- Export table schemas
- Export table data
Integration with Cursor
Before adding the tool to Cursor, you need to build the project:
- Clone the repository
- Install dependencies:
npm install
- Build the project:
npm run build
To add the tool to Cursor:
- Open Cursor settings
- Navigate to "Model Context Protocol (MCP)" section
- Click "Add New Tool"
- Fill in the following details:
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. - Save the settings
- Restart Cursor
Using the Tool:
-
After setup, you can connect to your database using one of these commands:
- For PostgreSQL: Use
!pg
with connection details - For MySQL: Use
!mysql
with connection details - For Firestore: Use
!firestore
with connection details
- For PostgreSQL: Use
-
Once 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 data
See the Commands section below for detailed usage examples.
Commands
Connection Commands
-
!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" } }
Database Operation Commands
!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" }
Requirements
- Node.js
- Required database drivers:
pg
for PostgreSQLmysql2
for MySQL@google-cloud/firestore
for Firestore
Usage
- Make sure you have the necessary database credentials
- Connect to your database using the appropriate connection command
- Use the available commands to explore and manage your database
Error Handling
- The tool includes comprehensive error handling for:
- Connection failures
- Query execution errors
- Schema and data export issues
- Invalid database operations
Notes
- Firestore support is limited to basic operations due to its NoSQL nature
- SQL operations are only available for PostgreSQL and MySQL
Recommended Servers

VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
AIO-MCP Server
🚀 All-in-one MCP server with AI search, RAG, and multi-service integrations (GitLab/Jira/Confluence/YouTube) for AI-enhanced development workflows. Folk from
Persistent Knowledge Graph
An implementation of persistent memory for Claude using a local knowledge graph, allowing the AI to remember information about users across conversations with customizable storage location.
Hyperbrowser MCP Server
Welcome to Hyperbrowser, the Internet for AI. Hyperbrowser is the next-generation platform empowering AI agents and enabling effortless, scalable browser automation. Built specifically for AI developers, it eliminates the headaches of local infrastructure and performance bottlenecks, allowing you to
React MCP
react-mcp integrates with Claude Desktop, enabling the creation and modification of React apps based on user prompts

Any OpenAI Compatible API Integrations
Integrate Claude with Any OpenAI SDK Compatible Chat Completion API - OpenAI, Perplexity, Groq, xAI, PyroPrompts and more.
Exa MCP
A Model Context Protocol server that enables AI assistants like Claude to perform real-time web searches using the Exa AI Search API in a safe and controlled manner.
BigQuery
This is a server that lets your LLMs (like Claude) talk directly to your BigQuery data! Think of it as a friendly translator that sits between your AI assistant and your database, making sure they can chat securely and efficiently.