Install mainframe-mcp-server for Claude Desktop
Claude Desktop reads mcpServers from claude_desktop_config.json. Restart the app after saving.
- Open ~/Library/Application Support/Claude/claude_desktop_config.json on macOS, %APPDATA%\Claude\claude_desktop_config.json on Windows, or ~/.config/Claude/claude_desktop_config.json on Linux.
- Paste the JSON config below.
- Replace placeholder secrets, then restart the client if it does not reload on its own.
~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"notharshhaa-mainframe-mcp-server": {
"command": "npx",
"args": [
"-y",
"@notharshhaa/mainframe-mcp-server@2.5.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": "",
"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": ""
}
}
}
}