Skip to content
Zcrafter Bridge logo
MCP server
Registry

Zcrafter Bridge MCP Server

IBM z/OS mainframe tools for AI agents. Every change needs a person's approval.

Zcrafter Bridge scores 66 (Good), licensed MIT and written in Python. It installs as a local process. It does not declare tools yet. Filed under AI and memory. GitHub shows 5 stars. Install configs are generated for 12 clients. Being listed in the registry is not the same as being vendor-official.

by zcrafteraiMITPython5 stars
Trust score
66Good
Trust score 66 of 100, Good

Good trust

66 of 100 from six public signals. Nobody can buy a point.

  • Listed in the official MCP registry.
  • OSI-style license: mit.
How we score trust
Scorecard

License, quality and maintenance

How grades work
Trust breakdown

Where the 66 comes from

22 + 20 + 3 + 10 + 4 + 7 = 66. Each factor is capped, so no single signal can carry a listing.

Registry22 / 30

Active in the official MCP registry, plus a known vendor namespace.

Registry: 22 of 30 points.
Maintenance20 / 20

How recently the repository saw a commit or release.

Maintenance: 20 of 20 points.
Popularity3 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 3 of 20 points.
License10 / 10

A clear, OSI-style open-source license.

License: 10 of 10 points.
Security4 / 10

Not archived, a secure install path, a pinned version.

Security: 4 of 10 points.
Docs7 / 10

A real summary, a README with depth, listed tools.

Docs: 7 of 10 points.

Install

Pick your client, copy the config, paste it in.

Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.

~/Library/Application Support/Claude/claude_desktop_config.json
{  "mcpServers": {    "zcrafterai-bridge": {      "command": "uvx",      "args": [        "zcrafter-bridge"      ],      "env": {        "MAINFRAME_WORKFLOW_ZOWE_PROFILE": "",        "ZOWE_OPT_HOST": "",        "ZOWE_OPT_USER": "",        "ZOWE_OPT_PASSWORD": "YOUR_ZOWE_OPT_PASSWORD",        "MAINFRAME_WORKFLOW_READ_ONLY": "",        "MAINFRAME_WORKFLOW_PROTECTED_DATASETS": ""      }    }  }}

Environment variables

NameRequiredNotes
MAINFRAME_WORKFLOW_ZOWE_PROFILEOptionalZowe z/OSMF profile to use. Defaults to the profile named default.
ZOWE_OPT_HOSTOptionalz/OSMF host, when not using a Zowe profile.
ZOWE_OPT_USEROptionalMainframe user ID, when not using a Zowe profile.
ZOWE_OPT_PASSWORDSecretOptionalMainframe password, when not using a Zowe profile.
MAINFRAME_WORKFLOW_READ_ONLYOptionalSet to true to offer no tool that changes anything.
MAINFRAME_WORKFLOW_PROTECTED_DATASETSOptionalComma-separated dataset patterns nothing may write to, e.g. SYS1.**,*.PROD.**

Tools show up when the registry metadata or the repository README lists them. Public READMEs are read directly. A GitHub token is used only when one is already configured.

About

Zcrafter Bridge: MCP server for IBM z/OS mainframes

PyPI Tests License: MIT

Give AI Agents real access to your mainframe and keep it from changing anything you haven't approved.

Zcrafter Bridge is an open-source Model Context Protocol (MCP) server for IBM z/OS. It lets AI agents such as Claude Code, Codex, Cursor, GitHub Copilot in VS Code and Gemini CLI work on a mainframe: datasets and PDS members, COBOL and JCL, batch jobs and spool, z/OS UNIX files, TSO commands and the operator console.

  • 53 tools over z/OSMF and the Zowe SDK. Nothing is installed on the mainframe.
  • Built for how an agent works. One call says why a job failed. One call runs a job and reports the result. An edit is checked before you are asked to approve it.
  • A person approves every change. The agent cannot approve its own work, and an approval covers only the steps it lists.
  • One line to install, on macOS, Linux and Windows.

What's an MCP server?

