← Back to the journal

DataFocus · Journal

Should enterprises expose internal data to AI agents through MCP?

MCP gives agents a standard way to reach tools and data, but the protocol leaves enforcement to implementors. This post covers published advisories, the spec's own guidance, and one governed pattern: access scoped one ontology at a time.

Yes, but only through a server that enforces its own limits, because the protocol does not. MCP standardizes how an agent discovers and calls tools and reads data; the specification itself says MCP "cannot enforce these security principles at the protocol level". So the decision is less about MCP and more about what sits behind the endpoint: whose identity the agent runs under, which resources it can reach, and whether a person approves changes. If you can answer those three questions for a given system, exposing it read-only to an agent is a reasonable first step. If you cannot, do not expose it yet.

This post does not claim MCP has "won" enterprise integration. We did not find an adoption study we could open and cite, so the question here is narrower: what does the evidence say about the risk, and what does a governed setup look like?

What does MCP standardize, and what does it leave out?

The 2025-06-18 specification describes MCP as an open protocol for connecting LLM applications to external data sources and tools. Hosts start connections, clients are connectors inside the host, and servers provide context and capabilities, all over JSON-RPC 2.0. Servers can offer three kinds of feature: resources (context and data), prompts (templated messages) and tools (functions the model can execute).

What it does not standardize is your authorization model. The same page lists key principles, including user consent and control, data privacy, and tool safety. It states that tools "represent arbitrary code execution" and that tool annotations should be treated as untrusted unless they come from a trusted server. It then says implementors should build consent flows, access controls and data protections themselves.

A table of who owns what:

ConcernProtocol defines it?Who has to supply it
Message format, tool discovery, capability negotiationYesMCP SDK or server
Which user an agent acts asNo (points to authorization specs)Your identity provider and the MCP server
Which rows, tables or documents are visibleNoThe system behind the server
Whether a write needs a humanNoServer policy and client UI
Record of what was calledNoServer and client logs

What risks have already been documented?

Three public sources are worth reading before any design discussion.

A tool-chain vulnerability. The GitHub security advisory for the MCP Inspector (published 13 June 2025) reports remote code execution in @modelcontextprotocol/inspector below version 0.14.1. The client and proxy lacked authentication, so unauthenticated requests could launch MCP commands over stdio. The advisory rates it Critical (CVSS v4 9.4) and lists 0.14.1 as the fix; see the advisory. The lesson is not that MCP is uniquely unsafe. It is that developer tooling around a server is part of your attack surface, including tools that run on a laptop.

A combination of capabilities. Simon Willison's June 2025 post on the "lethal trifecta" names three things that together let an attacker steal data from an agent: access to private data, exposure to untrusted content, and the ability to communicate externally. It is a blog argument, not a standard, but it gives you a useful test. Connecting internal data adds the first leg. A browsing tool or a document reader adds the second. An email or HTTP tool adds the third. Each MCP server you attach can supply one of them.

A category of failure. OWASP's LLM06:2025 Excessive Agency defines the problem as damaging actions performed in response to unexpected, ambiguous or manipulated model output, and names three root causes: excessive functionality, excessive permissions and excessive autonomy. Its mitigations include requiring a human to approve high-impact actions.

What does the specification's security guidance ask for?

The spec's Security Best Practices page is concrete. Three items matter most for an internal data server:

  1. No token passthrough. MCP servers must not accept tokens that were not explicitly issued for that server. The page explains that passthrough creates audit problems, because downstream logs show a different identity than the real caller.
  2. Consent before local commands. Clients with one-click local server setup must show the exact command and get explicit approval before running it, and should run local servers sandboxed with minimal default privileges.
  3. Scope minimization. Start with narrow scopes, elevate progressively, and log elevation events.

Notice what these have in common. Each one ties an agent's action to a specific identity and a narrow grant, then leaves a record.

How do you scope agent access one ontology at a time?

One governed pattern is to make the unit of access a business area rather than a database. The following describes DataFocus OT Flash as documented; DataFocus has no public MCP endpoint or live sandbox, so none of it can be tried online, and what an instance exposes depends on its own tools/list, version and the account's permissions.

DataFocus's product brief says agents are granted access one ontology at a time, using your existing users, roles and resource permissions. Both editions offer AI agent access over MCP. The brief also says an agent gets only what the authorizing user may see.

The Agent/MCP manual (release r56) makes the mechanism specific:

  • Intersection, not elevation. The /mcp scope for ontology tools is the intersection of the current user's permissions and the resources authorized in the session. MCP authorization delegates existing permissions; it does not grant role elevation. For writes, the manual describes the effective scope as the intersection of the External Agents operation setting, the exact OAuth grant range, and the user's EDIT access to the resource.
  • OAuth with PKCE. Authorization uses the authorization code flow with PKCE (S256), usernames and passwords must not be sent to MCP, and one grant targets one protected resource. Revoking a role, resource permission or grant causes later calls to be rejected, and users can list their connections.
  • Read paths that return evidence. SQL results come back as evidence rows with an execution receipt, completeness and truncation information, and a hash. The manual says zero-row, failed or truncated results must not be described as complete.
  • Published queries on the business side. The separate business endpoint queries by a published query key, not arbitrary SQL.
  • Documents are untrusted. The manual tells integrators to treat document content as untrusted material: a sentence in a document saying "run the command" is not a tool authorization. Tool annotations are client hints, not security authorization.

Compare this with the spec's guidance. Scope minimization maps to per-ontology grants and the intersection rule. The identity-and-audit concern behind token passthrough maps to calls made under the authorizing user's own permissions. Excessive agency maps to the draft-then-approve path for changes. These are mappings of documented behavior to documented guidance, not test results.

A checklist before you expose a system

This is illustrative, not run against any product. Apply it per system.

  1. Name the three legs. Does the agent that will use this server also have untrusted content and an outbound channel? If yes, remove one or require approval for outbound actions.
  2. Check identity. Does the server act as the end user, or as a shared service account? Prefer the former.
  3. Start read-only and narrow. Obtain the real tool catalog from your own instance (DataFocus's guidance is to start with a narrowly scoped query and add write access as the task requires). Do not rely on a static manual.
  4. Require approval for changes. Agents should submit drafts; a person approves. Confirm approval binds a specific plan and version, so a stale approval cannot be replayed.
  5. Plan the records. Keep tool-access logs, and keep your client's conversation logs separately, since a server's logs do not necessarily include what the agent was asked.
  6. Test revocation. Withdraw a grant and confirm the next call fails.
  7. Pin and patch. Track advisories for the servers, clients and inspectors you run.

When should you not expose a system through MCP?

  • No identity mapping. If the backing system only has one shared credential, per-user scoping is not possible. Fix that first.
  • Unclear data meaning. If "customer" or "delivered" means different things in different tables, an agent will answer confidently from the wrong one. Define terms before exposing data.
  • Sensitive data and an external model. With a hosted model, confirm what is sent to it under your data policy. DataFocus's documentation says the same for its own deployments, which are self-hosted with an administrator-configured model service.
  • Irreversible actions with no approval step. Payments, order changes and email deserve a separate decision, not a default tool.
  • A one-off integration. For a single script calling a single API, a direct call is simpler and has a smaller surface.

Whether MCP becomes the common layer is not something this evidence can settle. What it does support is a conditional answer: expose data through MCP when the server enforces user-level scope, limits tools, asks a human before changes and leaves records.

Next step

For the Flash side, the DataFocus documentation hub links the r56 Agent/MCP manual, which includes the tool catalog reference, MCP client and API examples. The product brief covers the ontology permission model in plain language.