mainframe-mcp-server
io.github.NotHarshhaa/mainframe-mcp-server
About mainframe-mcp-server
mainframe-mcp-server is an MCP server published by the GitHub account NotHarshhaa. MCP server for IBM z/OS jobs, datasets, USS, and operational diagnostics via Zowe SDK.
It runs on your own machine: your AI client starts it from the npm package @notharshhaa/mainframe-mcp-server at version 3.0.0.
It asks for 2 secrets: ZOSMF_PASSWORD and ZOSMF_TOKEN. Give it a key with the least access that still works.
It also needs ZOSMF_HOST set before it starts.
Version 3.0.0 was published on 25 October 2026, and the source code is public, so you can read it before installing.
Written from the registry entry. 9 automated checks on the registry entry and the package code: 7 pass, 0 warn, 0 fail, 2 info. How we check.
What it asks for
| Variable | Required | Secret | Description |
|---|---|---|---|
ZOSMF_HOST | Yes | No | z/OSMF hostname or IP address |
ZOSMF_PORT | No | No | z/OSMF HTTPS port (default 443) |
ZOSMF_BASE_PATH | No | No | Optional API gateway or mediation layer prefix for z/OSMF |
ZOSMF_USER | No | No | z/OS user id (required with ZOSMF_PASSWORD unless ZOSMF_TOKEN is set) |
ZOSMF_PASSWORD | No | Yes | Password for basic auth (required with ZOSMF_USER unless ZOSMF_TOKEN is set) |
ZOSMF_TOKEN | No | Yes | Auth token (alternative to user/password) |
ZOSMF_TOKEN_TYPE | No | No | Token type when using ZOSMF_TOKEN (e.g. LTPA2) |
ZOSMF_REJECT_UNAUTHORIZED | No | No | Verify TLS certificates (true in production) |
ZOSMF_CERT | No | No | PEM client certificate file path for mTLS auth |
ZOSMF_CERT_KEY | No | No | PEM client key file path for mTLS auth (required with ZOSMF_CERT) |
ZOSMF_TOKEN_FILE | No | No | Read ZOSMF_TOKEN from this file at startup (vault/agent injection) |
ZOSMF_USER_ID | No | No | End-user id for PassTicket identity propagation (RACF sees this user, not the service account) |
ZOSMF_PASSTICKET_APP | No | No | RACF PTKTDATA application name for PassTicket generation (default ZOSMF) |
ZOWE_TEAM_CONFIG | No | No | Path to a zowe.config.json to import connection settings from (env vars win) |
ZOSMF_PROFILE | No | No | Profile name inside the Zowe team config (defaults to defaults.zosmf) |
LOG_LEVEL | No | No | Log level: fatal, error, warn, info, debug, trace, silent |
MCP_TRANSPORT | No | No | Transport: stdio (IDE) or sse (legacy HTTP+SSE for container/network deployments) |
MCP_SSE_PORT | No | No | Listen port when MCP_TRANSPORT=sse |
MAX_JOB_OUTPUT_LINES | No | No | Max lines returned from a single spool DD |
MAX_DATASET_READ_LINES | No | No | Max lines returned from dataset or USS reads |
MAX_JES_SPOOL_FILES | No | No | Max spool files fetched during diagnostics |
MAX_AUDIT_LINES | No | No | Max RACF audit log lines per query |
CMCI_CONTEXT | No | No | CICSplex name or region APPLID (required for CICS tools) |
CMCI_HOST | No | No | CMCI hostname (defaults to ZOSMF_HOST) |
CMCI_PORT | No | No | CMCI HTTPS port (default 1490) |
CMCI_BASE_PATH | No | No | CMCI REST base path |
DB2_LOCATION | No | No | Db2 subsystem location name (required for Db2 tools) |
DB2_HOST | No | No | Db2 REST hostname (defaults to ZOSMF_HOST) |
DB2_PORT | No | No | Db2 REST port (default 50400) |
DB2_BASE_PATH | No | No | Db2 REST base path |
SMF_SUMMARY_DATASET | No | No | Optional SMF summary dataset for offline metrics |
RMF_METRICS_ENABLED | No | No | Query z/OSMF RMF metrics when available |
RACF_AUDIT_USS_PATH | No | No | USS path to RACF audit log file |
RACF_AUDIT_DATASET | No | No | Sequential dataset containing RACF audit records |
SECURITY_READ_ONLY | No | No | When true (default), blocks write tools such as submit_jcl |
SECURITY_ALLOWED_TOOLS | No | No | Comma-separated allowlist of MCP tool names |
SECURITY_BLOCKED_TOOLS | No | No | Comma-separated blocklist of MCP tool names |
SECURITY_ALLOWED_DATASET_PATTERNS | No | No | Comma-separated dataset patterns (e.g. USERDEV.*,SYS1.*) |
SECURITY_ALLOWED_USS_PATHS | No | No | Comma-separated USS path prefixes |
SECURITY_AUDIT_LOGGING | No | No | Log every tool invocation to stderr (SIEM-friendly JSON) |
SECURITY_MAX_JCL_BYTES | No | No | Maximum inline JCL size for submit_jcl |
SECURITY_WRITE_APPROVAL | No | No | Human-in-the-loop: submit_jcl returns a one-time token and approve_write executes (default false) |
SECURITY_JCL_SCAN | No | No | Pre-flight scan JCL before submission: IDCAMS DELETE, IEFBR14 DISP DELETE, blocked utilities (default true) |
SECURITY_JCL_SCAN_STRICT | No | No | Strict scan mode: WARN findings also block submissions (default false) |
SECURITY_BLOCKED_PROGRAMS | No | No | Comma-separated EXEC programs that may never run (extends ADRDSSU,ICKDSF,IEHINITT) |
SECURITY_BLOCKED_JOB_CLASSES | No | No | Comma-separated JES job classes that may never be used |
SECURITY_CHANGE_TICKET_PATTERN | No | No | Regex a changeTicket argument must match on writes, e.g. CHG[0-9]{6} |
SECURITY_WRITE_WINDOW | No | No | Allowed write window, 24h HH:MM-HH:MM (overnight ranges allowed), e.g. 08:00-18:00 |
SECURITY_WRITE_DAYS | No | No | Weekdays writes are allowed: 0=Sun..6=Sat, e.g. 1-5 |
SECURITY_WRITE_WINDOW_TZ | No | No | IANA timezone for the write window (default UTC) |
Checks
| Check | Result | Detail |
|---|---|---|
| Source repository linked | Pass | https://github.com/NotHarshhaa/mainframe-mcp-server |
| Version pinned | Pass | Every package has an explicit version |
| Secrets requested | Info | Asks for 2 secrets: ZOSMF_PASSWORD, ZOSMF_TOKEN |
| Known package registry | Pass | All packages come from npm, PyPI, OCI, NuGet or MCPB |
| Namespace ownership | Info | Name verified via GitHub account NotHarshhaa |
| Registry text aimed at the AI | Pass | Description and settings contain no hidden characters or instructions to the AI |
| Install scripts | Pass | @notharshhaa/mainframe-mcp-server@3.0.0 runs nothing at install |
| Code red flags | Pass | Read 202 files in @notharshhaa/mainframe-mcp-server@3.0.0: no obfuscation, encoded execution, credential reads or data-collection endpoints found |
| Text aimed at the AI | Pass | No hidden characters or instructions to the AI in 202 files, including comments and the README |
Popularity & health: 53 / 100
Worked out from public numbers and our own checks, not from user reviews or ratings. It says how used and how looked-after a server is, not whether it is safe.
0 forks, 0 merged pull requests. Sources: GitHub, npm, PyPI (pypistats.org) and Hacker News (Algolia), fetched 2026-10-31.
What people say
No Hacker News threads link to its source code.
Look further: search Reddit, search Hacker News, read its GitHub issues. These are not reviews we checked.
Facts
| Registry name | io.github.NotHarshhaa/mainframe-mcp-server |
|---|---|
| Publisher | GitHub account NotHarshhaa |
| How the name is verified | Name verified via GitHub account NotHarshhaa. The registry ties the name prefix to that account or domain; it does not check the code. |
| Type | Local: runs on your machine from a package |
| Packages | npm @notharshhaa/mainframe-mcp-server 3.0.0 (stdio) |
| Version | 3.0.0 |
| Published | |
| Last updated | |
| Source repository | https://github.com/NotHarshhaa/mainframe-mcp-server |
| Website | None linked |
| Category | Databases & data (assigned by keyword rule, not by hand) |
Related servers in Databases & data
- Financial Evidence Workspace4/4Read-only cited financial datasets, bounded research queries and…
- IBM Db2 for i7/7Read-only SQL queries and schema inspection for IBM Db2 for i over…
- DataPulse4/4Read-only discovery for 440 Malaysian public datasets with…
Sanity3/3Direct access to your Sanity projects (content, datasets, releases,…- Islam West Africa Collection (IWAC)4/5Read-only access to the Islam West Africa Collection via Hugging…
- Siftable8/8Siftable MCP server for governed work, knowledge, calendar, people,…