This guide walks you through everything needed to go from zero to a running Oracle APEX application built entirely through natural language. You’ll install apex-mcp from source, supply your Oracle ADB credentials in a single config file, verify the connection inside Claude Code, and then issue a multi-step natural language prompt that creates a complete APEX app — login page, CRUD pages, and navigation — without opening the App Builder UI once.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.
Install apex-mcp
Clone the repository and install it in editable mode so the Verify the installation succeeded:You should see the argument parser output listing
apex-mcp entry point is available on your PATH.--transport, --host, --port, and --path options.Python 3.11 or newer is required. If your system default is older, use
python3.11 -m pip install -e . and invoke via python3.11 -m apex_mcp in your config file.Configure your Oracle credentials
Create a file named Replace each placeholder with your actual values:
.mcp.json in your project root (the directory you open in Claude Code). This file tells Claude Code how to launch the apex-mcp server process and which environment variables to pass to it.| Variable | What to put here |
|---|---|
ORACLE_DB_USER | Oracle schema name (e.g. MYAPP) |
ORACLE_DB_PASS | Schema password |
ORACLE_DSN | TNS alias from your tnsnames.ora (e.g. mydb_high) |
ORACLE_WALLET_DIR | Absolute path to the directory containing cwallet.sso |
ORACLE_WALLET_PASSWORD | Wallet encryption password |
APEX_WORKSPACE_ID | Numeric ID of your APEX workspace |
APEX_SCHEMA | Schema that owns APEX objects (often same as ORACLE_DB_USER) |
APEX_WORKSPACE_NAME | APEX workspace name (uppercase, e.g. MYWORKSPACE) |
Verify the connection in Claude Code
Open your project folder in Claude Code. The MCP server starts automatically when Claude Code loads the workspace.Run the MCP status command in the Claude Code chat:You should see Claude Code will call
apex-mcp listed as connected with 116 tools available. If the server shows as disconnected, check the Claude Code output panel for error messages — most issues are a wrong path in cwd or a missing environment variable.Once connected, test the Oracle connection with a natural language query:apex_connect() followed by apex_list_apps() and display the results. If you see your workspace’s application list, you’re ready to build.If
apex_connect() fails, the most common causes are a wrong ORACLE_DSN value (must match the alias in tnsnames.ora inside the wallet directory) or an incorrect ORACLE_WALLET_DIR path. See the Configuration page for a full troubleshooting table.Build your first APEX app
Paste this prompt into Claude Code to build a complete APEX application with a login page, CRUD pages for the EMPLOYEES table, and navigation — all in a single conversation turn:Claude Code will translate this into a sequence of tool calls and execute them one by one. You’ll see each step in the tool-use panel as it runs.
What Happens Behind the Scenes
When you send that final prompt, apex-mcp orchestrates the following tool sequence automatically:apex_connect()— establishes the mTLS wallet connection to Oracle ADBapex_create_app(app_id=200, app_name="My First App")— opens an APEX import session viawwv_flow_imp_page.create_flowapex_generate_login(page_id=101)— generates a full login page with APEX authenticationapex_generate_crud(table_name="EMPLOYEES", start_page_id=10)— introspects the EMPLOYEES table (columns, PKs, FKs) and generates an Interactive Report list page plus a form page with DML processesapex_add_nav_item()— adds navigation menu entries for each generated pageapex_finalize_app()— closes the import session and commits everything to the database
wwv_flow_imp_page.* PL/SQL, which APEX executes in the same way its own import/export system works. The entire sequence for a simple CRUD app typically completes in under 10 seconds.
Next Steps
Configuration Reference
Full reference for all environment variables, transport settings, and how to find your APEX workspace credentials.
Connect Claude Desktop
Set up apex-mcp in Claude Desktop using the
claude_desktop_config.json format.Build Your First App (Full Guide)
Step-by-step walkthrough of building a complete multi-table APEX application from schema discovery through validation.
Connection Tools Reference
Detailed reference for
apex_connect, apex_run_sql, and apex_status.