ZAI is not a standard MCP client — it is a visual AI companion that runs side-by-side with apex-mcp inside Claude Code (or any MCP-compatible client that supports multiple servers). apex-mcp handles the programmatic side: creating pages, adding regions and items, running SQL, and generating REST endpoints. ZAI handles the visual side: taking screenshots of the rendered APEX application, analyzing the UI layout, diagnosing rendering errors, and extracting data from charts and tables. Together they form a closed build-and-verify loop that would otherwise require a human to switch between the terminal and a browser.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/TechFernandesLTDA/apex-mcp/llms.txt
Use this file to discover all available pages before exploring further.
Role split
| Capability | apex-mcp | ZAI |
|---|---|---|
| Create APEX pages | ✅ | ❌ |
| Add regions, items, buttons | ✅ | ❌ |
| Run SQL queries | ✅ | ❌ |
| Generate REST endpoints | ✅ | ❌ |
| See rendered UI screenshots | ❌ | ✅ |
| Verify layout looks correct | ❌ | ✅ |
| Diagnose rendering errors | ❌ | ✅ |
| Extract text from screenshots | ❌ | ✅ |
| Analyze data visualizations | ❌ | ✅ |
apex_* prefix pattern; ZAI tools use descriptive names like analyze_image and ui_diff_check. Claude and other AI clients automatically route each request to the correct server.
Setup
Install ZAI
ZAI is available as an MCP server via npm. You can run it directly with Check the ZAI documentation for authentication requirements and the latest setup instructions.
npx (no global install needed) or install it permanently:Configure both servers in .mcp.json
Add both
apex-mcp and zai as separate entries in your .mcp.json. Claude Code (and other stdio clients) will start both processes simultaneously:Recommended workflows
Workflow 1: Build and visually verify
Use apex-mcp to construct the application programmatically, then hand off to ZAI for a visual sanity check before iterating:Workflow 2: Debug a visual issue
When something looks wrong in the browser, use ZAI to identify the error and apex-mcp to fix it in the database:Workflow 3: Validate data visualizations
Cross-reference what ZAI can see in a rendered chart against the underlying Oracle data:Tool routing reference
Because the two servers have non-overlapping tool name patterns, Claude routes requests automatically. You do not need to prefix prompts with@apex-mcp or @zai unless you want to be explicit.
| Server | Tool name pattern | Example tools |
|---|---|---|
| apex-mcp | apex_* | apex_add_page, apex_run_sql, apex_generate_crud |
| ZAI | descriptive names | analyze_image, ui_diff_check, extract_text_from_screenshot |
For the most complex multi-step build-and-verify prompts, Claude 3.5 Sonnet or 3.7 Sonnet is recommended — it handles the high volume of sequential tool calls across both servers more reliably than smaller models.
Troubleshooting
| Problem | Solution |
|---|---|
ZAI not listed in /mcp | Confirm npx is in your PATH; try running npx -y zai-mcp-server manually |
| apex-mcp tools work but ZAI tools don’t route | Check ZAI server logs for startup errors; ensure the npm package is current |
| Both servers listed but screenshots fail | ZAI may require a browser or display session; check the ZAI documentation for environment requirements |
| Session confusion between servers | Restart the MCP session (/mcp restart in Claude Code) to reset both server processes |
