プロトタイプ · プレビュー版:公式レジストリのすべてのサーバーを掲載し、30分ごとに同期しています。レビューとアカウント機能は今後のステップで始まります。
PopNx MCPAIを使う人のためのMCPサーバー · やさしい言葉で解説

IBM Db2 for i

作者:Strom-Capitalバージョン 3.8.6i★ –iパソコンで動く
レジストリ名io.github.Strom-Capital/mcp-server-db2i

インストール

概要

作者による説明(英語の原文)

Read-only SQL queries and schema inspection for IBM Db2 for i over ODBC, JT400 or Mapepire (SSH).

PopNx MCPの3つの柱

この3つを1つのスコアにまとめることはしません。意見、測定、人気はそれぞれ別のものだからです。

できること

このサーバーのやさしい解説はまだ書いていません。以下はレジストリから読み取った事実です。

  • 接続方法: パソコンで動く
  • トランスポート: stdio
  • カテゴリ: データベース・データセット
  • 入力が必要なもの:DB2I_HOSTNAME, DB2I_USERNAME, DB2I_PASSWORD

インストール

使っているAIアプリを選んで、設定をコピーしてください。

インストールの前に

  • 基本チェック:1項目中1項目に合格
  • あなたのパソコンで、あなたのユーザーと同じ権限(ファイル、ネットワーク、アプリ)で動きます。
  • 自分で入力するもの: DB2I_HOSTNAME, DB2I_USERNAME, DB2I_PASSWORD, DB2I_SCHEMA, DB2I_PROFILES, QUERY_ALLOWED_SCHEMAS, DB2I_DRIVER, DB2I_JDBC_OPTIONS, DB2I_ODBC_OPTIONS, DB2I_MAPEPIRE_OPTIONS

「秘密」と表示された値は、あなたのアカウントの鍵です。絶対に人に教えたり、チャットに貼り付けたりしないでください。

必要なもの

  • npmNode.jsのインストール(npxコマンドに必要)

どのアプリを使っていますか?

上でアプリを選んでください。選んだアプリを覚えておくので、次からはボタンに「…にインストール」と表示されます。

Claude Desktop → Settings → Developer → Edit Config を開き、claude_desktop_config.json にこれを貼り付けます

{
  "mcpServers": {
    "db2i": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-server-db2i"
      ],
      "env": {
        "DB2I_HOSTNAME": "your-value",
        "DB2I_USERNAME": "your-value",
        "DB2I_PASSWORD": "your-value",
        "DB2I_SCHEMA": "your-value",
        "DB2I_PROFILES": "your-value",
        "QUERY_ALLOWED_SCHEMAS": "your-value",
        "DB2I_DRIVER": "your-value",
        "DB2I_JDBC_OPTIONS": "your-value",
        "DB2I_ODBC_OPTIONS": "your-value",
        "DB2I_MAPEPIRE_OPTIONS": "your-value"
      }
    }
  }
}

ターミナルでこれを実行します

claude mcp add db2i --env DB2I_HOSTNAME=your-value --env DB2I_USERNAME=your-value --env DB2I_PASSWORD=your-value --env DB2I_SCHEMA=your-value --env DB2I_PROFILES=your-value --env QUERY_ALLOWED_SCHEMAS=your-value --env DB2I_DRIVER=your-value --env DB2I_JDBC_OPTIONS=your-value --env DB2I_ODBC_OPTIONS=your-value --env DB2I_MAPEPIRE_OPTIONS=your-value -- npx -y mcp-server-db2i

動かす前に、空欄の値を入力してください。

Cursorで開く

または、設定を自分でコピーする

プロジェクトの .cursor/mcp.json、または ~/.cursor/mcp.json に貼り付けます

{
  "mcpServers": {
    "db2i": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-server-db2i"
      ],
      "env": {
        "DB2I_HOSTNAME": "your-value",
        "DB2I_USERNAME": "your-value",
        "DB2I_PASSWORD": "your-value",
        "DB2I_SCHEMA": "your-value",
        "DB2I_PROFILES": "your-value",
        "QUERY_ALLOWED_SCHEMAS": "your-value",
        "DB2I_DRIVER": "your-value",
        "DB2I_JDBC_OPTIONS": "your-value",
        "DB2I_ODBC_OPTIONS": "your-value",
        "DB2I_MAPEPIRE_OPTIONS": "your-value"
      }
    }
  }
}

ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。

