Is the Oracle MCP server safe? What it can reach
What the Oracle MCP server can read, write and delete, how it signs in, and how to limit it in Claude Code and Codex.
This page covers Oracle Database through the SQLcl MCP server, which Oracle ships inside SQLcl and starts with sql -mcp. It runs on your machine and uses saved SQLcl connections, so it acts as that database user. Its run-sql tool executes any SQL or PL/SQL that user can run, and the docs list no read-only mode, so the database account is the limit.
Who maintains it
| Implementation | Kind | Status |
|---|---|---|
| SQLcl MCP server (Oracle, part of SQLcl) | Official | active |
| oracle/mcp (Oracle reference servers for OCI, MySQL and other products, not for production) | Official | active |
It runs as a local process on your machine.
How it signs in
The server connects through preconfigured named or saved SQLcl connections, so it acts with the database user and privileges stored in the connection you choose.
What its tools can do
| Kind | Tools |
|---|---|
| Read | list-connections |
| Write | connect, disconnect |
| Can’t be undone | run-sql, run-sqlcl |
Oracle’s tools page lists these five tools for SQLcl 25.x and does not give input schemas. run-sql executes standard SQL and PL/SQL, so it can read, change or drop data depending on the connected user’s privileges. Some builds and decks also mention a schema-information tool, which the tools page does not list. Oracle also publishes other MCP servers for OCI and further products in the oracle/mcp repository, and this page does not cover them.
Built-in limits
| Option | What it does |
|---|---|
Database user privileges | Oracle says to give the LLM’s database account only the access its tasks need. No server flag limits what run-sql can do. |
Read-only replica | Oracle advises against direct production access and suggests a sanitized, read-only replica or a dedicated data subset. |
DBTOOLS$MCP_LOG | This table records each interaction and SQL execution. V$SESSION.MODULE shows the MCP client and V$SESSION.ACTION shows the LLM name. |
Query comment | LLM-generated queries carry a /* LLM in use ... */ comment so you can filter them in logs. |
The risks
- run-sql runs whatever SQL or PL/SQL the model writes as the saved connection’s user, so an injected instruction could update, delete or drop data if that user is allowed to.
- Text stored in table columns comes back through query results and can try to steer the agent into more queries or into DDL.
- Oracle warns that LLMs can inadvertently expose unintended tables or sensitive details, and every query result goes to your AI provider.
- run-sqlcl exposes SQLcl commands and extensions beyond plain SQL, and the docs do not list which are blocked.
Limit it in Claude Code
Add it from the documented launch settings, at local or user scope so a token never lands in a shared .mcp.json:
claude mcp add oracle -- PATH/bin/sql -mcpClaude Code names MCP tools mcp__oracle__<tool>. Deny rules win over ask rules, and ask rules over allow rules. Put these in ~/.claude/settings.json or the project’s .claude/settings.json:
{
"permissions": {
"deny": [
"mcp__oracle__run-sqlcl"
],
"ask": [
"mcp__oracle__run-sql",
"mcp__oracle__connect"
]
}
}Limit it in Codex
Codex reads MCP servers from ~/.codex/config.toml. disabled_tools removes tools, and enabled_tools keeps only the ones you list:
[mcp_servers.oracle]
command = "PATH/bin/sql"
args = ["-mcp"]
disabled_tools = ["run-sqlcl"]Checklist
- Save a connection for a least-privilege user and point it at a read-only replica.
- Keep production connections out of the saved list.
- Deny run-sqlcl and approve each run-sql call.
- Review DBTOOLS$MCP_LOG regularly.
Checked against the vendor documentation on November 25, 2026. Using Oracle SQLcl MCP Server (Oracle docs) · Starting and Managing the SQLcl MCP Server (Oracle docs) · About the SQLcl MCP Server Tools (Oracle docs) · oracle/mcp README
What Excellent covers
Excellent doesn’t inspect MCP servers themselves. Its free scan reads supported logs on the Mac (Claude Code, Codex, Grok Build, GitHub Copilot CLI, Gemini CLI and Qwen Code) and reports findings for review, so you can see what an agent did after a session. Run the free scan · See a sample report · How to vet any MCP server
Excellent Pro adds checks before supported actions. Claude Code can display an ask prompt. With Codex, an Excellent “ask” refuses the action and tells the agent to ask you. Pro is US-only for now. Agent coverage · Pricing