Enables connection to and querying of MySQL databases through SQL execution, with support for connection management and pooling.
Provides tools for connecting to and executing SQL queries on PostgreSQL databases, including connection pooling and concurrent connection management.
Allows interaction with SQLite databases through SQL query execution and connection management capabilities.
MCP Universal DB Client
Model Context Protocol (MCP) server for connecting to and querying multiple databases (PostgreSQL, MySQL, SQLite).
Features
🔌 Support for multiple database types (PostgreSQL, MySQL, SQLite)
🔄 Manage multiple concurrent database connections
🚀 Execute SQL queries through MCP tools
💾 Connection pooling and management
Supported Databases
PostgreSQL (
psql
)MySQL (
mysql
)SQLite (
sqlite
)
Usage
MCP Configuration
Add the server to your MCP settings configuration file:
Available Tools
1. connect_database
Connect to a database using a connection string.
Parameters:
dialect
: Database type (psql
,mysql
, orsqlite
)connectionString
: Connection string for the database
Example:
Returns: Connection ID for use in subsequent queries
2. list_connections
List all active database connections.
Returns: Array of active connections with their IDs, dialects, and connection times
3. run_query
Execute SQL queries on a connected database.
Parameters:
connectionID
: The connection ID returned fromconnect_database
query
: Array of SQL query strings to execute
Example:
4. disconnect_database
Disconnect a specific database connection.
Parameters:
connectionID
: The connection ID to disconnect
5. disconnect_all
Disconnect all active database connections.
License
MIT
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
Enables connecting to and querying multiple database types (PostgreSQL, MySQL, SQLite) through a unified interface. Supports managing multiple concurrent database connections with connection pooling and SQL query execution through MCP tools.