execute_query
Execute SQL query on a specific database connection
Run parameterised SQL against database connections you have already configured, and see which of those connections are currently up.
LABSCO SUMMARY
The surface is deliberately small — execute_query with parameters kept apart from query, plus the calls needed to see what you are connected to and bring a dead connection back without a restart of your own. list_connections deserves a second look for its include_credentials flag: the connection inventory can be returned with stored credentials inside it, so that flag decides what ends up in the model's context. Which engines a connection can speak to is a property of the configuration this server reads, and the tool surface itself takes no position on it.
A SQL front end over pre-configured database connections, exposing query execution with bound parameters, database listing, connection status and a retry for connections that failed.
At least one database connection already configured for the server: execute_query, list_databases and retry_failed_connections each take a connection_name, and list_connections reports what is configured.
One command — npx -y @ahmetbarut/mcp-database-server
USE CASES
Find which databases the connection exposes, then run the query with values bound as parameters rather than pasted into the SQL.
Check the status the server holds for each connection, then re-attempt the one that dropped instead of restarting everything.
Read the inventory of connections and then walk the databases behind each one before writing any SQL.
Counted once with only startup setup. Other versions, modes or optional credentials may expose a different list.
execute_queryExecute SQL query on a specific database connection
list_connectionsList all database connections with detailed information and status
list_databasesList databases from a specific connection or all configured connections
retry_failed_connectionsRetry failed database connections
BEFORE YOU INSTALL
4 tools when we connected.
CONTEXT COST
Rated by the size of the 4 tool definitions that ride along on every turn, not by how many there are
INSTALLATION
Add the block to your client, or run the command directly.
{
"mcpServers": {
"mcp-database-server": {
"command": "npx",
"args": [
"-y",
"@ahmetbarut/mcp-database-server"
]
}
}
}npx -y @ahmetbarut/mcp-database-server