Db MCP server
{
"mcpServers": {
"haymon-db": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/haymon-ai/dbmcp:0.13.2"
],
"env": {
"DB_SSL_KEY": "<db_ssl_key>"
}
}
}
}{
"mcpServers": {
"haymon-db": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/haymon-ai/dbmcp:0.13.2"
],
"env": {
"DB_SSL_KEY": "<db_ssl_key>"
}
}
}
}{
"mcpServers": {
"haymon-db": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/haymon-ai/dbmcp:0.13.2"
],
"env": {
"DB_SSL_KEY": "<db_ssl_key>"
}
}
}
}{
"servers": {
"haymon-db": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/haymon-ai/dbmcp:0.13.2"
],
"env": {
"DB_SSL_KEY": "${input:db_ssl_key}"
}
}
},
"inputs": [
{
"id": "db_ssl_key",
"type": "promptString",
"description": "Db ssl key",
"password": true
}
]
}{
"mcpServers": {
"haymon-db": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/haymon-ai/dbmcp:0.13.2"
],
"env": {
"DB_SSL_KEY": "<db_ssl_key>"
}
}
}
}file .mcp.json (in your project root)file claude_desktop_config.jsonfile ~/.cursor/mcp.jsonfile .vscode/mcp.jsonfile ~/.codeium/windsurf/mcp_config.jsonversion 0.13.2
What it does
An MCP server that connects AI assistants to MySQL, MariaDB, PostgreSQL, and SQLite databases. It provides schema discovery, data access, and DDL operations with optional read-only mode and PII redaction capabilities. Runs as a single binary with stdio or HTTP transport.
- Query a database schema to understand table structure and relationships before writing data access queries.
- Execute read-only queries against a production database to fetch data for analysis or reporting without write access.
- Manage database objects like creating or dropping databases and tables through an AI assistant interface.
Tools this server exposes
| Tool | Does |
|---|---|
| listDatabases | List all databases available in the connected database server. |
| listTables | List all tables in the current database. |
| listViews | List all views in the current database. |
| listTriggers | List all triggers in the current database. |
| listFunctions | List all functions in the current database. |
| listProcedures | List all procedures in the current database. |
| listMaterializedViews | List all materialized views in the current database. |
| readQuery | Execute a read-only query against the database. |
| writeQuery | Execute a write query against the database (disabled in read-only mode). |
| createDatabase | Create a new database (disabled in read-only mode). |
| dropDatabase | Drop an existing database (disabled in read-only mode). |
| dropTable | Drop an existing table (disabled in read-only mode). |
| explainQuery | Explain the execution plan for a query. |
Before you enable it
An MCP server runs with whatever access you give it. Start with a development account rather than production, and check which tools the server exposes before you let an agent call them unattended.