npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

db2-zos-mcp

v1.0.1

Published

MCP server for IBM DB2 z/OS — connect any MCP-compatible AI assistant to a DB2 z/OS database

Readme

db2-zos-mcp

MCP (Model Context Protocol) server for IBM DB2 z/OS. Connect GitHub Copilot (or any MCP client) to a DB2 z/OS database via environment variables.

Prerequisites

You need IBM Data Server Driver for ODBC and CLI installed on your machine. Download from IBM Fix Central:

After installation, set the IBM_DB_HOME environment variable to the driver path (e.g. C:\Program Files\IBM\IBM DATA SERVER DRIVER).

Usage via npx (no install needed)

npx db2-zos-mcp

GitHub Copilot — mcp.json configuration

Add this to your .github/copilot/mcp.json (workspace) or %APPDATA%\GitHub Copilot\mcp.json (user-level).

Option A — connection URL (recommended)

{
  "servers": {
    "db2-zos": {
      "command": "npx",
      "args": ["-y", "db2-zos-mcp"],
      "env": {
        "DB2_URL": "db2://hostname.inps.it:446/DBNAME",
        "DB2_USERNAME": "myuser",
        "DB2_PASSWORD": "mypassword",
        "DB2_SSL": "true",
        "DB2_CURRENT_SCHEMA": "MYSCHEMA"
      }
    }
  }
}

Option B — individual parameters

{
  "servers": {
    "db2-zos": {
      "command": "npx",
      "args": ["-y", "db2-zos-mcp"],
      "env": {
        "DB2_HOST": "hostname.inps.it",
        "DB2_PORT": "446",
        "DB2_DATABASE": "DBNAME",
        "DB2_USERNAME": "myuser",
        "DB2_PASSWORD": "mypassword",
        "DB2_SSL": "true",
        "DB2_CURRENT_SCHEMA": "MYSCHEMA"
      }
    }
  }
}

Environment Variables

| Variable | Required | Default | Description | |---|---|---|---| | DB2_URL | ✅ (or HOST+DB) | — | Connection URL: db2://host:port/database — takes priority over individual params | | DB2_HOST | ✅ (if no URL) | — | DB2 z/OS hostname or IP | | DB2_PORT | ❌ | 446 | DB2 port (446 = SSL, 50000 = plain) — ignored when DB2_URL is set | | DB2_DATABASE | ✅ (if no URL) | — | Database/location name — ignored when DB2_URL is set | | DB2_USERNAME | ✅ | — | DB2 username | | DB2_PASSWORD | ✅ | — | DB2 password | | DB2_SCHEMA | ❌ | — | Default schema for table/column lookups | | DB2_SSL | ❌ | true | Enable SSL (true/false) | | DB2_SSL_SERVER_CERTIFICATE | ❌ | — | Path to SSL server certificate file | | DB2_CURRENT_SCHEMA | ❌ | — | Sets the CURRENT SCHEMA special register | | DB2_CONNECT_TIMEOUT | ❌ | 30 | Connection timeout in seconds | | DB2_QUERY_TIMEOUT | ❌ | 60 | Query timeout in seconds |

Available Tools

| Tool | Description | |---|---| | db2_read | Execute a read-only SELECT/WITH query | | db2_write | Execute INSERT/UPDATE/DELETE/DDL — always previews before running | | db2_get_tables | List tables/views, optionally filtered by schema | | db2_get_columns | Show column definitions for a table | | db2_get_schemas | List all non-system schemas | | db2_test_connection | Verify connectivity with the configured parameters |

Claude Desktop / Other MCP clients

{
  "mcpServers": {
    "db2-zos": {
      "command": "npx",
      "args": ["-y", "db2-zos-mcp"],
      "env": {
        "DB2_URL": "db2://hostname.inps.it:446/DBNAME",
        "DB2_USERNAME": "user",
        "DB2_PASSWORD": "password"
      }
    }
  }
}