/dbmcp:setupfrom dbmcp
Connects dbmcp to MySQL, MariaDB, PostgreSQL, or SQLite in Claude Code or Codex, or fixes a failing dbmcp server. Use when dbmcp tools are missing, failing, or you need to change database credentials or config.
Ships in dbmcp. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
No request (Codex Set up): detect host, ask backend and host or file path.
Claude Code sets CLAUDECODE=1; else Codex (ask if unsure). No plugin tools: need claude --version ≥ 2.1.119 or codex --version ≥ 0.122.0.
Absolute paths; if it exists, change only the asked keys, keep the rest (privacy.*, ssh.*, TLS, read_only); print the path.
# yaml-language-server: $schema=https://raw.githubusercontent.com/haymon-ai/dbmcp/v0.21.0/crates/config/assets/dbmcp.schema.json
database:
backend: postgres # mysql | mariadb | postgres | sqlite
host: localhost
port: 5432 # mysql/mariadb: 3306
user: app_reader
name: shop # omit = all databases; sqlite: absolute file path, no host/port/user
SSH: ssh: { host: bastion, user: deploy, key: ~/.ssh/id_ed25519 } (bastion in ~/.ssh/known_hosts; database.host as it sees it). TLS: ssl: true, ssl_ca: /abs/ca.pem (client cert: ssl_cert, ssl_key) under database:.
Other settings: every key and its meaning is in the schema above (this release) or https://dbmcp.haymon.ai/configuration/. Add only what the user asks for; Safety still applies.
Smoke test (config only; <vars> names the files):
echo '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"smoke","version":"0"}}}' | <vars> npx -y @haymon-ai/[email protected]
JSON reply = OK; on invalid settings: fix only the keys named.
/plugin configure.privacy.rules, SSH, TLS): mkdir -p "${CLAUDE_PLUGIN_DATA}", write ${CLAUDE_PLUGIN_DATA}/dbmcp.yaml, smoke test (DBMCP_CONFIG_FILE=, plus DBMCP_ENV_FILE= if the .env below exists). User sets it as config_file, clears quick-connect fields but Password (they beat the file).${CLAUDE_PLUGIN_DATA}/.env (chmod 600), empty DBMCP_SSH_KEY_PASSPHRASE= / DBMCP_PRIVACY_KEY= for the user to fill; set as env_file.npx -y @haymon-ai/[email protected] --version) fills the npx cache; then Reconnect in /mcp, not restart; or MCP_TIMEOUT=120000 claude.mkdir -p ${CODEX_HOME:-$HOME/.codex}/plugins/data/dbmcp-haymon-ai. Its .env (chmod 600): DBMCP_CONFIG_FILE=dbmcp.yaml (same folder) and an empty DBMCP_DB_PASSWORD= for the user to fill; add only missing lines. Smoke test with DBMCP_ENV_FILE=<.env>.export DBMCP_ENV_FILE=<.env> to ~/.zshenv (or bash/fish equivalent); never the password.~/.zshenv, not ~/.zprofile). Slow start: smoke test, restart.ssh.*, TLS.DBMCP_LOG_LEVEL=debug; logs go to stderr.~/.npm/_npx, retry. Fallbacks: Docker ghcr.io/haymon-ai/dbmcp, dbmcp on PATH.Docs: https://dbmcp.haymon.ai/configuration/errors
cat/echo/printenv/masks); presence only: grep -Eq '^[[:space:]]*(export[[:space:]]+)?NAME[[:space:]]*[=:][[:space:]]*[^[:space:]#]' <.env>. YAML holds no secret and no ${VAR:?} for one, even when asked: set each by its env name in the Password field or env file, which beat the YAML (database.password → DBMCP_DB_PASSWORD, ssh.password → DBMCP_SSH_PASSWORD, ssh.key_passphrase → DBMCP_SSH_KEY_PASSPHRASE, http.auth_token → DBMCP_HTTP_AUTH_TOKEN, privacy.key → DBMCP_PRIVACY_KEY).database.read_only, privacy.*, database.ssl* (incl. ssl_ca, ssl_cert, ssl_key), ssh.strict_host_key_checking, ssh.known_hosts, or http.* exposure and auth unless the user's own message asks for that exact change; never as an error fix. First state in one sentence what it exposes and to whom (e.g. "read_only: false lets every MCP client write and run DDL.").What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
dbmcp@haymon-ai is listed by haymon-ai/marketplace — review the source before installing
npx claudepluginhub haymon-ai/marketplace --plugin dbmcp2 skills in this plugin
Other plugins' skills for the same job