# OEM 24ai's MCP Server: What Happens When Your AI Agent Can Query Enterprise Manager Directly



A developer on your team asks a simple question: "Which databases in prod have the highest average active sessions right now?" Three months ago, the answer required either opening EM and clicking through Targets → Databases one target at a time, or pinging a DBA to run it down. Today, that same question can be typed into a terminal-based AI agent — and answered by Enterprise Manager itself, because as of Release Update 12, EM 24ai ships a Model Context Protocol (MCP) server as a core platform capability.

This isn't a lab experiment or a third-party bridge someone on your team duct-taped together. It's built into the OMS, it ships with the product, and it changes a real architectural question every DBA team running EM is going to have to answer in 2026 and 2027: what should an AI agent be allowed to ask your management platform, and what should it never be allowed to touch.

## Why This Isn't Just Another Integration

Enterprise Manager has had a REST API surface for years, and plenty of shops already script against it — pulling target lists, kicking off jobs, querying compliance status. MCP Server doesn't replace that. What it changes is *who's writing the client code*.

A REST integration requires someone on your team to know the API, write a client, and maintain it. MCP flips that: any MCP-compatible AI client — the article Oracle published names OpenAI Codex as its working example, but the protocol is the point, so Claude-based tools, Cursor, and anything else that speaks MCP line up the same way — can discover what Enterprise Manager exposes and call it on the fly, without anyone writing integration code ahead of time. The agent reads the tool's description and input schema at connection time and figures out how to use it.

That's the actual shift. It's not "EM has an API now" — it's had one for over a decade. It's "EM now describes itself to AI agents in a language they already understand," which means every AI tool your developers, architects, or even you personally pick up going forward is potentially one config file away from being able to query your estate.

## What's Actually Exposed Today — and What Isn't

Oracle has scoped this deliberately narrow for the initial release, and it's worth being precise about that scope rather than assuming more than what's there. The MCP server runs inside the OMS itself — no separate server to deploy, patch, or secure — and the current release is **read-only**. It retrieves operational information: target data, metrics, and job status are the categories Oracle's own announcement calls out explicitly.

It does not, as of RU12, expose AWR data, incident details, or compliance results through MCP specifically — those live elsewhere in EM's AI surface area, which matters enough that it gets its own section below. Oracle is explicit that this is meant as an extensible foundation, not a finished catalog, so the tool list is something to recheck with every RU rather than assume is static.

Worth flagging to anyone on your team who hears "AI agent" and "database" in the same sentence and assumes this is Oracle's SQLcl MCP server: it isn't, and the distinction matters operationally. SQLcl's MCP server (which Oracle shipped separately, well before this) gives an agent the ability to generate and execute SQL against your actual business data inside the database. EM's MCP server stays at the fleet/operational layer — what's the health of this target, what's this metric reading, what jobs are running — and never hands an agent a path to your schema or your rows. If you're evaluating both, don't treat them as the same risk category; they're not.

## Setting It Up: What's Actually Involved

The configuration path Oracle documented runs through a client-side config file rather than anything in the console — there's no wizard screen for this one, which is a change from how Ask EM and the AI Database Assistant get configured.

> **Note:** EM CLI syntax below is representative. Exact parameter names vary by OEM version and job type. Always validate against your environment: `emcli help <verb>` and Oracle's official EM CLI reference.

```
# Find the EM console HTTPS port (two ways)
emctl status oms -details
# or check the property directly:
grep EM_CONSOLE_HTTPS_PORT $ORACLE_HOME/gc_inst/em/EMGC_OMS1/sysman/config/emgc.properties
```

Once you have the port, the MCP endpoint lives at `https://<oms-host>:<EM_CONSOLE_HTTPS_PORT>/em/api/mcp`. On the client side — Oracle's worked example is OpenAI Codex's `~/.codex/config.toml` — you register a named MCP server entry pointing at that URL, enable it, and attach an Authorization header carrying Basic-auth credentials (base64-encoded `username:password`) for an actual EM account. Restart the client, start a new session, and it discovers the available tools on connect.