MCP is how AI agents talk to outside systems. An MCP server hands AI a set of tools it can call. Bridge is an MCP server whose tools are your mainframe - datasets, members, z/OS UNIX files, jobs, spool, TSO and the operator console, with an approval gate in front of anything that changes the system.

Install it once, point your AI client at it, then just talk.


Install

One line, on macOS and Linux:

curl -fsSL https://raw.githubusercontent.com/ZcrafterAI/Bridge/main/install.sh | sh

Or directly with uv, on any system including Windows:

uv tool install zcrafter-bridge

Either way you get one command, zcrafter-bridge. Bridge is on PyPI and in the official MCP Registry as io.github.ZcrafterAI/bridge. To run it with no install step at all, use uvx zcrafter-bridge as the command in your client. It needs Python 3.11 or newer, which uv fetches for you. It no longer needs Node.

What the installer does: it finds uv (or installs it for your user), then runs uv tool install, which puts Bridge and its dependencies in a folder of their own under your home directory. It uses no sudo and changes nothing system-wide. You can read it first: install.sh. To remove Bridge: uv tool uninstall zcrafter-bridge.

Connect your AI client

ClientHow
Claude Codeclaude mcp add zcrafter-bridge -- zcrafter-bridge
Codexcodex mcp add zcrafter-bridge -- zcrafter-bridge
Claude Desktop, Cursor, Gemini CLIAdd the JSON below to the client's MCP settings
VS CodeThe same entry under "servers" in .vscode/mcp.json
{
  "mcpServers": {
    "zcrafter-bridge": { "command": "zcrafter-bridge" }
  }
}

Claude Code users can also install the skill that teaches the agent the approval flow:

zcrafter-bridge install-skill

Connect your mainframe

Bridge signs in to z/OSMF as you. It looks for your sign-in in this order:

  1. Environment variables: ZOWE_OPT_HOST, ZOWE_OPT_USER, ZOWE_OPT_PASSWORD (and optionally ZOWE_OPT_PORT, ZOWE_OPT_REJECT_UNAUTHORIZED, ZOWE_OPT_BASE_PATH). These are Zowe CLI's own names.
  2. Your Zowe profile: ~/.zowe/zowe.config.json, with the password read from your operating system's keychain, where zowe config secure put it. Test the profile with zowe zosmf check status.

No password is stored by Bridge, and none is ever sent to the AI model.


How the gate works

Reading is free. Listing datasets, reading members, checking jobs, searching spool — no approval needed.

Changing anything is gated. Before an agent can write a member, submit a job, run a command or delete a dataset, it must:

  1. Open a request
  2. Write a spec (what changes and why) and get your yes
  3. Write a plan that lists every change as a step, and get your yes

Only you can say yes. The agent can ask for an approval. It cannot give one. Bridge asks you directly, outside the agent's reach:

  • in your AI client's own prompt, when the client has one, or
  • on a page Bridge opens in your browser, on your machine only, or
  • in a terminal, with zcrafter-bridge approve, on a machine with no browser.

The page's address carries a one-time token the agent never sees, so an agent that can browse still cannot press Approve.

Your yes covers the listed steps and nothing else. Each step names one tool and its target, for example member.write on PAY.TEST.COBOL(PAYCALC). After approval a change runs only if it matches a step, and each step runs once unless the plan says more. A command step fixes the exact command. A step can also fix the exact content, diff or JCL, and then that is what must be sent.

The agent triesIt gets
A change before you approvedPLAN_NOT_APPROVED
To approve its own planWAITING_FOR_PERSON, and you get asked
A change the plan did not listSTEP_NOT_IN_PLAN
A change to a protected datasetPROTECTED_DATASET

Editing the spec after approval un-approves the plan too. Every change is logged with its inputs; passwords are redacted, diffs are hashed.


Tools

53 tools. The ones in italics change the system, so they need an approved plan step.

Datasetslist, info, read, write, create, create like, delete, rename, copy, recall, migrate
Memberslist, read, search, preview, write, patch, delete, rename
z/OS UNIX fileslist, read, write, create, delete, rename, chmod
Jobslist, status, steps, failed jobs, diagnose, wait, JCL, spool, output, submit, run, cancel, purge, hold, release, change class
JCL and codesjcl.analyze reads JCL without submitting it, abend.explain explains a completion code
TSOtso.query for read-only commands (LISTCAT, LISTDS, LISTUSER...), tso.command for anything else
Operator consoleconsole.command
Systemlist systems, verify connection, list profiles, search the tool catalog

