MCP Governance: How to Safely Connect AI Agents to Enterprise Data

Govern MCP access to enterprise data by applying the Five Safes framework, filtering data inside the workflow, testing tools with non-AI clients, and keeping humans in the loop.

Key takeaways:

  • MCP safety lives in the server and the workflows behind each tool, not in the AI model.
  • Before connecting an agent, answer three questions: who is asking, what can they reach, and where does the data go?
  • The Five Safes framework (people, projects, settings, data, outputs) gives you an established checklist for governing AI access to sensitive data.
  • Test every MCP tool with a non-AI client such as MCP Inspector or Postman so you can read the raw response before any model sees it.
  • Clear tool descriptions, small single-purpose tools, and human-in-the-loop checks make chained agent workflows predictable and safe.

 

The Model Context Protocol (MCP) is an open standard for connecting AI applications to tools and data. While it makes connecting an agent to your CRM, document store, or file system fast, that speed is the risk.

An agent can be wired to every internal system in an afternoon, and the problems usually surface within days. A user asks for an org chart and gets salaries and home addresses with it. A public project update pulls in private meeting notes. Patient records end up with a cloud model. When someone checks the logs, they find only that each tool ran successfully, with no record of what it actually returned. The cause is the same each time: access was switched on before anyone decided who could see which data, and for what purpose.

Fixing this early matters more with MCP than with a typical integration. A source you connect once becomes available to every AI model you adopt, today and in the future, so any gap in governance spreads to every one of them.

Common gaps include:

  • Connections that grant more access than the task needs
  • Records and columns that are approved for business use but not for AI use
  • Retrieved content that influences the agent’s next action
  • No trace of what was requested, what ran, and what left

For a deep dive into this topic and live demos, watch our webinar, MCP Meets Governance: Safely and Securely Connect Your AI Agents to Data.

Three questions to answer before connecting an agent

Security and compliance teams reviewing an MCP connection usually ask three things:

  • Authentication: who is asking? An agent always acts on someone’s behalf. Every tool call should trace back to a verified person or service through a trusted sign-in.
  • Access control: what can they reach? Being signed in isn’t the same as being allowed. Grant only the tools and data the task needs.
  • Data sovereignty: where does it go? Where data lives, where it’s processed, and where the response lands (including which country) all matter.

Most organizations already ask these questions before a person gets near sensitive data. With MCP, the requester is an agent, but the questions don’t change. What changes is where the answers have to live.

Put the controls in the server and the workflow

An MCP setup has three parts. The AI application (Claude, Copilot, ChatGPT, or your own agent) contains the MCP client. Tools are named actions with descriptions and inputs. The MCP server sits between them: the client discovers tools with tools/list and runs one with tools/call, and the server publishes the tools and decides who may call them. Governance belongs there, not in the model.

Wiring an agent directly to databases and APIs tends to give it the easy data with no control, and the hard-to-reach data (spatial, legacy, on-premises) not at all. A better pattern is a governed connection layer: each tool runs a workflow your team builds, so you decide which sources it reads, what it does with the data, what it returns, and who may call it.

The examples here use FME, but the principles apply to any MCP server. With FME Flow’s MCP Server, each tool is an FME workspace published to FME Flow, with no code required. Published user parameters become the tool’s inputs, and the MCP Writer defines the response the workspace returns to the client. The agent never touches source systems or credentials. It sees only the tool and the response.

Group tools into separate MCP servers by domain or team, which FME Flow supports on a single installation. This helps in four ways:

  • Accuracy: agents choose better from a small set of related tools.
  • Context cost: clients load every tool description into the model’s context, so unrelated tools waste tokens and attention.
  • Least privilege: each server has its own OAuth 2.0 sign-in, tied to identities from your SAML identity provider, with its own allowed users and roles. Finance tools reach finance users only.
  • Ownership: each team owns and versions its own server, so one team’s change can’t break another team’s agents.

Apply the Five Safes to every MCP tool

The Five Safes is a framework for deciding whether access to confidential data is safe. Instead of relying on any single control, it breaks that decision into five separate questions. Developed at the UK Office for National Statistics in 2003, it’s now widely used by statistical agencies and trusted research environments to govern access to sensitive data. Its five questions map well onto an MCP request:

  1. Safe people: who may use it? Identity arrives with the request and is checked before anything runs. Signing in and being allowed to call a tool don’t grant access to every record the workspace can reach, because the source connection often has broader access than the requester. Apply record, field, and action restrictions based on the trusted identity, and deny the request if a required identity or policy check can’t be completed.
  2. Safe projects: is the use approved? Keep each tool limited to its approved operations. Treat tool inputs and retrieved text as untrusted: a document might contain text telling the agent to email a summary outside the organization. If the tool was published to summarize, the workflow should make sending impossible. Check authorization per action, never inherited from a retrieval, require approval before sensitive actions, and review changes to workspaces, tool descriptions, and permissions before release.
  3. Safe settings: where is access controlled? Run processing where your requirements say it must: cloud (including FME Flow Hosted in a region you choose), hybrid, on-premises, or fully air-gapped, with the model, client, and FME Flow all inside your network. Location alone doesn’t establish control. Review external calls, logs, temporary files, and the AI application’s own storage policies. Keeping the source internal does not keep every response internal: if FME Flow runs on-premises but the model is in the cloud, the response still leaves.
  4. Safe data: how is confidentiality protected? Filter and shape data before anything leaves the workflow. Leave restricted data out of the read entirely, return permitted records and approved fields only, and summarize where possible. A well-formatted summary can still disclose something sensitive, so check content as well as structure. A link in a response needs access control too.
  5. Safe outputs: what is safe to release? Inspect the response before a model sees it, and keep a record of every call. In FME Flow, each tool call runs as a job, so job history shows who ran it, when, with what parameters, and what the workflow did, without relying on the model’s account of events.

