npm · mcp-server-db2i
$npx -y mcp-server-db2i@3.6.1 DB2I_HOSTNAME (required) — IBM i hostname or IPv4 address
DB2I_USERNAME (required) — IBM i user profile
DB2I_PASSWORD (required) · secret — IBM i password
DB2I_SCHEMA — Default schema (library)
DB2I_PROFILES — Path to a YAML file of IBM i systems. When set, it replaces the DB2I_* connection variables
QUERY_ALLOWED_SCHEMAS — Comma-separated schemas the server may read. Empty disables the check.
DB2I_DRIVER — Database driver: odbc (default, IBM i Access ODBC driver, no Java), jt400 (install node-jt400 next to the server; needs a JDK at install and a JRE at runtime) or mapepire (install @ibm/mapepire-js and ssh2; Mapepire over SSH, needs Java on the IBM i only)
DB2I_JDBC_OPTIONS — Extra JT400 JDBC properties, semicolon-separated (jt400 and mapepire drivers)
DB2I_ODBC_OPTIONS — Extra IBM i Access ODBC connection keywords, semicolon-separated (odbc driver)
DB2I_MAPEPIRE_OPTIONS — SSH and Mapepire settings, semicolon-separated, e.g. hostKey=SHA256:...;agent=true;maxJobs=2 (mapepire driver)