Built for how an agent works

A person at a terminal can look around. An agent pays for every line it reads and every call it makes, so Bridge answers the question it actually has.

The agent wants toIt callsIt gets
Know why a job failedjob.diagnoseThe failed step and program, the completion code and what it means, the lines of the log that say why, and what to check next
Run a job and see the resultjob.runSubmit, wait and result as one approved step, with the same diagnosis when the job fails
Know what a code meansabend.explainS0C7, SB37, S806, U4038, CC 0012, JCL ERROR: the meaning, the usual cause, what to check. Needs no connection
Know what a job touchesjcl.analyzeEach step and its program, every dataset it reads, creates, updates or deletes, and syntax problems by line, without submitting anything
Check an edit before asking youmember.previewThe diff against what is there now, whether a patch applies, and what would go wrong: lines longer than the record length, tabs, curly quotes and other characters the mainframe cannot store, COBOL or JCL past its last column

job.failed lists the jobs that ended badly, so an agent can start from the failure instead of reading every log.

Reads stay small. member.read, dataset.read, uss.read, job.output and job.spool.read accept searchText (with regex and contextLines), startLine/endLine and maxLines, so an agent finds one line in a 40,000-line job log and reads the twenty around it instead of pulling the whole thing into context. job.output can also return one DD or one step. Job output longer than 2,000 lines is cut, and the result says so and how to get the rest.

Errors say what to do. When z/OSMF refuses something, the error carries a hint: the dataset is migrated, the member is open somewhere else, the diff no longer applies, the sign-in was refused.

Prompts. Clients that show MCP prompts get three: diagnose-failed-job, change-with-approval and explore-application.


Configuration

Copy .env.example to .env to change defaults.