VS Codeで開く

または、設定を自分でコピーする

プロジェクトの .vscode/mcp.json に貼り付けます

{
  "servers": {
    "db2i": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "mcp-server-db2i"
      ],
      "env": {
        "DB2I_HOSTNAME": "your-value",
        "DB2I_USERNAME": "your-value",
        "DB2I_PASSWORD": "your-value",
        "DB2I_SCHEMA": "your-value",
        "DB2I_PROFILES": "your-value",
        "QUERY_ALLOWED_SCHEMAS": "your-value",
        "DB2I_DRIVER": "your-value",
        "DB2I_JDBC_OPTIONS": "your-value",
        "DB2I_ODBC_OPTIONS": "your-value",
        "DB2I_MAPEPIRE_OPTIONS": "your-value"
      }
    }
  }
}

ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。

これはパソコンで動くサーバーですが、ChatGPTがつなげるのはインターネット上のサーバーだけです。ほかのアプリを選んでください。

選んだアプリは、この端末のCookieに保存されます。アカウントは不要です。

自分で入力する値

  • DB2I_HOSTNAME 必須 env
    IBM i hostname or IPv4 address
  • DB2I_USERNAME 必須 env
    IBM i user profile
  • DB2I_PASSWORD 秘密 必須 env
    IBM i password
  • DB2I_SCHEMA env
    Default schema (library)
  • DB2I_PROFILES env
    Path to a YAML file of IBM i systems. When set, it replaces the DB2I_* connection variables
  • QUERY_ALLOWED_SCHEMAS env
    Comma-separated schemas the server may read. Empty disables the check.
  • DB2I_DRIVER env
    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 an…
  • DB2I_JDBC_OPTIONS env
    Extra JT400 JDBC properties, semicolon-separated (jt400 and mapepire drivers)
  • DB2I_ODBC_OPTIONS env
    Extra IBM i Access ODBC connection keywords, semicolon-separated (odbc driver)
  • DB2I_MAPEPIRE_OPTIONS env
    SSH and Mapepire settings, semicolon-separated, e.g. hostKey=SHA256:...;agent=true;maxJobs=2 (mapepire driver)

この設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。

できること

パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。

基本チェックi

誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月7日にチェック

  • ✓ 合格

    作者とリポジトリが一致

    レジストリ名は、リポジトリを所有するGitHubアカウント Strom-Capital で確認済みです

  • … 未チェック

    今もメンテナンスされている

    このリポジトリはまだGitHubから読み取っていません

  • … 未チェック

    ライセンスがある

    このリポジトリはまだGitHubから読み取っていません

  • – 対象外

    エンドポイントが応答する

    これはパソコンで動くため、インターネット上のエンドポイントはありません

  • – 対象外

    OAuthでサインイン

    パソコンで動き、代わりにローカルの設定を使います

  • … 未チェック

    ツールの説明に隠れた指示がない

    パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです

データベース・データセットのほかのサーバーとの比較i

  • このカテゴリのほかの956件のうち0%よりスターが多い
  • このカテゴリのほかの956件のうち97%より最近レジストリに公開
  • 基本チェックの結果が、このカテゴリのほかの956件のうち100%と同じかそれ以上

レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。

よくある質問

IBM Db2 for iは安全ですか?

当てはまる基本チェック1項目のうち1項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。

どんなキーやコードが必要ですか?

入力が必要なもの:DB2I_HOSTNAME, DB2I_USERNAME, DB2I_PASSWORD

パソコンで動きますか、それともクラウドですか?

あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。

今もメンテナンスされていますか?

GitHubリポジトリの最終更新は–、最新バージョン(3.8.6)がレジストリに届いたのは昨日です。

どのアプリで使えますか?

Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンにNode.jsも必要です。

代わりに使えるものは?

同じカテゴリには:Supabase, MongoDB MCP Server, Elasticsearch MCP Server

代わりの候補

同じカテゴリで、ほかの作者が作ったサーバー。スターの多い順。

カードの見方:★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i

Supabase

作者:supabase

MCP server for interacting with the Supabase platform

パソコンでもクラウドでも★ 2,993Apache-2.0昨日更新
インストール

作者のREADME

READMEを開く

