Does the Oracle SQLcl MCP server keep Oracle data inside the organization?
The SQLcl MCP server does not, by itself, keep Oracle data inside the organization. Query results always reach the AI client, and the retention of anything the model provider receives depends on the client and model you choose, which Oracle's pages do not set out. The privacy decision therefore sits with the client and model configuration as much as with the database. Treat the database connection as a path for data to leave your boundary, not only as a store that stays behind it.
Data is recorded in three places. First, the MCP client's own logs: the SQLcl 25.4 monitoring guide says client logs such as Claude Desktop's can capture connection events, tool executions, query results and error messages, so confirm where each client writes logs, who can read them and how long they persist on managed devices. Second, the DBTOOLS$MCP_LOG table in the database, which keeps request details and results. Oracle recommends pruning it, for example with a 1000 record limit, so set a retention rule and confirm who holds select rights on it. Third, the model provider, which receives the request and the results the client passes along. Ask the provider for its written retention, training and regional terms for your plan. Credentials stay in the SQLcl store, so the model sees the saved connection name rather than the secret, but that does not limit what query results expose.
Before approval, confirm five things in writing: the client and model versions in use, the log locations and access rights on each endpoint, the pruning schedule for DBTOOLS$MCP_LOG, the provider's retention and data-use terms for the plan your staff use, and whether any table holding personal or regulated data can be queried at all. Oracle's SQLcl MCP server guide describes the server's behavior, and the answers to these questions belong in your own data classification and vendor review.
Data privacy capabilities by SQLcl version and component
This table compares each data privacy item in an Oracle SQLcl MCP setup by what the product does on its own, what you must add from outside, and what the pages read do not state. Use the last column as your list of questions for Oracle and your model provider. The main takeaway is that the database and SQLcl layers offer some controls, while client logs, model retention and the community code paths need separate review.
| Data privacy item | Built in | Needs an outside component | Not documented in the pages read |
|---|---|---|---|
| Credential handling in the SQLcl store | Credentials stay in the SQLcl store, so the model sees only the saved connection name (Oracle blog, May 15, 2026) | Protection of the operating system account and files that hold the SQLcl store | Store encryption details and whether connection names reveal host details (confirm with Oracle) |
| Query results sent to the client | SQLcl returns results to the MCP server, which formats them and sends them to the client (SQLcl 25.2, section 3.3) | Row limits, views and restricted grants on the database user to limit what results contain | Whether the client truncates, masks or stores result sets (confirm with the client vendor) |
| Client log capture | Client logs such as Claude Desktop's can capture connection events, tool runs, query results and errors (SQLcl 25.4) | Endpoint controls over log location, access and deletion | Log retention period and whether capture can be turned off (confirm with the client vendor) |
| DBTOOLS$MCP_LOG request and result recording | Request details and results are kept in the database table (SQLcl 25.4) | A pruning job, which the guide recommends, for example with a 1000 record limit | Default retention if pruning is not set and who can read the table (confirm with Oracle) |
| Model-side retention | Nothing in the pages read | The AI client and model provider you choose, under their plan terms | Retention period, training use and regional handling (confirm with the model provider) |
| oracle/mcp repository (not for production) | Holds MCP servers for Oracle products under the UPL-1.0 license, and its README says it is not intended for production use | Your own review, hardening and testing before any production use | Data handling and logging behavior of each server in the repository (confirm with Oracle) |
How a query moves from the AI client to the database and back
Every query takes four hops, and the data leaves the database on the last one. According to the SQLcl guide 25.2, the MCP client first calls an AI model to turn the user's request into SQL. The client then sends a tool call to the SQLcl MCP Server, which runs the statement against the database through SQLcl. Oracle's guide says SQLcl returns the query results to the server, the server formats them, and the formatted output goes back to the MCP client. Each hop is a place where a reviewer should ask what is sent, to whom, and whether it is logged.
The connection is referenced by name, not by secret. Oracle's developer blog says credentials stay in the SQLcl store, so the model sees the saved connection name but not the password. That separates the credential from the prompt, but it does not limit what the model can do once a connection is open. Confirm which saved connections each user can reach, and whether the database account behind each one can read only the tables the use case needs. A saved name that points to a privileged account gives the model that account's reach.
Result rows are the main privacy exposure. The SQL text and the tool call are small. The rows returned by run-sql are not: they enter the MCP client's context, and from there they can reach the model provider, the client's own logs and any file the user saves. Before approval, ask the team to name the tables that hold personal, financial or health data and confirm that those tables are either excluded from the connected account or masked at the source. Then check the AI client's log settings and the model provider's data terms, because the Oracle pages do not set retention for those parts of the path.
Where Oracle data is copied and recorded
The flow starts when the AI client sends a request to its model, which returns SQL. The client then sends a tool call to the SQLcl MCP Server, which runs the SQL against the Oracle database using a connection from the SQLcl store, so the model sees the saved connection name but not the secret. Query results travel back through the server to the client, and that is the hand-off where data leaves the database. Check three places: the client's own logs, which can capture results, DBTOOLS$MCP_LOG inside the database, which keeps request details and results, and the retention terms of the model provider you chose.
Solid arrows show which hand-offs carry query results and which carry only SQL text or tool calls.
Which logs and stores keep request and result data
Request and result data can persist in more than one place once an AI client talks to Oracle through SQLcl. Each store below has a different owner, so a privacy review has to check each one separately before approving the setup.
MCP client logs
The MCP client application keeps its own logs. The SQLcl 25.4 monitoring guide says client logs such as Claude Desktop's can capture connection events, tool executions, query results and error messages. That means result rows can land in a log file on the employee's workstation, outside any database control. Confirm where the client writes logs on managed devices, who can read them, how long they stay, and whether the client can disable result logging.
Monitoring guideDBTOOLS$MCP_LOG table
The SQLcl MCP Server records request details and results in the database itself, in a table named DBTOOLS$MCP_LOG. The database owner controls this table, so it is the audit trail a DBA can query. Because it stores result data, it is also a second copy of sensitive records. Oracle recommends pruning it, and the monitoring guide gives a 1000 record limit as an example. Confirm the table's schema, who holds read access, and the pruning job your DBAs will run.
SQLcl credential store
Oracle's developer blog says credentials stay in the SQLcl store, so the model sees the saved connection name but not the secret. That limits what leaves the machine, but the store itself is a sensitive asset on the developer's device. Confirm where the store file lives, how it is protected at rest, whether it is included in device backups or sync tools, and whether shared accounts or service credentials are saved in it. Ask whether the database user behind each saved connection is limited to the least privilege needed.
Oracle developer blogModel provider retention
The MCP client sends the request and, per Oracle's guide, the query results return to the client, which can pass them to the model. Oracle's pages do not state a retention period or plan-based data terms for the model side. Those depend on the AI client and model provider your organization selects. Ask the provider in writing how prompts and tool results are retained, whether they train models, which subprocessors and regions apply, and whether zero data retention or a commercial agreement is available for your plan.
How the data answer changes by deployment and data class
When the queried tables hold public or internal business data, the main question is how far query results travel and how long copies persist. In the SQLcl MCP Server flow, the MCP client calls an AI model to turn a request into SQL, then sends a tool call to the server. SQLcl returns query results to the server, which formats them and sends them back to the MCP client, so result rows reach the client and, through it, the model context. Prompts and results can also be captured in client logs. Treat the following as the working checklist for this class of data:
- Result rows reach the client: Assume any row a tool returns can enter the model context, so limit which schemas and tables the connected user can read.
- Client logs: Client logs such as Claude Desktop's can capture connection events, tool executions, query results and error messages. Find out where your client writes them and who can read that location.
- Database audit table: DBTOOLS$MCP_LOG keeps request details and results inside the database. Decide who may query it and set a pruning rule, for example the 1000 record limit Oracle's guide mentions.
- Model retention: The pages reviewed do not state a retention period on the model side. Ask the client and model provider for their data terms in writing.
- Credentials: Oracle's developer blog says the model sees the saved connection name, not the secret.
Before approving this class, confirm which client and model provider you will use and obtain their retention and training terms for the plan you are buying.
When the database holds personal data in GDPR or HIPAA scope, every hop in the flow becomes a data transfer that needs a basis, a contract and a record. Query results carry personal fields back through the server to the MCP client, and the client may send them to a model provider as context. The SQLcl documentation covers the mechanics of the flow but does not state data processing, transfer or business associate terms, so those must come from your AI client and model provider. Points to resolve before any personal data is queried:
- Minimize at the database: Use a dedicated database user with access only to the columns needed, and avoid exposing direct identifiers in the schemas an agent can reach.
- Transfer basis: Confirm with the model provider where processing happens and what transfer mechanism covers it for GDPR purposes.
- HIPAA coverage: Ask whether the provider will sign a business associate agreement for the exact product and plan, since coverage does not extend automatically to every surface.
- Logs holding personal data: Client logs and the database log table can both store personal values from results, so they fall within your retention and deletion obligations.
- Access review: Record who may use the connection and periodically review it against your access control policy.
Before approval, get the provider's written data processing terms and confirm with your privacy or compliance lead which logs and tables count as records you must be able to delete.
When the AI model is reached through a commercial provider, the model side of the data path sits outside your infrastructure. The MCP client sends the request, the schema context, and the results returned by the SQLcl server to that provider. Your controls therefore depend on the provider's terms for the plan you buy, which the Oracle documentation does not describe. Plan differences often change whether prompts are used for training, how long they are stored and which administrative features exist. Questions to put to the provider:
- Prompts and results: Ask whether prompts and tool results are stored, for how long, and whether they are used to train models under the plan in use.
- Retention controls: Ask whether an organization can set or shorten retention, and whether zero retention is offered and under which plan.
- Plan scope: Confirm that the plan your staff use carries the terms you reviewed, since consumer and business plans commonly differ.
- Sub-processors and regions: Request the list of sub-processors and the processing regions.
- Client side: Confirm the client's own log and telemetry settings, because they apply in addition to the provider's terms.
The provider's terms are the authoritative source for this tab, so record the document version and date you reviewed.
When the model runs inside your own environment, the model provider no longer receives prompts or results, which removes one external hop. Data still moves between the database, the SQLcl MCP Server and the client, and the logs described earlier still exist, so the organization becomes responsible for storing and retaining them. Whether a self-hosted model is supported with a given client depends on that client's configuration, which must be confirmed rather than assumed. What changes in this setup:
- Provider terms drop out: Prompt and result retention at a third party no longer applies, which simplifies transfer analysis for GDPR and HIPAA.
- Local logs become your records: Client logs, the DBTOOLS$MCP_LOG table and any gateway logs are now held only in your systems, so you own their retention and deletion.
- Network boundaries: Confirm which hosts the client can reach, including any update or telemetry endpoints, and restrict egress to what is approved.
- Model operations: Your team takes on patching, access control and capacity for the model service.
- Client support: Confirm the chosen client can point at a local model and that the setup does not send data elsewhere by default.
Before approval, document the full data path inside your environment and test that no results leave it through an unexpected route.
Where the SQLcl MCP server leaves data privacy gaps
The SQLcl MCP server moves query results to the AI client by design, and the client, the database and the model provider each keep their own records. The cards below name the gaps a reviewer should close, and the controls that usually cover each one.
Model-side retention is not documented
The pages reviewed do not state a retention period or plan-based data terms for the model side. Those depend on the AI client and the model provider you choose. Before approval, ask the provider for its retention period, whether prompts and outputs train models, and whether a zero data retention option exists for your plan. Record the answers in the vendor contract file, and confirm them against the contract rather than the marketing page.
Result rows reach the client
SQLcl returns query results to the MCP server, which formats them and sends them back to the MCP client, so the rows an agent queries become part of the model conversation. Restrict what the connected user can select, mask or exclude sensitive columns at the database level, and scope the schema the agent can see. Test with a database account that holds only the tables the use case needs.
How it worksClient logs capture results
The SQLcl 25.4 guide says client logs such as Claude Desktop's can capture connection events, tool executions, query results and error messages. Decide where those logs sit on each workstation, who can read them, and how long they stay. Route them to a controlled location, restrict file permissions, and add the log folders to your endpoint data handling review.
Monitoring guideDBTOOLS$MCP_LOG grows unless pruned
The SQLcl guide says DBTOOLS$MCP_LOG keeps request details and results inside the database and recommends pruning it, for example with a 1000 record limit. The table is in the database, so it falls under your database backup, retention and access rules. Assign an owner, set a pruning schedule that matches your policy, and confirm that backups do not keep records longer than the pruning window.
Repository is not for production
The oracle/mcp repository holds MCP servers for Oracle products under the UPL-1.0 license, and its README says it is not intended for production use. Treat any server from that repository as a reference or test build. For production, confirm which release your team runs against the current Oracle SQLcl guide, pin the version, and record the license terms in your software inventory.
Oracle MCP repositoryCommunity servers set their own rules
Community servers such as Tommi2Day/oracle-mcp-server and luprzybyl/mcp-oracle are not Oracle products, and each repository describes its own features and settings. Their logging, credential handling and data flows may differ from SQLcl's. Read the source of any community server you consider, check which data it stores and sends, and run it through the same review you apply to any unvetted package.
Order of work before production use
This sequence confirms the platform prerequisites, limits what the AI can reach, and sets up logging and retention so that the team can show a reviewer where Oracle data, results and prompts go before any staff member connects an assistant to a production database.
Confirm SQLcl and Java versions
The platform team checks that the SQLcl installed for the MCP client is version 25.2.0 or newer and that Java 17 or 21 is available to SQLcl, as stated in Oracle's developer blog dated May 15, 2026. Record the exact SQLcl build and Java version on the approved configuration sheet. The step is done when the versions are written down and the same build is used in the test environment that the rest of this sequence relies on.
Decide which schemas the AI may read
The database owner and the data owner agree on which schemas, tables and views the AI may query, and the DBA creates a dedicated least-privilege database user with grants limited to that list. Confirm with the DBA that the saved connection name points to this user and not to an administrative account. The step is done when a test query against an out-of-scope schema fails with a permission error.
Set a DBTOOLS$MCP_LOG pruning limit
The DBA sets a pruning rule for the DBTOOLS$MCP_LOG table, which Oracle's SQLcl guide says keeps request details and results inside the database. Oracle's example is a 1000 record limit, and the team should decide its own limit with the data owner and document it. The step is done when a run of test requests shows the log table stays within the limit after pruning.
Define client log collection and retention
The security team identifies where the AI client writes its own logs, since client logs such as Claude Desktop's can capture connection events, tool executions, query results and error messages. Decide who can read those files, where they are shipped, how long they are kept and how they are deleted, and confirm the policy with the records or compliance owner. The step is done when a test session produces a log entry that is found in the agreed location and removed on schedule.
Obtain the model provider's data terms
The model and AI client are chosen by the organization, and the SQLcl pages do not set retention or data terms for the model side. Procurement and the privacy lead request the written data retention, training use, sub-processor and regional terms for the exact plan in use, and the security reviewer confirms that query results sent to the model fall under those terms. The step is done when the signed terms are on file and match the plan staff will use.
Test that secrets never appear in outputs
Oracle's developer blog says credentials stay in the SQLcl store, so the model sees the saved connection name but not the secret. The tester attempts to make the assistant print connection details, reads the MCP log table and the client log files, and searches them for password strings and wallet material. The step is done when no secret appears in any output, and the results are attached to the review record.
Retest after every upgrade
Each change to SQLcl, Java, the AI client, the model or the database user is treated as a new configuration. The team reruns the schema restriction test, the log pruning check and the secret search before the change returns to production. The step is done when the retest record is signed by the security owner and the approved configuration sheet shows the new versions.
What a privacy reviewer asks to see and where it comes from
This table lists the privacy evidence a reviewer should request for an Oracle SQLcl MCP setup, the source each item comes from, and who on the customer side normally holds it. Read it as a checklist: the database and SQLcl items come from Oracle's documentation, while the model-side items depend on the AI client and provider the organization selects.
| Evidence | Source | Owner |
|---|---|---|
| Data flow diagram from client to model, SQLcl server and database | SQLcl guide 25.2 (how the server works); the organization's own architecture record | Platform or solution architect |
| Inventory of result data categories returned to the client | Query results returned by SQLcl through run-sql and schema-information; the organization's data classification | Database owner with data governance |
| DBTOOLS$MCP_LOG configuration and pruning evidence | SQLcl guide 25.4 monitoring page; query of the log table in the target database | Database administrator |
| Client log location, settings and retention | AI client's own log files and settings (for example Claude Desktop), confirmed on managed endpoints | Endpoint or IT administrator |
| Credential storage evidence for saved connections | Oracle developers blog on the SQLcl store; SQLcl connection configuration on each workstation | Database security or IAM team |
| Model provider processing terms, region and retention | The model provider's contract, data processing addendum and admin console, not the Oracle pages | Procurement and legal with security |
Questions buyers ask before approving SQLcl MCP for Oracle data
Does Oracle keep the query results that the SQLcl MCP server returns?
The supplied Oracle documentation describes the data path, not a retention policy for results held outside your database. SQLcl returns query results to the MCP server, which formats them and sends them back to the MCP client, so result data does reach the client. Whether the client keeps a copy depends on the application you choose. Oracle's SQLcl guide 25.4 also notes that client logs, such as Claude Desktop's, can capture connection events, tool executions, query results and error messages. Ask the client vendor what it stores, where, and for how long, and check whether the client's log settings can be controlled centrally before you approve the tool for rows that contain personal or regulated data.
What does DBTOOLS$MCP_LOG hold, and who can read it?
According to the SQLcl guide 25.4, DBTOOLS$MCP_LOG keeps request details and results inside the database itself. That means the log is subject to the same database controls as your other data, and anyone with sufficient privileges on that table could read the captured content. Because the log can hold query results, Oracle recommends pruning it, for example with a 1000 record limit. Confirm with your DBA which accounts can select from, insert into or delete from this table, who owns the pruning job, and whether the retention you set matches your data classification. Treat the log as sensitive data in its own right.
Can the AI model see database passwords?
No, according to Oracle's developer blog dated May 15, 2026, credentials stay in the SQLcl store. The model sees the saved connection name but not the secret. This protects the password from the model, but it does not limit what the connected user can read. A model that connects as an account with broad privileges can still retrieve any row that account can access. Pair the credential design with a least-privilege database user, and confirm during review that the connection names the model is shown do not reveal anything sensitive about your environment.
What retention applies to prompts that go to the model?
The pages reviewed for this topic do not state a retention period or plan-based data terms for the model side. Those depend on the AI client and the model provider you choose. The SQL prompt, the schema context and the returned results may all pass to the model provider, so the provider's terms govern how long they are kept and whether they train models. Ask the provider for its written retention terms, whether zero data retention or equivalent is available on your plan, and whether a business agreement covers the model traffic. Record the answers in your vendor file before rollout.
Can SQLcl MCP be used with GDPR or HIPAA data?
The sources reviewed do not establish that the SQLcl MCP server, as a tool, meets GDPR or HIPAA requirements. Whether it can be used depends on the whole chain: the database, the SQLcl server, the AI client and the model provider. Each party that receives personal or protected health data needs a documented legal basis or business associate agreement where the law requires one. For GDPR, confirm where the model provider processes data and what transfer terms apply. For HIPAA, confirm with the model provider and client vendor whether they will sign a business associate agreement and what their scope covers. Use your privacy and compliance team to make the determination.
What does a privacy review cost, and who pays for each part?
Costs fall into a few components, and the split depends on who does the work. Your team pays for internal time from the DBA, security, privacy and procurement staff. Vendors may charge for enterprise plans or data-processing terms, which recur if billed per seat or per year. A third party such as DeployOpen can be engaged for a fixed-scope review of the database connection, permissions, logging and the client configuration, with scope, deliverables and timelines agreed in writing before work starts; DeployOpen does not publish a price list, so ask for a quote tied to that written scope. Costs rise with the number of databases, clients and data classes in scope, and fall when the database user and logging are already documented. No figure for effort is supplied here, so ask each party for its own estimate.
Can our own team set up these privacy controls without outside help?
Often yes, if your DBA and security team can own the database side. The controls that matter most are a least-privilege database user, a restricted SQLcl connection, a documented pruning schedule for DBTOOLS$MCP_LOG with access limited to approved accounts, and a review of client log settings. Oracle documents the server, its tools and the monitoring pages, so your staff can work from those sources. The harder part is the model-side review, which requires contract and privacy work with the AI client and model provider. Where your team lacks capacity or needs independent testing of the setup, DeployOpen can run a security test of the agent configuration and deliver a findings report with fixes and a retest.
How DeployOpen reviews Oracle MCP data flows before rollout
DeployOpen reviews the path data takes between your Oracle database, the SQLcl MCP server and the AI client and model before staff connect. The work runs inside your own infrastructure and produces written evidence your security and compliance teams can check against their requirements.
How we scope
- Written scope lists which Oracle databases, schemas and SQLcl versions are in the review before work starts
- Scope records which AI clients, model providers and log locations staff will use with the server
- Engagements are fixed-scope, with deliverables and timelines agreed in writing up front
- Ongoing support and continuous testing are available as a retainer after the initial review
How we build
- Map each data flow from database to SQLcl server to AI client and model, including returned query results
- Test how the server handles connection names, credentials and saved connections in your environment
- Review the DBTOOLS$MCP_LOG table and client log settings, then set pruning and access controls
- Test tool exposure, restrict levels and least-privilege database users against the agreed scope
How we hand over
- Findings report lists each data flow, what it carries, where it is recorded and who can read it
- Documented fixes cover logging, retention settings, credential storage and database user privileges
- Retest confirms fixes work in the agreed environment before the engagement closes
- Handover pack gives your teams the evidence to review the setup against internal policies
How we support
- Retainers cover re-review when SQLcl versions, guide releases or AI clients change the data path
- Continuous testing checks that log retention and tool permissions still match your approved settings
- DeployOpen prepares evidence for your compliance assessment, but auditors and certification bodies issue any opinion
- Your team keeps ownership of retention periods and model provider terms, which we help you confirm