VariableDefault
MAINFRAME_WORKFLOW_ZOWE_PROFILEdefaultWhich Zowe profile to use
MAINFRAME_WORKFLOW_DB_PATH~/.zcrafter-bridge/state.dbWhere requests are stored
MAINFRAME_WORKFLOW_IDLE_DAYS14Abandon untouched requests after
MAINFRAME_WORKFLOW_RETENTION_DAYS90Archive finished requests after
MAINFRAME_WORKFLOW_APIML_BASE_PATH—Set if z/OSMF is behind API ML
MAINFRAME_WORKFLOW_APPROVALautoHow you approve: auto (your AI client's prompt, else a browser page), prompt, browser, terminal
MAINFRAME_WORKFLOW_APPROVAL_WAIT_SECONDS60How long one approval call waits for you before telling the agent to ask again
MAINFRAME_WORKFLOW_READ_ONLYfalsetrue offers no tool that changes anything
MAINFRAME_WORKFLOW_PROTECTED_DATASETS—Patterns the dataset and member tools may never write to, e.g. SYS1.**,*.PROD.**
MAINFRAME_WORKFLOW_TSO_ACCOUNTACCTTSO account number, used on z/OSMF without the one-request TSO interface
MAINFRAME_WORKFLOW_MAX_OUTPUT_LINES2000Job output longer than this is cut unless the call sets maxLines. 0 for no cap
MAINFRAME_WORKFLOW_HTTP_TIMEOUT_SECONDS30How long one z/OSMF call may take

MAINFRAME_WORKFLOW_APPROVAL=unsafe-agent turns the person off: the agent's own call counts as approval. It exists for automated runs against throwaway systems. Do not use it on a mainframe you care about.


Troubleshooting

Zowe config not found — Bridge reads ~/.zowe/zowe.config.json. Run zowe config list to confirm you have one, or set ZOWE_OPT_HOST, ZOWE_OPT_USER and ZOWE_OPT_PASSWORD.

z/OSMF profile "default" not found — your profile has another name. Run zowe config list profiles, then set MAINFRAME_WORKFLOW_ZOWE_PROFILE in .env.

...is missing host, user or password — credentials aren't in your OS keychain. Re-run zowe config secure.

could not read the OS keychain — the machine has no keychain Bridge can open (common on servers and in containers). Use the ZOWE_OPT_* variables there.

Claude says a tool isn't allowed — approve it when prompted, or check claude mcp list.

The agent says an approval is waiting but nothing opened — the address is printed in the server's log (stderr), or run zcrafter-bridge approve in a terminal.

STEP_NOT_IN_PLAN — the agent tried a change you did not approve. It has to write a new plan revision that lists it and ask you again.

tso.command or console.command answers 401 or 403 — your user ID needs TSO or EMCS console authority on the mainframe. Bridge cannot grant it.


Development

git clone https://github.com/ZcrafterAI/Bridge.git && cd Bridge
python -m venv .venv && source .venv/bin/activate    # Windows: .venv\Scripts\activate
pip install -e ".[dev]"
pytest                                               # 236 tests, no mainframe needed
python -m mainframe_workflow_mcp.cli                 # run from source

credential-resolver/ is the older Node helper for reading the Zowe keychain. Bridge reads the keychain itself now and only falls back to the helper if you have built it (cd credential-resolver && npm install && npm run build).

Architecture notes: docs/architecture.md. The tool catalog lives in mainframe_workflow_mcp/toolbox/ and the z/OSMF calls in mainframe_workflow_mcp/clients/.


Questions

What is Zcrafter Bridge? An MCP server that connects AI agents to an IBM z/OS mainframe through z/OSMF, with a person approving every change.

Which AI clients work with it? Any client that speaks MCP over stdio: Claude Code, Claude Desktop, OpenAI Codex, Cursor, VS Code with GitHub Copilot, Gemini CLI and others.

What does it need on the mainframe? z/OSMF switched on and a user ID. Nothing is installed on z/OS. It uses your existing Zowe profile, or three environment variables.

Can the AI change my mainframe without asking? No. Reading needs no approval. Any change needs a plan you approve, on a channel the agent cannot reach, and only the changes that plan lists can run.

Does it work with COBOL and JCL? Yes. It reads and edits members, applies diffs, checks an edit against the dataset's record length and column rules before writing it, reads JCL into its steps and datasets, runs a job to its end, and says which step failed, with what code and why.

How is it different from Zowe CLI? Zowe CLI is a command line for people. Bridge gives an AI agent the same z/OSMF operations as tools, built on the Zowe SDK, and puts an approval gate and an audit log in front of anything that changes the system.

Whose permissions does it use? Yours. Bridge signs in as your user ID, so your site's security rules (RACF, ACF2 or Top Secret) apply to everything the agent does.

Is it free? Yes, MIT licensed.

Who makes it? Zcrafter, which builds AI agents for the mainframe.


MIT licensed. Contributions welcome — see CONTRIBUTING.md.

Frequently asked questions

What is Zcrafter Bridge MCP Server?

IBM z/OS mainframe tools for AI agents. Every change needs a person's approval.

How do I install Zcrafter Bridge MCP Server in Claude Desktop, Cursor, or VS Code?

Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. Zcrafter Bridge MCP Server runs locally from the PyPI package zcrafter-bridge with the command uvx zcrafter-bridge.

Is Zcrafter Bridge MCP Server free and open source?

Yes. Zcrafter Bridge MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.

Does Zcrafter Bridge MCP Server support remote (HTTP) connections?

No remote endpoint is listed for Zcrafter Bridge MCP Server. It runs locally on your machine over stdio, started by your MCP client.

How is Zcrafter Bridge MCP Server's trust score calculated?

Zcrafter Bridge MCP Server scores 66 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.

Reviews

No reviews yet

—Be the first to review

5 star0 reviews at 5 stars
4 star0 reviews at 4 stars
3 star0 reviews at 3 stars
2 star0 reviews at 2 stars
1 star0 reviews at 1 stars

No published reviews yet. Used it? Tell the next person how it went.

Add badge to your README

Paste either snippet into the repository README. The image links to this listing.

Listed on MCPpedia

Top 5 MCP servers

Daily or weekly. Confirm by email, unsubscribe any time.

How often

Manage this listing

Claim this server