IBM Db2 for i MCP Server
Read-only SQL queries and schema inspection for IBM Db2 for i over ODBC, JT400 or Mapepire (SSH).
IBM Db2 for i scores 50 (Fair), licensed MIT and written in TypeScript. It installs as a local process. It declares 23 tools. Filed under Databases, Developer tools. GitHub shows 31 stars. Package registries report about 322 downloads a week. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.
Fair trust
50 of 100 from six public signals. Nobody can buy a point.
- OSI-style license: mit.
License, quality and maintenance
Quality: Grade B
77/100 for listing completeness. Lost points: short README, 1 of 20 tools barely described, short summary.
How quality is gradedMaintenance: Grade B
Last commit or release 4 days ago. Down one letter for 24 open issues against 31 stars.
How maintenance is graded
Where the 50 comes from
0 + 20 + 9 + 10 + 4 + 7 = 50. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 0 of 30 points.How recently the repository saw a commit or release.
Maintenance: 20 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 9 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 7 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "strom-capital-mcp-server-db2i": { "command": "npx", "args": [ "-y", "mcp-server-db2i@3.8.9" ], "env": { "DB2I_HOSTNAME": "", "DB2I_USERNAME": "", "DB2I_PASSWORD": "YOUR_DB2I_PASSWORD", "DB2I_SCHEMA": "", "DB2I_PROFILES": "", "QUERY_ALLOWED_SCHEMAS": "", "DB2I_DRIVER": "odbc", "DB2I_JDBC_OPTIONS": "", "DB2I_ODBC_OPTIONS": "", "DB2I_MAPEPIRE_OPTIONS": "" } } }}
Environment variables
| Name | Required | Notes |
|---|---|---|
DB2I_HOSTNAME | Required | IBM i hostname or IPv4 address |
DB2I_USERNAME | Required | IBM i user profile |
DB2I_PASSWORDSecret | Required | IBM i password |
DB2I_SCHEMA | Optional | Default schema (library) |
DB2I_PROFILES | Optional | Path to a YAML file of IBM i systems. When set, it replaces the DB2I_* connection variables |
QUERY_ALLOWED_SCHEMAS | Optional | Comma-separated schemas the server may read. Empty disables the check. |
DB2I_DRIVER | Optional | 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 | Optional | Extra JT400 JDBC properties, semicolon-separated (jt400 and mapepire drivers) |
DB2I_ODBC_OPTIONS | Optional | Extra IBM i Access ODBC connection keywords, semicolon-separated (odbc driver) |
DB2I_MAPEPIRE_OPTIONS | Optional | SSH and Mapepire settings, semicolon-separated, e.g. hostKey=SHA256:...;agent=true;maxJobs=2 (mapepire driver) |
Tools23Tool docs quality grade B
All capabilitiesdescribe_routinetoolParameters, return value or result columns, and a call template for a procedure or function
describe_tabletoolGet detailed column information
execute_querytoolExecute read-only SELECT queries, with an optional chart hint for the result view
explain_tableresourceschema, table
explore_libraryresourceschema
export_querytoolWrite every row of a read-only query to a CSV or XLSX file: a path over stdio, a short-lived download link over HTTP. Off unless EXPORTENABLED is set
List business descriptions, row filters and relations loaded from YAML
get_journal_infotoolList journal, images, and primary key per table, and flag tables a replication tool cannot read
get_object_ddltoolReturn the SQL DDL that recreates an object
List objects that depend on a table
Get primary keys, foreign keys, unique constraints
index_advicetoolList the indexes the query optimizer asked for in a library, merged and ranked by temporary index use
About
Read-only MCP server that lets Claude, Cursor and other AI assistants query IBM Db2 for i (IBM i, AS/400). People sign in with their own IBM i user; library allowlist, column masking and audit log. Self-hosted, over ODBC, JDBC or Mapepire (SSH).
Frequently asked questions
What is IBM Db2 for i MCP Server?
Read-only SQL queries and schema inspection for IBM Db2 for i over ODBC, JT400 or Mapepire (SSH).
How do I install IBM Db2 for i MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. IBM Db2 for i MCP Server runs locally from the npm package mcp-server-db2i with the command npx -y mcp-server-db2i@3.8.9.
Is IBM Db2 for i MCP Server free and open source?
Yes. IBM Db2 for i MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does IBM Db2 for i MCP Server support remote (HTTP) connections?
No remote endpoint is listed for IBM Db2 for i MCP Server. It runs locally on your machine over stdio, started by your MCP client.
What tools does IBM Db2 for i MCP Server provide?
IBM Db2 for i MCP Server provides 20 tools, including describe_routine, describe_table, execute_query, and export_query. See the full tool list for descriptions and parameters.
How is IBM Db2 for i MCP Server's trust score calculated?
IBM Db2 for i MCP Server scores 50 out of 100 (Fair). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.