About Db2i
Db2i is an MCP server published by Strom-Capital in the Data category: 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). Conduid read 20 tools from its source: describe_routine, describe_table, execute_query, export_query, get_business_context, get_journal_info and 14 more. It is published to npm as mcp-server-db2i and starts with npx.
The repository has 31 stars and 8 forks, is licensed MIT, and its last commit was on 2 Dec 2026. The latest release is v3.8.1 (15 Oct 2026): Bug Fixes quieter KPI tiles that fit on one line (#306) (459044a). It follows v3.8.0 (15 Oct 2026), and the 5 most recent releases go back to v3.6.0 (9 Oct 2026). It passes 4 of the 5 static checks Conduid ran on the repository; it does not pass Scoped permissions. Its topics include data.
Install
claude mcp add db2i -- npx -y mcp-server-db2i@latestnpx -y mcp-server-db2i@latestgit clone https://github.com/Strom-Capital/mcp-server-db2iTools (20)
describe_routineParameters, return value or result columns, and a call template for a procedure or function| Parameter | Type | Description |
|---|---|---|
| name | string | Routine name. Required unless specific_name is given. |
| schema | string | Schema (library) containing the routine. ${SCHEMA_DEFAULT_HINT} |
| specific_name | string | Specific name of one overload, from list_routines. |
describe_tableGet detailed column information| Parameter | Type | Description |
|---|---|---|
| schema | string | Schema (library) name containing the table. ${SCHEMA_DEFAULT_HINT} |
| table * | string | Table name to describe |
execute_queryExecute read-only SELECT queries, with an optional `chart` hint for the result view| Parameter | Type | Description |
|---|---|---|
| limit | number | Maximum number of rows to return (default: QUERY_DEFAULT_LIMIT, max: QUERY_MAX_LIMIT) |
| params | array | Query parameters for prepared statement |
| sql * | string | SQL SELECT query to execute |
export_queryWrite 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 `EXPORT_ENABLED` is set| Parameter | Type | Description |
|---|---|---|
| filename | string | Name for the file, without extension, e.g. open-orders-1001 |
| format | string | File format. Default: xlsx |
| max_rows | number | Most rows to write (capped by EXPORT_MAX_ROWS) |
| params | array | Query parameters for prepared statement |
| sql * | string | SQL SELECT query to export |
get_business_contextList business descriptions, row filters and relations loaded from YAML| Parameter | Type | Description |
|---|---|---|
| entity | string | Entity name, for example sales_order |
| table | string | Table name, or SCHEMA.TABLE |
get_journal_infoList journal, images, and primary key per table, and flag tables a replication tool cannot read| Parameter | Type | Description |
|---|---|---|
| filter | string | Filter pattern for table names. Use * as wildcard. Example: "ORDER*" matches tables starting with ORDER |
| limit | number | Maximum rows to return. Capped by QUERY_MAX_LIMIT. |
| schema | string | Schema (library) to inspect. ${SCHEMA_DEFAULT_HINT} |
get_object_ddlReturn the SQL DDL that recreates an object| Parameter | Type | Description |
|---|---|---|
| object * | string | Object name |
| schema | string | Schema (library) that contains the object. ${SCHEMA_DEFAULT_HINT} |
| type * | string | Object type: TABLE, VIEW, INDEX, ALIAS, TRIGGER, FUNCTION, PROCEDURE, or SEQUENCE |
get_related_objectsList objects that depend on a table| Parameter | Type | Description |
|---|---|---|
| schema | string | Schema (library) that contains the table. ${SCHEMA_DEFAULT_HINT} |
| table * | string | Table name |
get_table_constraintsGet primary keys, foreign keys, unique constraints| Parameter | Type | Description |
|---|---|---|
| schema | string | Schema (library) name containing the table. ${SCHEMA_DEFAULT_HINT} |
| table * | string | Table name to get constraints for |
index_adviceList the indexes the query optimizer asked for in a library, merged and ranked by temporary index use| Parameter | Type | Description |
|---|---|---|
| limit | number | Maximum rows to return. Capped by QUERY_MAX_LIMIT. |
| schema | string | Schema (library) whose tables to read advice for. ${SCHEMA_DEFAULT_HINT} |
| since | string | Only advice last given on or after this date or timestamp, in the IBM i system's local time with no time zone. Example: "2026-01-31" or "2026-01-31 08:00:00" |
| table | string | Table name. Omit for every table in the library. |
list_indexesList SQL indexes for a table| Parameter | Type | Description |
|---|---|---|
| schema | string | Schema (library) name containing the table. ${SCHEMA_DEFAULT_HINT} |
| table * | string | Table name to list indexes for |
list_routinesList SQL procedures and functions in a library, with language, external program, and SQL data access| Parameter | Type | Description |
|---|---|---|
| filter | string | Filter routine names. Use * as wildcard, e.g. "GET*". Without a wildcard, matches names containing the text. |
| limit | number | Maximum routines to return. Capped by QUERY_MAX_LIMIT. |
| schema | string | Schema (library) to list routines in. ${SCHEMA_DEFAULT_HINT} |
| type | string | Only procedures or only functions. Omit for both. |
list_schemasList schemas/libraries (with optional filter)| Parameter | Type | Description |
|---|---|---|
| filter | string | Filter pattern for schema names. Use * as wildcard. Example: "QSYS*" matches schemas starting with QSYS |
list_tablesList tables in a schema (with optional filter)| Parameter | Type | Description |
|---|---|---|
| filter | string | Filter pattern for table names. Use * as wildcard. Example: "CUST*" matches tables starting with CUST |
| schema | string | Schema (library) name to list tables from. ${SCHEMA_DEFAULT_HINT} |
list_viewsList views in a schema (with optional filter)| Parameter | Type | Description |
|---|---|---|
| filter | string | Filter pattern for view names. Use * as wildcard. |
| schema | string | Schema (library) name to list views from. ${SCHEMA_DEFAULT_HINT} |
profile_tableRow count, last change, and per-column distinct and null counts from stored statistics or a scan| Parameter | Type | Description |
|---|---|---|
| columns | array | Columns to profile. Defaults to every column (the first ${MAX_COMPUTED_COLUMNS} when compute is true). |
| compute | boolean | Scan the table for exact counts, MIN, and MAX. Slower on large tables. Default false. |
| schema | string | Schema (library) that contains the table. ${SCHEMA_DEFAULT_HINT} |
| table * | string | Table name |
search_columnsFind columns by name or description across libraries| Parameter | Type | Description |
|---|---|---|
| filter * | string | Name or text to match. Use * as a wildcard. Example: "ITEM*" matches columns starting with ITEM |
| include_system | boolean | Include Q* and SYS* libraries. Ignored when a schema or a schema allowlist is set. |
| limit | number | Maximum rows to return. Capped by QUERY_MAX_LIMIT. |
| schema | string | Limit the search to one library. Must be in the schema allowlist when one is configured. |
search_ibmi_servicesFind IBM i services by keyword or category, with the release that added each one and an example query| Parameter | Type | Description |
|---|---|---|
| category | string | Exact category, such as JOURNAL, SECURITY, or WORK MANAGEMENT. Call with no arguments to list them. |
| include_example | boolean | Include the example query for each service. Default true. |
| limit | number | Maximum services to return. Capped by QUERY_MAX_LIMIT. |
| query | string | Keywords, all of which must appear in the service name or category (case-insensitive). Example: "journal entries" |
| search_examples | boolean | Also match keywords against the example queries. Default false. |
search_tablesFind tables by name or description across libraries| Parameter | Type | Description |
|---|---|---|
| filter * | string | Name or text to match. Use * as a wildcard. Example: "ORDER*" matches tables starting with ORDER |
| include_system | boolean | Include Q* and SYS* libraries. Ignored when a schema or a schema allowlist is set. |
| limit | number | Maximum rows to return. Capped by QUERY_MAX_LIMIT. |
| schema | string | Limit the search to one library. Must be in the schema allowlist when one is configured. |
validate_queryCheck a statement without running it, including catalog names| Parameter | Type | Description |
|---|---|---|
| sql * | string | SQL statement to validate. It is not executed. |
Security checks
Static checks derived from the repository 11 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 2.5K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by package-lock.json and site/package-lock.json.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
1 check has not been run yet.
Releases
README
The repository's README runs to about 2.5K words, fetched a month ago. The original in the repository is authoritative.
Read full README