作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。

Db2 for i MCP Server

mcp-server-db2i is a Model Context Protocol (MCP) server for IBM Db2 for i (Db2i) on IBM i (AS/400). It enables AI assistants like Claude and Cursor to query and inspect IBM i databases through the IBM i Access ODBC driver, or optionally the JT400 JDBC driver or Mapepire over SSH.

Listed in the MCP Registry as io.github.Strom-Capital/mcp-server-db2i.

Website: db2i-mcp.com, with a blog that explains each release. Docs: docs.db2i-mcp.com.

Architecture

AI clients connect to the MCP Server in one of two ways. Local clients such as Claude Desktop, Claude Code and Cursor can start it as a process and talk over stdio. Remote clients connect over Streamable HTTP at /mcp, signing in with OAuth 2.1 (claude.ai custom connectors) or a bearer token (custom agents). Local clients can also use the HTTP endpoint. The server executes read-only queries against Db2 for i using the IBM i Access ODBC driver (default, no Java), the optional JT400 JDBC driver (DB2I_DRIVER=jt400), or Mapepire over SSH (DB2I_DRIVER=mapepire) for systems where only SSH is reachable. One server can reach several IBM i systems through connection profiles, each with its own driver.

graph LR

subgraph clients ["AI Clients"] local("Claude Desktop, Claude Code, Cursor") remote("claude.ai connectors") agents("Custom Agents") end

subgraph server ["MCP Server"] stdio["stdio"] http["Streamable HTTP + Auth"] tools[["MCP Tools"]] profiles{{"System profiles"}} odbc["IBM i Access ODBC"] jdbc["JT400 JDBC (optional)"] mapepire["Mapepire over SSH (optional)"] end

subgraph prod ["IBM i: prod"] db2prod[("Db2 for i")] end

subgraph test ["IBM i: test"] db2test[("Db2 for i")] end

subgraph dev ["IBM i: dev"] db2dev[("Db2 for i")] end

local -->|local process| stdio local -.->|remote URL| http remote -->|OAuth 2.1| http agents -->|bearer token| http stdio & http --> tools tools --> profiles profiles --> odbc & jdbc & mapepire odbc -->|ODBC| db2prod jdbc -->|JDBC| db2test mapepire -->|SSH| db2dev

Features

  • Read-only SQL queries - Execute SELECT statements safely with automatic result limiting, and a query timeout that cancels runaway statements on the IBM i
  • Schema inspection - List all schemas/libraries with optional filtering
  • Table metadata - List tables, describe columns, view indexes and constraints
  • View inspection - List and explore database views
  • Secure by design - Only SELECT queries allowed, credentials via environment variables
  • Docker support - Run as a container for easy deployment
  • HTTP Transport - MCP over Streamable HTTP with token authentication for remote clients and agents
  • OAuth for Remote Clients - Built-in OAuth 2.1 sign-in with the user's own IBM i profile, so claude.ai custom connectors can connect. The sign-in page can carry your company's name, logo, colors and language (Customize for your company)
  • Current MCP spec - Speaks 2026-07-28 and still serves stateless 2025-era clients
  • Dual Transport - Run stdio and HTTP simultaneously
  • Multiple systems - Reach several IBM i systems from one server with DB2I_PROFILES, each with its own driver, credentials, and library allowlist. Tools take an optional system argument. See Multiple systems
  • SSH-only systems - With DB2I_DRIVER=mapepire, reach an IBM i where only SSH is open. Mapepire starts inside the SSH session, with no server install and a host key check. See Using the Mapepire driver
  • Tool selection - Enable or disable individual tools, e.g. a metadata-only mode without execute_query
  • Business SQL tools - Load read-only ERP queries and table notes from YAML, and check the files with mcp-server-db2i validate-tools before the server starts. See Business SQL tools
  • Server instructions - Send the rules no query may miss, such as which flag marks a deleted row, to the model at the start of every session. See Instructions
  • Charts in the chat - Hosts that support MCP Apps show query results as a sortable grid under the tool call, with a chart one click away. When the user asks for a chart, or a YAML tool sets one, it opens on the chart. See Result view
  • Compact responses - Compact JSON by default, or markdown tables to save tokens
  • Statement checks and DDL - Validate object names, return the SQL that recreates an object, and list what depends on a table
  • Catalog search and profiling - Find tables and columns across libraries, check journaling, and profile a table's row counts and value ranges
  • Column masking - Redact sensitive columns, or show only their last four characters, in query results. See Column masking
  • Query exports - Hand the user a CSV or Excel file of a query's results, as a file path over stdio or a short-lived download link over HTTP. The rows never pass through the model. See Query exports
  • Audit log - Record every tool call and sign-in as one JSON line, with the SQL hashed by default. Optionally record the model's reason for each call (MCP_TOOL_INTENT). See Audit log
  • Tool reload - Reload YAML tool files when they change, with MCP_CUSTOM_TOOLS_WATCH=true
  • Resources and prompts - Read table columns and DDL as MCP resources, and start from prompts that explore a library, explain a table, or write a query. See Resources and prompts