Example: answering a question without exposing patient identities

A hospital discharge coordinator asks a local AI model which surgical-ward patients are blocked from discharge, and why. The answer needs two systems with different owners: the hospital’s patient administration system on its internal network, and a discharge planning system on a regional care network.

A single read-only tool handles it. The model calls the tool with one parameter (the ward group). FME Flow, running in a sovereign EU cloud, verifies the requester’s SAML identity and confirms their role may call the tool. The workflow reads names, birth dates, insurance numbers, and diagnoses from the patient system, then blocking reasons, care levels, and planning notes from the discharge system. It joins the records on patient ID, then drops the ID, names, birth dates, insurance numbers, diagnoses, and free-text notes. Only seven fields remain: ward, bed, days waiting, blocking reason, care level, pending assessments, and next action.

The coordinator gets an actionable list by ward and bed. The model never sees a name, ID, diagnosis, or insurance number, because the workflow, not the model, decides what leaves.

Test tools with a non-AI MCP client first

Workspace authors make mistakes. A leak on an internal test server has limited impact. A leak to a cloud-based AI agent is a different story.

Because any MCP client can connect to any MCP server, you don’t need an AI model to test a tool. AI clients often paraphrase or hide the raw response, which makes them poor test harnesses. Instead, use a non-AI client you can run inside your network:

  • MCP Inspector, the MCP project’s browser-based tool for testing and debugging MCP servers
  • Postman, which can connect to MCP servers, list tools, call them, and show the raw response

Consider a tool that queries a PostgreSQL database for a utility’s active service addresses on a given street, using an SQLExecutor and joining the results to land parcels. Called from MCP Inspector, the response reveals a crew_notes column that seemed harmless but contains sensitive personal details about occupants. The fix is to stop reading the column at all, republish, and confirm it’s gone before the tool ever reaches a model.

Run through this checklist before releasing a tool, and again whenever the workspace, permissions, or dependencies change:

  • An allowed request returns only the intended data.
  • An unauthorized request is denied.
  • A missing policy or approval stops execution.
  • A completed or failed call can be traced.
  • Revoked access blocks further requests.

Test with as many parameter values as you can. Only after the tool passes should it move to a local model or, once approved, a cloud AI service.

Write tool descriptions that guide the agent

The agent knows nothing about your tools beyond their descriptions. Without them, it may call the wrong tool, pass bad parameter values, or try to do the processing itself. Longer isn’t better, though: every description loads into the context window, so verbose or jargon-heavy text costs tokens and can confuse the agent. Too little forces it to reason more, which also costs tokens.

Good tool descriptions:

  • Are clear and concise
  • State the tool’s purpose and expected output
  • Name limitations, such as geographic extent or date ranges
  • Match the parameter descriptions, including allowed values for choice parameters, so the agent can flag invalid input before running the tool
  • Reflect the tool’s approved purpose and setting

Chain small tools with human-in-the-loop checks

Descriptions can also chain tools by pointing from one to the next. This is useful but risky, especially when tools touch multiple systems or depend on non-default parameter values.

Consider a workspace that checks a folder for new business-license spreadsheets and pushes them to a public ArcGIS Online feature service. Published as one tool with no description or parameters, it reports success to the agent, yet the map loses all its original features. The feature writer was hard-coded to truncate existing data, and the agent had no way to know.

Two changes fix it:

  • Split the workspace into two tools, one to find updates and one to push them, with a description instructing the agent to confirm with the user before running the second.
  • Expose the risky setting as a parameter. Turning the feature service handling option into a user parameter lets the agent show its value and ask whether to keep or truncate existing features.

Small, single-purpose tools are more predictable than large multi-system ones. Back description-based checks with client-side settings that require approval for each tool call.

Govern the workflow, and the model choice stays open

The three opening questions now have concrete answers. Who is asking: OAuth 2.0 sign-in tied to your SAML identities, checked before any workspace runs. What can they reach: a server per domain, per-tool permissions, and workflows that filter records and fields. Where does it go: wherever your requirements dictate, with the response path traced as carefully as the source.

None of this depends on which AI model you use. When governance lives in workflows you design, control, and monitor, you choose which rows, which columns, and which actions AI can access.

Learn more

Safe product icons
Learn FME in 90 minutes. Get started today!

Real change is just a platform away.