Ibmz

io.github.ExpertVagabondPublished by GitHub account ExpertVagabondv1.0.1Updated Oct 24, 2026

IBM Z mainframe MCP server - Key Protect HSM & z/OS

Overview

AI-generated overview

A local MCP server that lets an assistant manage IBM Key Protect HSM encryption keys and call IBM Z mainframe services through z/OS Connect.

What you can do
List, create, inspect, rotate and delete Key Protect encryption keys, and read their rotation and dual-auth policies. Wrap and unwrap data encryption keys with a root key held in the HSM. List mainframe services and outbound API configurations, and read a service's details and OpenAPI spec. Call mainframe programs (CICS, IMS, batch) over REST, with JSON mapped to COBOL. Check z/OS Connect server health.
When to use it
Worth adding when an assistant needs to work with IBM Cloud Key Protect key lifecycles or reach IBM Z mainframe transactions and programs through z/OS Connect, for example during mainframe integration or key-management tasks.
Requirements
Runs locally as a Node.js process installed from the npm package. Needs an IBM Cloud API key and a Key Protect instance ID, plus a Key Protect endpoint URL (defaults to us-south). For z/OS Connect it needs a base URL, mainframe username and password, supplied through environment variables. Network access to IBM Cloud and the mainframe endpoint.
Before you install
Requires an IBM Cloud API key and mainframe username and password as environment variables, so protect the configuration file. Key creation, rotation and deletion change real key material, and deletion is irreversible. Calling mainframe services can run transactions and batch jobs that change production data. Key wrap and unwrap operations expose plaintext data keys to the assistant's context.

Installation

In SourceWeft

  1. Open Ibmz in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.

Other MCP clients

Follow the launch instructions in the repository.

README

ibmz-mcp-server

[!License: MIT](https://opensource.org/licenses/MIT) [!MCP](https://modelcontextprotocol.io) [!npm](https://www.npmjs.com/package/ibmz-mcp-server)

MCP server for IBM Z mainframe integration. Provides HSM-backed key management via IBM Key Protect (FIPS 140-2 Level 3) and REST API access to mainframe programs (CICS, IMS, batch) via z/OS Connect.

Tools (12 total)

Key Protect -- HSM Key Management

ToolDescription
key_protect_list_keysList encryption keys in Key Protect
key_protect_create_keyCreate root or standard keys
key_protect_get_keyGet key details and metadata
key_protect_wrap_keyWrap (encrypt) a DEK with a root key
key_protect_unwrap_keyUnwrap (decrypt) a wrapped DEK
key_protect_rotate_keyRotate a root key
key_protect_delete_keyDelete a key (irreversible)
key_protect_get_key_policiesGet rotation and dual-auth policies

z/OS Connect -- Mainframe Integration

ToolDescription
zos_connect_list_servicesList available mainframe services
zos_connect_get_serviceGet service details and OpenAPI spec
zos_connect_call_serviceCall a mainframe program via REST (JSON to COBOL)
zos_connect_list_apisList outbound API configurations
zos_connect_healthCheck z/OS Connect server health

Install

bash
npm install

Configuration

json
{  "mcpServers": {    "ibmz": {      "type": "stdio",      "command": "node",      "args": ["/path/to/ibmz-mcp-server/index.js"],      "env": {        "IBM_CLOUD_API_KEY": "your-api-key",        "KEY_PROTECT_INSTANCE_ID": "your-instance-id",        "KEY_PROTECT_URL": "https://us-south.kms.cloud.ibm.com"      }    }  }}

Environment Variables

VariableDescriptionRequired
IBM_CLOUD_API_KEYIBM Cloud API keyYes (Key Protect)
KEY_PROTECT_INSTANCE_IDKey Protect instance OCIDYes (Key Protect)
KEY_PROTECT_URLKey Protect endpointNo (defaults to us-south)
ZOS_CONNECT_URLz/OS Connect base URLYes (z/OS Connect)
ZOS_CONNECT_USERNAMEMainframe usernameYes (z/OS Connect)
ZOS_CONNECT_PASSWORDMainframe passwordYes (z/OS Connect)

Key Concepts

Envelope Encryption

Root keys (KEK) are stored in the HSM and never leave the hardware. Data encryption keys (DEK) are wrapped by root keys for safe storage alongside ciphertext.

z/OS Connect

REST APIs that automatically map JSON payloads to COBOL copybooks, enabling access to CICS transactions, IMS programs, and batch jobs.

Dependencies

  • @modelcontextprotocol/sdk -- MCP protocol SDK
  • @ibm-cloud/ibm-key-protect -- Key Protect client
  • ibm-cloud-sdk-core -- IBM Cloud authentication

License

MIT

Source: README.md at commit 9c5169f

Tools

0
SourceWeft has not started this package in its sandbox yet, so its tools are not known.

Version history

1
  1. v1.0.1LatestSep 16, 2026

Score

50% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 days25 pts

    Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.

  • Auth declared10 pts

    Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.

  • Tools listed15 pts

    Answer tools/list without a credential, or ship a package that starts in a sandbox without one.

  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts