IBM Db2 for i logo

IBM Db2 for i

Read-only Db2 for i queries, catalog inspection, profiling, and metadata access over ODBC, JT400 JDBC, or Mapepire SSH.

Install IBM Db2 for i

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "ibm-db2-for-i": {
      "command": "npx",
      "args": [
        "-y",
        "-p",
        "mcp-server-db2i@latest",
        "-p",
        "node-jt400",
        "mcp-server-db2i"
      ],
      "env": {
        "DB2I_HOSTNAME": "YOUR_VALUE_HERE",
        "DB2I_USERNAME": "YOUR_VALUE_HERE",
        "DB2I_PASSWORD": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Install not yet sandbox-tested— the server itself is confirmed live (we called its tools/list endpoint). The stdio install command is a separate, ongoing check.

Overview

IBM Db2 for i MCP server gives AI clients read-only access to Db2 for i through SELECT queries and extensive catalog inspection. It connects through the IBM i Access ODBC driver by default, with optional JT400 JDBC or Mapepire over SSH drivers for different deployment requirements. Use it to discover libraries, tables, columns, routines, indexes, constraints, dependencies, journaling details, and business metadata before writing SQL. Local clients can use stdio, while remote clients and agents can connect through Streamable HTTP with bearer-token or OAuth 2.1 authentication.

Use cases

  • Explore IBM i libraries before writing a query
  • Run read-only SELECT statements against Db2 for i
  • Validate SQL and inspect referenced catalog objects
  • Review table statistics and index-advisor recommendations
  • Connect to an SSH-only IBM i system

Key features

  • Read-only SELECT execution with result limits
  • Schema, table, column, view, and routine discovery
  • SQL validation and object DDL generation
  • Index, constraint, dependency, and journal inspection
  • Table profiling and business-context lookup
  • ODBC, JT400 JDBC, and Mapepire SSH connectivity

Tools19

What IBM Db2 for i lets your agent do. Expand a tool for its parameters.

Verified live~4.0k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

14/14 checks healthy over the last 56d

What it can do

From the 19 tools this server returned when we ran it; 19 declare their own safety hints.

Runs commands · 1Read-only tools · 18
Network at startup3 connections
Files written at startupNone
Install scriptsNone
npm provenanceSigned build
Package age310 days
Maintainers1

Observed 2026-11-22 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 17d ago via OSV.dev · node-jt400 (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars31Stargazers on the source repository.
npm downloads9.2kPackage downloads in the last 30 days.
Last commit4d agoMost recent push to the default branch.
Tools exposed19Callable tools this server registers over MCP.
Directory activity3 viewsConfig copies, upvotes, and views on AllMCPs.

How IBM Db2 for i works

What IBM Db2 for i does

IBM Db2 for i exposes a read-only database interface through MCP for IBM i and AS/400 environments. Its query tool accepts SELECT statements only and applies result limits by default. The server also provides catalog-oriented tools for exploring schemas, tables, views, columns, routines, indexes, constraints, and related objects.

Beyond basic metadata, it can validate SQL without executing it, return recreating DDL, inspect journal configuration, read index-advisor information, profile table statistics, search IBM i SQL services, and retrieve business context loaded from MCP_CUSTOM_TOOLS. Query results can be returned as compact JSON or markdown tables. Query exports can produce CSV or Excel files without passing the rows through the model.

How it works

MCP clients communicate with the server over local stdio or Streamable HTTP at /mcp. The server then connects to one or more IBM i systems through a configured connection profile. ODBC is the default path and uses the IBM i Access ODBC driver without Java. JT400 JDBC can be selected for environments using Java, while Mapepire can connect over SSH when the IBM i system is reachable only through SSH.

Multiple systems can be configured with DB2I_PROFILES; tools accept an optional system selector. Individual tools can also be enabled or disabled, allowing a metadata-only deployment that excludes query execution. SQL queries have a timeout, and result limits help avoid unexpectedly large responses. Column masking can redact sensitive values or expose only their last four characters.

Setup and configuration

Install the npm package globally or run it with npx. The default driver requires Node.js 22 or later, unixODBC, and the IBM i Access ODBC Driver. JT400 requires the node-jt400 package, a JDK for installation, and a JRE at runtime. Mapepire requires @ibm/mapepire-js and ssh2.

Set DB2I_HOSTNAME, DB2I_USERNAME, and DB2I_PASSWORD for the IBM i connection. DB2I_SCHEMA optionally sets the default schema used when a tool does not receive one. Docker images are available for ODBC and JT400 deployments; the ODBC image targets amd64 unless an appropriate platform is specified.

Local configurations can start the process directly. Remote deployments use the HTTP endpoint with bearer-token authentication or OAuth 2.1 sign-in. Claude Desktop, Claude Code, and Cursor are documented as local stdio clients, and they can also use the HTTP endpoint where applicable.

Tools and capabilities

  • Run restricted SELECT queries with optional chart output and bounded results.
  • Enumerate and search libraries, tables, columns, views, routines, and IBM i SQL services.
  • Inspect table columns, indexes, constraints, routine parameters, return values, and result columns.
  • Validate SQL, generate object DDL, and find objects related to a table.
  • Review index advice, journal status, row statistics, column distributions, null counts, and value ranges.
  • Load business entities, row-filter guidance, descriptions, and non-declared relationships from custom annotations.

get_object_ddl requires IBM i 7.3 or later. Related-object lookup requires IBM i 7.3 Technology Refresh 9, IBM i 7.4 Technology Refresh 3, or a later release. Journal inspection requires IBM i 7.3 Technology Refresh 2 or later.

Limitations and notes

The query interface is intentionally read-only: only SELECT statements are accepted, and generated DDL is returned rather than executed. Procedures and functions that modify SQL data cannot be run through execute_query; routine inspection reports whether a callable object is eligible and explains the reason when it is not.

Catalog searches skip Q* and SYS* system libraries by default unless include_system is enabled. A configured schema allowlist restricts searches and can also affect IBM i service examples. Table functions must be qualified when called. Profiling with compute=true scans the table for exact values on up to 20 columns, while masked columns retain counts but do not return values.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about IBM Db2 for i

IBM Db2 for i is an MCP server that connects AI clients to IBM Db2 for i through IBM i Access ODBC, optional JT400 JDBC, or Mapepire over SSH. Its main tools run read-only SELECT queries and inspect schemas, tables, columns, views, routines, indexes, constraints, statistics, and related database metadata.

Install it globally with npm or run it through npx. The default ODBC setup also needs unixODBC and the IBM i Access ODBC Driver. For JT400, install node-jt400 with a JDK and JRE; for Mapepire, install @ibm/mapepire-js and ssh2. Docker build targets are also available.

Set DB2I_HOSTNAME, DB2I_USERNAME, and DB2I_PASSWORD in the environment or a .env file. Set DB2I_SCHEMA to choose the default schema used by tools when no schema is supplied. Additional profiles can connect the server to multiple IBM i systems.

Yes. Cursor is documented as a local stdio client for the server. Add the server command and its arguments to Cursor's MCP configuration, then provide the IBM i connection environment variables.

Yes. Select the Mapepire driver with DB2I_DRIVER=mapepire and install the Mapepire and ssh2 packages. This mode starts Mapepire inside the SSH session and is intended for systems where SSH is the available connection path.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewIBM Db2 for i AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/ibm-db2-for-i?style=directory)](https://allmcps.com/mcp/ibm-db2-for-i)
HTML Embed
<a href="https://allmcps.com/mcp/ibm-db2-for-i"><img src="https://allmcps.com/api/badge/ibm-db2-for-i?style=directory" alt="IBM Db2 for i on AllMCPs" /></a>