Skip to content
mainframe-mcp-server
Install guide · Cursor

Install mainframe-mcp-server for Cursor

Cursor reads ~/.cursor/mcp.json. A project can also commit .cursor/mcp.json.

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

  1. Open ~/.cursor/mcp.json on macOS, %USERPROFILE%\.cursor\mcp.json on Windows, or ~/.cursor/mcp.json on Linux.

  2. Paste the JSON config below.

  3. Replace placeholder secrets, then restart the client if it does not reload on its own.

~/.cursor/mcp.json
{  "mcpServers": {    "notharshhaa-mainframe-mcp-server": {      "command": "npx",      "args": [        "-y",        "@notharshhaa/mainframe-mcp-server@3.0.0"      ],      "env": {        "ZOSMF_HOST": "",        "ZOSMF_PORT": "",        "ZOSMF_BASE_PATH": "",        "ZOSMF_USER": "",        "ZOSMF_PASSWORD": "YOUR_ZOSMF_PASSWORD",        "ZOSMF_TOKEN": "YOUR_ZOSMF_TOKEN",        "ZOSMF_TOKEN_TYPE": "",        "ZOSMF_REJECT_UNAUTHORIZED": "",        "ZOSMF_CERT": "",        "ZOSMF_CERT_KEY": "",        "ZOSMF_TOKEN_FILE": "",        "ZOSMF_USER_ID": "",        "ZOSMF_PASSTICKET_APP": "",        "ZOWE_TEAM_CONFIG": "",        "ZOSMF_PROFILE": "",        "LOG_LEVEL": "",        "MCP_TRANSPORT": "",        "MCP_SSE_PORT": "",        "MAX_JOB_OUTPUT_LINES": "",        "MAX_DATASET_READ_LINES": "",        "MAX_JES_SPOOL_FILES": "",        "MAX_AUDIT_LINES": "",        "CMCI_CONTEXT": "",        "CMCI_HOST": "",        "CMCI_PORT": "",        "CMCI_BASE_PATH": "",        "DB2_LOCATION": "",        "DB2_HOST": "",        "DB2_PORT": "",        "DB2_BASE_PATH": "",        "SMF_SUMMARY_DATASET": "",        "RMF_METRICS_ENABLED": "",        "RACF_AUDIT_USS_PATH": "",        "RACF_AUDIT_DATASET": "",        "SECURITY_READ_ONLY": "",        "SECURITY_ALLOWED_TOOLS": "",        "SECURITY_BLOCKED_TOOLS": "",        "SECURITY_ALLOWED_DATASET_PATTERNS": "",        "SECURITY_ALLOWED_USS_PATHS": "",        "SECURITY_AUDIT_LOGGING": "",        "SECURITY_MAX_JCL_BYTES": "",        "SECURITY_WRITE_APPROVAL": "",        "SECURITY_JCL_SCAN": "",        "SECURITY_JCL_SCAN_STRICT": "",        "SECURITY_BLOCKED_PROGRAMS": "",        "SECURITY_BLOCKED_JOB_CLASSES": "",        "SECURITY_CHANGE_TICKET_PATTERN": "",        "SECURITY_WRITE_WINDOW": "",        "SECURITY_WRITE_DAYS": "",        "SECURITY_WRITE_WINDOW_TZ": ""      }    }  }}

Where the config lives

SystemPath
macOS~/.cursor/mcp.json
Windows%USERPROFILE%\.cursor\mcp.json
Linux~/.cursor/mcp.json