An Oracle MCP server built from the PL/SQL, tables and statements you select. No run-sql tool
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent — or use 1-click editor setup below.
One-click editor setup isn’t available for this listing yet — we don’t have a confirmed install command, and we’d rather show nothing than point your editor at the wrong package or host. Follow the project’s own setup instructions, linked above.
An MCP server for Oracle, built from the objects you choose. Tick the PL/SQL packages, tables, sequences and your own tested SQL statements in a console, and it generates a Model Context Protocol server exposing exactly those to an AI agent as typed tools — each carrying a JSON Schema derived from the procedure's real signature.
There is no run-sql tool. Anything you did not select has no tool, no method and no
class: it is absent from the binary rather than refused at run time. Nothing composes a query
at run time either — the generated code is ordinary Java with fixed SQL statements and typed
binds, and the MCP server calls those wrappers rather than writing SQL for a model to run.
Generating that server means generating the whole calling layer, so you get it too: typed DAO factories, callable-statement wrappers, table managers and an optional SOAP layer. They are useful on their own, but the MCP server is the point.
Supports Oracle 12c through 26ai, and is regression-tested against six live instances spanning that range.
How the full product fits together. This repository is the generator — the config file, generate & compile, and the generated MCP server. The Design pages, Runtime page and proxy are the web console in the Docker image; here you select objects with the Swing tool or a config file instead, and the generated server can be run on its own.
The usual way round is to hand the agent a run-sql tool, and it works until the
schema is real: published text‑to‑SQL accuracy falls sharply on enterprise‑scale schemas
compared with tidy benchmarks, and a wrong UPDATE is not a wrong answer, it is an incident.
The alternative is curated tools — but writing one per procedure by hand does not scale past a few, and PL/SQL is unusually hostile to deriving them automatically:
%ROWTYPEs, REF CURSORs, package types, and overloadsThis project does that derivation. Every generated MCP tool carries a real JSON Schema built from the procedure's actual signature, so the agent is told what the parameters are rather than inferring them from prose.
A record crosses as a JSON object, a REF CURSOR as an array of row objects, a DATE as an
ISO‑8601 string, RAW and binary vectors as base64, CLOB as text, BLOB as base64.
Requires Java 21 and Maven. The Oracle JDBC driver (com.oracle.database.jdbc:ojdbc11)
comes from Maven Central — nothing to install by hand.
That produces two jars in target/: a plain one, and a self‑contained
mcpdbwizard-app-<version>-shaded.jar with the driver bundled.
<log_dir> is created if missing.
Changed in 2026-08: there used to be a leading
<access_code>argument. It has been removed, and a command line that still passes one will be read as the log directory. It was validated for shape only — ≥19 characters, not a path, not the literalbuild— and then ignored, so it authenticated nothing. Drop it from any script that supplies it.
Configs are .pb2 (a flat properties file) or .json; both are accepted, and convert
losslessly either way:
| DAO factory | one entry point per config, wiring connections and logging |
| PL/SQL wrappers | a class per procedure/function — setParamX, executeProc, getParamY |
| Table managers | row CRUD by primary key, plus unique‑key, index and foreign‑key‑child lookups |
| SQL statement classes | your own SQL, with typed bind parameters |
| SOAP service layer | optional |
| JSON / JSON‑RPC connectors | optional |
| MCP server | optional (needs Java 17+ for the MCP SDK) |
Generated code depends only on com.mcpdbwizard.pub, the runtime library in this repository.
A single generated <Factory>McpServer.java, speaking stdio by default or Streamable
HTTP when started with http [port]. Optional bearer‑token auth and TLS both read their
secrets from the environment at run time and fail closed if unset, so no secret is baked into
the generated source.
It exposes PL/SQL routines, table row CRUD and secondary lookups, user SQL statements, sequences, and — on 23ai — JSON‑relational duality views with document CRUD and etag optimistic locking.
What is exposed is decided when you generate, not at run time. An object you did not select
has no code generated for it at all, and TABLE_MCP_CRUD_<i> narrows a table to any subset of
create/read/update/delete. An operation that is not exposed has no tool method emitted — it is
absent from the binary, not merely unregistered.
Beyond the ordinary scalars and LOBs: 12c identity columns and extended VARCHAR2/RAW; 21c
native JSON; 23ai native BOOLEAN, VECTOR (dense, binary and sparse), and JSON‑relational
duality views.
Known gaps: TIMESTAMP WITH [LOCAL] TIME ZONE and BFILE cross as procedure parameters but not
yet as table columns; SDO_GEOMETRY has no JSON mapping, so a routine using one is skipped;
FLOAT16 vectors are blocked server‑side.
Generated factories pick a LogInterface implementation from the config: console, text file,
java.util.logging, Log4j 1.x, SLF4J, or Log4j 2. The SLF4J and Log4j 2 backends live
in com.mcpdbwizard.pub and depend only on the facade jar, which is an optional dependency —
supply the api plus a binding yourself if you use them.
The database‑free suite needs nothing and is green on a fresh clone:
Tests that need Oracle are gated: with no database reachable they skip rather than fail. To point them at your own instance, copy the templates — the real files are gitignored and never leave your machine:
Per setting, an environment variable (MCPDBWIZARD_TEST_HOST, …) always wins over the file, which
is how a run selects one server over another.
A third tier links against generator output: Scripts/testrun_current.sh regenerates code
from a set of configs and compiles it, and a family of harnesses then drives that code against a
live database.
That tier is not part of this repository, and neither are the schemas it needs. The configs introspect Oracle schemas whose structure is not ours to publish — some of it came from customer work years ago — and a config enumerates the schema it points at, so the configs cannot ship either. The harnesses go with them: they name those schemas' tables and routines, and they only compile against a regenerated tree that cannot exist here.
What that costs you: nothing to run the generator, and nothing to run the suite. The
database-free tests are complete and green on a fresh clone; the gated live tests skip. What you
do not get is a ready-made corpus to regenerate against. Scripts/check_provisioning.sh stays,
and will name the exact objects a config expects, which is the place to start if you build your
own.
examples/generated-output/ shows what the generator emits, with no database at all.
| Path | What |
|---|---|
src/main/java/com/mcpdbwizard/pub | runtime library the generated code links against |
src/main/java/com/mcpdbwizard/app | the generator — engine, Swing UI, shared helpers |
src/main/java/com/mcpdbwizard/schema | typed model of a config; .pb2 ↔ .json |
src/main/java/com/mcpdbwizard/mcpdbwizardconnector | JSON / JSON‑RPC connector generator |
examples/generated-output | a checked‑in example of generator output, regenerated 2026‑08‑07 |
Scripts/ | regeneration, provisioning checks, and the export gate |
| API docs | generated javadoc for com.mcpdbwizard.pub, the library you link against |
Contributor notes — architecture, conventions and accumulated gotchas — are in
CLAUDE.md.
No reviews yet — be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/mcpdbwizard)<a href="https://allmcps.com/mcp/mcpdbwizard"><img src="https://allmcps.com/api/badge/mcpdbwizard?style=directory" alt="MCPDBWizard on AllMCPs" /></a>