Quick Start

Installation
npm install -g mcp-server-db2i

The default odbc driver needs unixODBC and the IBM i Access ODBC Driver on the machine. No Java is needed. The other drivers' packages are not installed by default, so add them next to the server:

npm install -g mcp-server-db2i node-jt400              # DB2I_DRIVER=jt400, needs a JDK to install and a JRE to run

npm install -g mcp-server-db2i @ibm/mapepire-js ssh2 # DB2I_DRIVER=mapepire, when only SSH reaches the IBM i

With npx, pass them with -p, for example npx -y -p mcp-server-db2i@latest -p node-jt400 mcp-server-db2i. See Installing the jt400 and mapepire packages.

Or with Docker:

docker build -t mcp-server-db2i .                  # odbc image (amd64; add --platform linux/amd64 on arm64)

docker build --target jt400 -t mcp-server-db2i . # jt400 image (builds natively on arm64)

Configuration

Create a .env file with your IBM i credentials:

DB2I_HOSTNAME=your-ibm-i-host.com

DB2I_USERNAME=your-username DB2I_PASSWORD=your-password DB2I_SCHEMA=your-default-schema # Optional

Client Setup

Add to your MCP client config (e.g., ~/.cursor/mcp.json):

{

"mcpServers": { "db2i": { "command": "npx", "args": ["-y", "mcp-server-db2i@latest"], "env": { "DB2I_HOSTNAME": "${env:DB2I_HOSTNAME}", "DB2I_USERNAME": "${env:DB2I_USERNAME}", "DB2I_PASSWORD": "${env:DB2I_PASSWORD}" } } } }

This uses environment variable expansion to keep credentials out of config files. Set the variables in your shell profile (~/.zshrc or ~/.bashrc).

See the Client Setup Guide for Cursor, Claude Desktop, Claude Code, and Docker setup options.

No MCP client? The example web app is a browser chat with result tables, exports and the business SQL tools. Users sign in with their IBM i user profile and bring their own model API key.

Available Tools

ToolDescription
execute_queryExecute read-only SELECT queries, with an optional chart hint for the result view
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
list_schemasList schemas/libraries (with optional filter)
list_tablesList tables in a schema (with optional filter)
search_tablesFind tables by name or description across libraries
search_columnsFind columns by name or description across libraries
describe_tableGet detailed column information
list_viewsList views in a schema (with optional filter)
list_indexesList SQL indexes for a table
get_table_constraintsGet primary keys, foreign keys, unique constraints
list_routinesList SQL procedures and functions in a library, with language, external program, and SQL data access
describe_routineParameters, return value or result columns, and a call template for a procedure or function
validate_queryCheck a statement without running it, including catalog names
get_object_ddlReturn the SQL DDL that recreates an object
get_related_objectsList objects that depend on a table
get_journal_infoList journal, images, and primary key per table, and flag tables a replication tool cannot read
index_adviceList the indexes the query optimizer asked for in a library, merged and ranked by temporary index use
profile_tableRow count, last change, and per-column distinct and null counts from stored statistics or a scan
get_business_contextList business descriptions, row filters and relations loaded from YAML
search_ibmi_servicesFind IBM i services by keyword or category, with the release that added each one and an example query

In hosts that support MCP Apps, results from execute_query, profile_table and business SQL tools open as a grid and a chart under the tool call. See Result view.

<source media="(prefers-color-scheme: dark)" srcset="docs/assets/result-view

冒頭だけを表示しています。続きはリポジトリで読めます

PopNxに聞く