A few things worth knowing before you roll this out for anyone on your team: this credential sits in a plaintext config file on whatever machine runs the AI client, same as any other Basic-auth setup. Treat it exactly like you'd treat any other credential living in a dotfile — scoped account, not a shared sysman login, and covered by whatever secrets-hygiene policy your org already has for things like `.netrc` or `.aws/credentials`.

## The Security Model: No New Backdoor, No Free Pass

This is the question every security-conscious architect is going to ask the first time someone says "the AI tool can see Enterprise Manager data now," and the honest answer is: it's narrower than it sounds, with one real caveat.

The narrower part: Oracle didn't build a parallel authorization system for MCP. Every request authenticates with real EM credentials, and the underlying EM services enforce exactly the same privilege model that account would hit going through the console or the REST API. An agent connected on behalf of a read-only monitoring account sees what that account can see — nothing more. There's no "AI mode" that bypasses role-based access control, and Oracle's own documentation is explicit that EM remains the system of record for authentication, authorization, auditing, and governance here — the MCP layer is a new transport, not a new trust boundary.

The caveat: that also means an MCP client is exactly as powerful as the credential it's configured with, and credential hygiene is now a client-side problem distributed across every developer or architect's laptop running an MCP-enabled tool, instead of a server-side problem your security team already has processes for. If you've got governance in place for who gets a named EM credential and what privilege level it carries, extend that same governance conversation to "and is this credential now sitting in someone's MCP client config" before you approve broad rollout — not after.

## Where This Sits Next to Ask EM and the AI Database Assistant

It's easy to lose track of how many AI surfaces EM 24ai has accumulated release by release, so it's worth laying them out, because they're genuinely different things solving different problems:

- **Ask EM** (RU4) was EM's original conversational layer, built on a Cohere LLM, answering questions against telemetry and public documentation — a chatbot *inside* the console, for a human to type into.
- **Oracle AI Database Assistant** (RU10, with access-requirement changes in RU11) is the evolution of that idea — broader scope, and as of RU12 it now supports configuring your own model endpoint (OpenAI or Ollama credentials) instead of only Oracle-managed OCI GenAI, which matters directly if data residency or model choice is a constraint for your org. RU12 also extended it to monitor and investigate compliance rule violations specifically.
- **MCP Server** (RU12) is the odd one out in that list because it's not a chat interface at all — it's the mechanism by which *external* AI tools your team already uses reach *into* EM, rather than EM reaching out to an LLM on your behalf.

If your team has already been through the trouble of configuring Ask EM or the AI Database Assistant, don't assume MCP Server piggybacks on that setup — it's a separate configuration surface with its own credential model, and it's worth confirming which of the three, if any, your team actually wants turned on before RU13 adds another one. (RU13, for what it's worth, is already adding autocomplete and page-navigation capabilities to the AI Database Assistant — this layer isn't slowing down.)

## What Good Looks Like

A team that's handled this well has made a deliberate decision about MCP Server rather than discovering it's enabled by default after an RU12 patch — confirming first whether it's on and, if so, which accounts are realistically capable of being used as MCP credentials. They've extended existing credential-hygiene policy to cover client-side MCP config files explicitly, the same way they already cover SSH keys or API tokens on developer machines. They know the difference between EM's MCP server (fleet/operational data) and SQLcl's MCP server (actual business data and SQL execution), and they've made two separate risk decisions instead of one blended one. And they're treating the read-only scope as a current fact, not a permanent guarantee — re-checking the tool catalog at every RU rather than assuming today's boundaries hold indefinitely.

## The Bottom Line

RU12's MCP server is a small, deliberately scoped release — read-only, fleet-level data, no new authorization model — but it's the first time Enterprise Manager has been built to be queried *by* AI agents rather than only *through* one Oracle-hosted chat interface. That's a bigger architectural signal than the current feature list suggests. The right move isn't to turn it on everywhere or to ignore it until a developer discovers it on their own; it's to decide, deliberately, which credentials are allowed to carry this capability before RU13 or RU14 widens what's on the other end of that connection.

Next up?: once this tool catalog moves past read-only, the governance question gets a lot less theoretical — what should an AI agent never be allowed to do inside Enterprise Manager, and who signs off on the list.
