IBM DB2 for i MCP server
Read-only SQL queries and schema inspection for IBM DB2 for i (AS/400). Requires Java.
not scanned yet
20 stars125 downloads/wk
Reviews
Write oneNobody has reviewed IBM DB2 for i yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
IBM DB2 for i tools
No tool declarations could be read from the package source. They show once the server is installed.
What the publisher says
From the IBM DB2 for i repository's README, as published. We do not edit it. Read it on GitHub
mcp-server-db2i
A Model Context Protocol (MCP) server for IBM DB2 for i (DB2i). This server enables AI assistants like Claude and Cursor to query and inspect IBM i databases using the JT400 JDBC driver.
Listed in the MCP Registry as io.github.Strom-Capital/mcp-server-db2i.
Architecture
AI clients connect to the MCP Server via stdio (IDEs) or HTTP (agents), which executes read-only queries against DB2 for i using the JT400 JDBC driver.
graph LR
subgraph clients ["AI Clients"]
claude("Claude")
cursor("Cursor IDE")
agents("Custom Agents")
end
subgraph server ["MCP Server"]
stdio["stdio"]
http["HTTP + Auth"]
tools[["MCP Tools"]]
jdbc["JT400 JDBC"]
end
subgraph ibmi ["IBM i"]
db2[("DB2 for i")]
end
claude & cursor -->|MCP Protocol| stdio
agents -->|REST API| http
stdio & http --> tools
tools --> jdbc
jdbc -->|JDBC| db2Features
- Read-only SQL queries - Execute SELECT statements safely with automatic result limiting
- 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 - REST API with token authentication for web/agent integration
- Current MCP spec - Speaks 2026-07-28 and still serves stateless 2025-era clients
- Dual Transport - Run stdio and HTTP simultaneously
- 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. See Business SQL tools
- Compact responses - Compact JSON by default, or markdown tables to save tokens
Quick Start
Installation
npm install -g mcp-server-db2iOr with Docker:
docker build -t mcp-server-db2i .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 # OptionalShortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
Install directly
Runs npx -y mcp-server-db2i on your machine. Read the scan report first; the gateway never runs local packages.
claude mcp add mcp-server-db2i -- npx -y mcp-server-db2i
IBM DB2 for i: common questions
- Is IBM DB2 for i MCP server safe?
- Yes, by our scan: it is graded A (85/100). Read the IBM DB2 for i safety report
- How do I install IBM DB2 for i?
- It runs on your machine. Copy the Claude Code, Claude Desktop or Cursor config from the install section.
- Does IBM DB2 for i need an API key?
- Yes. The registry entry asks for
DB2I_PASSWORD. - Is IBM DB2 for i maintained?
- The last commit was in the last day (2026-09-23). The latest release is v2.5.1.
- What can I use instead of IBM DB2 for i?
- Servers from other publishers that do the same job: LINQ to DB MCP server, Grain MCP server and Snowflake MCP Server. Compare all IBM DB2 for i alternatives.
Alternatives to IBM DB2 for i
Same job from other publishers: the closest match first, then the best rated.
- LINQ to DBInspect database schemas and execute SQL queries across multiple database providers with LINQ to DB.not reviewedEstablishedA
GrainRun SQL queries and inspect database schemas through safe, visible MCP tools.not reviewedGrowingB- Snowflake MCP ServerA Snowflake MCP server — SQL queries, schema exploration, and data insights for AI assistantsnot reviewedGrowingB
- Schemacrawler AIEnables natural language schema queries — explore tables, keys, procedures, and get SQL help fastnot reviewedGrowingB
- Microsoft SQL ServerRead-only-by-default SQL Server: schema, parameterized SELECT, execution plans; writes opt-in.not reviewedGrowingB