Gcp mcp security: does IAM gate what an agent can change?
A security or platform lead deciding whether AI agents may call Google Cloud remote MCP servers should start from one fact: according to the Google Cloud MCP servers overview, IAM allow and deny policies secure these servers, and read-only enforcement is available through IAM deny policies at organization, folder or project level. The basis for this review is Google's own documentation, which should be read against the exact product and tool set in use. Confirm with Google which controls apply to the specific remote server and project before approving any agent access, because the documentation does not give a single edition-based tier for these controls.
Calling a tool requires the caller to hold the MCP Tool User role (roles/mcp.toolUser) on the project, which carries the mcp.tools.call permission, plus the roles for each product the agent reaches. Deny policies can match tool.isReadOnly, request.auth.oauth.client_id, resource.service and tool.name, and they are enforced only on mcp.tools.call. Two gaps need planning. Google's read-only example still lets tools/list return read-write tools, so the agent can see write-capable tools even when calls are blocked. IAM MCP attributes also cannot control resourceless APIs such as the Resource Manager MCP server, and resource.service and tool.name must be set through the Google Cloud CLI rather than the console. Verify both against the current prevent read-write tool use page.
The reviewer must still build three things: scoped identities for each agent client, a tested deny policy with a test call for every write-capable tool, and a log review process. Google documents Cloud Audit Logs, Cloud Monitoring and Cloud Trace as observability sources, and Model Armor as a way to scan MCP calls and responses, but whether each is enabled, retained and reviewed is the customer's decision. Google also states that agent actions can include non-reversible changes, and that agent-only operation is vulnerable to prompt injection, so a human approval step should be set for any high-impact action. Confirm these controls in a test project before production approval.
Which MCP security controls are built in, paid or outside components
This table compares the Google Cloud controls that gate MCP tool use, showing which ship with Google Cloud remote MCP servers, which need another Google Cloud product, and which sit outside the server entirely. Read each row against your own scope, since some controls do not reach non-Google MCP servers or resourceless APIs. Confirm pricing and product tiers with Google before budgeting for any add-on.
| Control | Built in on Google Cloud remote servers | Requires an additional Google Cloud product | Outside component or not available for non-Google MCP servers |
|---|---|---|---|
| MCP Tool User role and mcp.tools.call permission | Caller needs roles/mcp.toolUser on the project plus the roles for each product accessed | Not applicable | Non-Google MCP servers do not require this role and cannot be controlled with IAM |
| IAM allow and deny policies | Secure Google Cloud remote MCP servers | Not applicable | Not available for non-Google MCP servers; resourceless APIs such as Resource Manager are not covered |
| Read-only deny policy | Denies tools not annotated as read-only at organization, folder or project level | Not applicable | tools/list still returns read-write tools, so the gate is enforced only on calls |
| VPC Service Controls perimeter | Not built in; governs MCP use through api attributes | Requires VPC Service Controls configured on the perimeter | Not available for non-Google Cloud MCP servers |
| Model Armor scanning | Listed as a way to scan MCP calls and responses | Requires Model Armor, confirm tier and pricing with Google | Scans traffic, does not replace IAM gating |
| Cloud Audit Logs | Listed as an observability option for MCP activity | Relies on Cloud Logging configuration and retention choices | Confirm which MCP events are recorded in your project |
| Cloud Monitoring and Cloud Trace | Listed as observability options | Requires Cloud Monitoring and Cloud Trace, confirm pricing with Google | Dashboards and alerts are set up by your team |
| Self-published remote servers on Apigee or Cloud Run | Not applicable; these servers are yours, not Google-managed | Requires Apigee or Cloud Run, which you deploy and operate | Your team owns the controls, updates and audit design |
How the MCP Tool User role gates each tool call
A tool call to a Google Cloud remote MCP server is checked twice, and the reviewer needs both checks in view. The first gate is the MCP Tool User role (roles/mcp.toolUser) granted on the project, which contains the mcp.tools.call permission. The caller also needs the roles for each product the tool touches. A user or agent identity that holds the MCP role but lacks a data role on, for example, a BigQuery dataset should fail when it tries to read that data. Before approval, confirm which principals hold the MCP role, whether any are shared service identities, and which product roles sit alongside it.
IAM deny policies add a second layer that can restrict tools to read-only actions at organization, folder or project level. The documented attributes are tool.isReadOnly, request.auth.oauth.client_id, resource.service and tool.name, and they are enforced only for the mcp.tools.call permission. The read-only example blocks tools that are not annotated as read-only, but Google notes that tools/list still returns every tool, including read-write ones. An agent can therefore see write tools it cannot run. Resourceless APIs, such as the Resource Manager MCP server, fall outside these attributes, and resource.service and tool.name must be set with the Google Cloud CLI, not the console. Test each deny rule with a real client before relying on it.
Google's AI security and safety guidance describes two operating modes. In human-in-the-middle mode, a person approves each action before it runs. In agent-only mode, no person reviews actions, and Google states that this mode is vulnerable to prompt injection and insecure tool chaining. Set a written policy that limits agent-only mode to read-only tools, or prohibits it for any identity that can reach write tools. Ask the platform team to confirm which of these modes each approved client supports and where the approval step is enforced.
Which tools can change resources and why that matters
The controls on a Google Cloud remote MCP server work at specific points: tool calls, read-only annotations and resources that IAM can name. Each card below marks a place where an agent can still change something, or where a control does not reach, so reviewers can decide what to restrict before approval.
Non-reversible changes are possible
Google's AI security and safety guidance says MCP servers let AI applications act on your behalf, and those actions can include non-reversible changes to resources. A read-write tool can delete or modify a resource with no undo. Before approving a server, list which products it reaches, which of their operations are destructive, and whether your change process has a rollback path for each one.
AI security and safetyResourceless APIs fall outside IAM attributes
Google documents that IAM MCP attributes cannot control resourceless APIs, and the Resource Manager MCP server is the named example. A deny policy written around resource or service attributes may not match calls to these tools at all. Ask Google or your own test harness to confirm which tools have no resource, and plan a separate control, such as limiting which clients can connect, for those tools.
tools/list still shows read-write tools
Google's read-only deny policy example blocks calls to tools not annotated as read-only, but tools/list still returns every tool, including read-write ones. The agent can see and try to call a tool that the policy will refuse. Treat the denial as the enforcement point, and expect agents to attempt write actions and fail. Test that the denied calls produce the audit entries you need.
Some attributes need the Google Cloud CLI
Google documents that resource.service and tool.name must be managed with the Google Cloud CLI, not the console. A team that writes its read-only and tool restrictions in the console may believe a rule exists when it does not. Confirm each deny policy attribute in your own environment, and keep the policy definitions in version control so a reviewer can see exactly what is enforced.
Agent-only mode raises prompt injection risk
Google's AI security page describes two modes: human-in-the-middle, where a person approves each action, and agent-only, which Google says is vulnerable to prompt injection and insecure tool chaining. A tool result from a web page or document can steer the agent into calling a write tool. For any write-capable tool, require a human approval step and document which modes your teams are permitted to use.
Non-Google MCP servers sit outside IAM
Google's documentation says non-Google Cloud MCP servers do not require the MCP Tool User role and cannot be controlled with IAM policies. A community or third-party server connected from the same agent gets no IAM gate, so its tools are governed only by the server and client settings. Inventory every MCP server each agent can reach, and treat the ones outside Google's endpoints as a separate approval decision.
How the answer changes by project structure and agent mode
A single project keeps the policy surface small. The MCP Tool User role (roles/mcp.toolUser) is granted on that project, and it carries the mcp.tools.call permission that gates tool calls. Each product the agent reaches still needs its own role, so an agent that can call a read tool but holds no data role on the service gets nothing useful from it. Because the project is the only scope, a project-level deny policy is the natural place to enforce read-only use.
- Grant the caller explicitly: confirm which principals hold roles/mcp.toolUser on the project, since that role is the gate for mcp.tools.call.
- Check product roles separately: each service the agent reaches needs its own role, so review those alongside the MCP role.
- Apply a project deny policy: a deny rule scoped to the project can block tools that are not annotated as read-only.
- Expect tools/list to show everything: the read-only deny example still lists read-write tools, so the agent may see them even when calls fail.
- Plan for resourceless servers: IAM MCP attributes cannot control resourceless APIs such as the Resource Manager MCP server.
Confirm with your Google Cloud administrator exactly which principals hold the MCP Tool User role on each project and which product roles sit beside it.
Organization-wide use introduces folders and projects that inherit policy. Google Cloud IAM deny policies can be set at organization, folder or project level, so a read-only rule can be applied once and inherited everywhere below it. The risk is the reverse: a project team may assume a grant at the top is limited to its own resources, or an exception may be added lower in the tree without review. Map where each agent-facing project sits before choosing the level for the deny policy.
- Set the deny policy high: an organization or folder level rule covers projects created later, which reduces drift.
- Review inherited grants: mcp.tools.call and product roles inherited from above can give access no project owner intended.
- Restrict the deny policy attributes: tool.isReadOnly, request.auth.oauth.client_id, resource.service and tool.name are the documented attributes, and resource.service and tool.name must be managed with the Google Cloud CLI, not the console.
- Control which OAuth clients are allowed: request.auth.oauth.client_id lets you tie a rule to a specific client.
- Document exceptions: any lower-level allow that overrides an inherited rule should be recorded and reviewed.
Ask for an export of the policy hierarchy and confirm which deny rules are inherited at each folder before approving broader use.
Google's AI security and safety guidance describes two modes. In human-in-the-middle use, a person approves each action before the agent carries it out. Google Cloud docs say MCP servers can perform actions that include non-reversible changes to resources, so a per-action approval step is the control that matters most for write-capable tools. This mode trades throughput for review, and it depends on the approver understanding what each tool call will do, not just that a prompt appeared.
- Review each proposed call: approvers should see the tool name and target resource before confirming.
- Treat approval fatigue as a risk: frequent prompts can lead to approvals without reading them.
- Keep write tools behind review: tools that change resources should always require a person.
- Log who approved: approval records should be retained next to Cloud Audit Logs entries.
- Confirm the client setting: check how the MCP host in use handles approval prompts before relying on them.
Verify with your team how approvals are recorded and whether any client setting allows auto-approval for MCP tools.
Agent-only operation removes the human approval step, so the agent chooses and runs tool calls on its own. Google's guidance says this mode is vulnerable to prompt injection and insecure tool chaining, where one tool's output steers the next call. Under this model IAM and deny policies become the primary control instead of a backstop. Read-only enforcement, narrow product roles and VPC Service Controls should all be in place before an agent runs unattended, and the agent should not hold write roles it does not need.
- Make IAM the primary control: the deny policy and roles must block unwanted actions without a person in the loop.
- Assume injected content: data returned by a tool can carry instructions, so treat responses as untrusted.
- Limit tool chains: a read tool followed by a write tool is the pattern to block or review.
- Enforce read-only first: start with the tool.isReadOnly deny rule before granting any write capability.
- Monitor closely: use Cloud Audit Logs, Cloud Monitoring and Cloud Trace to detect unexpected call sequences.
Confirm that no agent-only workflow holds write roles on production projects before approving it.
Google-run remote MCP servers run on Google's infrastructure and sit behind googleapis.com endpoints, and IAM allow and deny policies secure them. Servers you publish yourself through Apigee or Cloud Run are your own servers, not Google-managed ones. Google documents that non-Google Cloud MCP servers do not require the MCP Tool User role and cannot be controlled with IAM policies, so the same controls do not automatically travel with a self-published server. Your team must build the authorization, logging and rate controls for that server itself.
- Confirm the owner: check whether the endpoint is Google-run or a server your team publishes.
- Do not assume IAM coverage: IAM MCP controls apply to Google Cloud MCP servers, not non-Google Cloud MCP servers.
- Own the authorization design: for self-published servers, define how tokens are validated and who may connect.
- Review the publishing path: Apigee and Cloud Run each carry their own access and logging settings to verify.
- Keep the MCP version in view: the overview lists support for MCP version 2026-07-28 and compliance with the MCP authorization specification.
Ask for a written statement of which controls cover each endpoint in use before accepting it in the same approval.
Projects holding regulated or sensitive data need a network boundary in addition to IAM. VPC Service Controls can govern MCP use through the api attributes mcp.is_mcp, mcp.tool.is_read_only and request.auth.oauth.client_id, which lets a perimeter block tool calls based on whether they are read-only and which OAuth client made them. That control applies to Google Cloud MCP servers only, so it does not extend to non-Google Cloud servers. A perimeter is also a design decision: data that is meant to flow to an approved agent must be listed deliberately, or the perimeter will break legitimate work.
- Define the perimeter: place projects holding regulated data inside a perimeter that governs MCP calls.
- Use the read-only attribute: block non-read-only MCP tool calls from the perimeter where writes are not wanted.
- Allow named OAuth clients: limit request.auth.oauth.client_id to approved clients only.
- Remember the scope limit: the perimeter does not cover non-Google Cloud MCP servers.
- Test with representative calls: confirm that approved read paths still work before enforcing.
Before approving use on regulated data, ask your security team to review the perimeter definition and the list of allowed OAuth clients.
Order of work before approving production use
This sequence moves from knowing what is in scope to proving that read-only limits hold and that someone is watching. Each step ends with a check the approvers can review before production use is signed off.
Inventory the remote servers and products in scope
The platform owner lists every Google Cloud remote MCP server the team plans to allow, along with each Google Cloud product those servers reach, such as Compute Engine, BigQuery or Resource Manager. Confirm which servers are Google-run remote servers and which are self-published servers built with Apigee or Cloud Run, because IAM controls apply to the Google-run servers, and non-Google Cloud MCP servers do not require the MCP Tool User role and cannot be controlled with IAM policies. The step closes with a signed inventory that names each server, its endpoint and its owner, and it is the baseline for every later check.
Grant the MCP Tool User role to named groups only
The IAM administrator grants roles/mcp.toolUser, which contains the mcp.tools.call permission, to specific groups on specific projects rather than at the organization level. Callers also need the roles for each product they access, so review those product roles at the same time. Ask the team to confirm that no broad role grants tool-call rights by default. The step closes when an IAM policy export shows the role bindings, and the security team has confirmed that each group matches an approved use case.
Apply read-only deny policies with CLI-managed attributes
The cloud administrator writes IAM deny policies at organization, folder or project level that block mcp.tools.call for tools that are not annotated as read-only, using the tool.isReadOnly attribute. The resource.service and tool.name attributes must be set with the Google Cloud CLI, not the console, so run the policy changes through the CLI and store them in version control. Confirm that resourceless APIs such as the Resource Manager MCP server are not expected to be governed by these attributes, and plan a compensating control for them. The step closes when the deny policy is in place and a test caller receives a denial for a write tool.
Test tools/list against tools/call behavior
The security engineer connects a test client with the restricted identity and records two results: the list of tools returned by tools/list and the outcome of each attempted tools/call. Google's guidance notes that tools/list still returns all tools, including read-write tools, so the team must confirm that the read-write tools are denied at call time and not only hidden. Document any write tool that a user can see but cannot run, and decide whether that visibility is acceptable for the agent's prompts. The step closes with a test record showing each write tool denied and each read tool allowed.
Add VPC Service Controls where the perimeter requires it
Where the organization already uses a VPC Service Controls perimeter, the network security team adds MCP use to it using the mcp.is_mcp, mcp.tool.is_read_only and request.auth.oauth.client_id attributes. These controls apply only to Google-run remote servers, so confirm the scope with the team before relying on them for any other server. Test that a call from outside the approved OAuth client or network is refused. The step closes when perimeter rules are tested from both an allowed and a disallowed location.
Route Cloud Audit Logs and Monitoring to security
The logging owner confirms that Cloud Audit Logs capture MCP tool calls for the projects in scope and that the log sink sends them to the security team's monitoring platform. Set alerts in Cloud Monitoring for denied mcp.tools.call events and for any tool call that the security team did not expect. Cloud Trace is available for observability, but confirm with Google's documentation which fields and retention apply in your environment. The step closes when a test call produces a log entry that reaches the security team and triggers the chosen alert.
Schedule a retest and record the approval conditions
The security lead sets a recurring retest of the IAM bindings, deny policies, perimeter rules and log routing, and reruns the tools/list and tools/call tests after any Google Cloud or MCP server change. Record the conditions of approval, including the agent mode allowed. Google's guidance describes human-in-the-middle use, where a person approves each action, and agent-only use, which it describes as vulnerable to prompt injection and insecure tool chaining, so approval should name the mode. The step closes with a signed approval memo that lists the scope, controls, test results and the retest date.
What a security reviewer asks to see for MCP tool control
This table lists the evidence a security reviewer should request before approving Google Cloud remote MCP servers for agent use, where each item comes from in Google Cloud, and what it proves. Read each row as a question to answer with a screenshot, export or command output from the reviewed project or organization. A control that exists in documentation but has no current evidence should be treated as unverified.
| Evidence requested | Where it comes from in Google Cloud | What it proves |
|---|---|---|
| IAM bindings for mcp.toolUser | IAM policy export for each project that hosts agent callers, filtered for roles/mcp.toolUser and the product roles that accompany it | Which principals can call MCP tools at all, and whether the caller also holds the product roles needed to act on data |
| Deny policy definitions and their scope | Deny policy objects at organization, folder and project level, including the tool.isReadOnly condition and the mcp.tools.call permission they target | Whether a read-only restriction is set where intended and cannot be bypassed by a lower-level grant |
| tool.isReadOnly test results | Recorded test calls made with an agent identity against read and write tools, with the resulting allow or deny responses | That the deny policy blocks write tools in practice, not just in configuration. Tools/list still returns read-write tools, so the test must cover actual calls |
| Resourceless API exceptions | A written list of MCP servers without resources, such as Resource Manager, and the compensating control for each | Which tools IAM attributes cannot constrain, so the reviewer knows where read-only enforcement stops |
| VPC Service Controls perimeter configuration | Perimeter definition and access levels that reference the mcp.is_mcp, mcp.tool.is_read_only and request.auth.oauth.client_id attributes | That calls from outside the perimeter are restricted, and that the perimeter covers Google-hosted MCP servers only |
| Cloud Audit Logs entries for mcp.tools.call | Cloud Audit Logs entries filtered on the mcp.tools.call method, with principal, client identifier and tool name fields | That tool calls are recorded with an identity and tool name, and that the logging sink and retention meet the organization's requirement |
| Model Armor configuration, if used | Model Armor template settings applied to MCP traffic, plus sample scan results for a test prompt or response | Which screening is active on calls and responses, and whether it was tested. It does not replace IAM or deny policy controls |
| Inventory of non-Google MCP servers in use | The organization's own register of connected MCP servers, with endpoint, owner and whether IAM policies apply | Which servers fall outside IAM control, since non-Google MCP servers do not require the MCP Tool User role and cannot be governed with IAM policies |
Questions buyers ask before approving the Google Cloud MCP server
Is IAM alone enough to make the Google Cloud MCP server safe for write operations?
No. IAM gates who can call tools through the MCP Tool User role (roles/mcp.toolUser), which contains the mcp.tools.call permission, but the caller also needs the roles for each product it touches. That means a user with broad product roles can still trigger changes that may be non-reversible, as Google's AI security and safety guidance notes. Allow policies decide who gets in; they do not decide which tools are safe to run. Pair them with deny policies that restrict tools to read-only actions, a human approval step for changes, and a review of which roles each caller holds. Confirm the exact role bindings in your own project before you approve writes.
Does read-only enforcement stop an agent from seeing read-write tools?
Not fully. A read-only deny policy blocks tools that are not annotated as read-only when the call is made, but Google documents that tools/list still returns every tool, including read-write ones. The agent can therefore see that a write tool exists, even though calls to it are denied. Treat the deny policy as the enforcement point for execution and assume the tool catalog is visible to the client. Confirm the current behavior of tools/list and tool annotations on the Google Cloud documentation before relying on this control in a review.
How much effort does the MCP control set take, and what drives it?
Effort depends mainly on the number of projects, folders and products in scope, how many roles each team holds, and how many agent clients need access. The main work items are mapping which products each caller touches, writing deny policies at the right level (organization, folder or project), and testing that calls are blocked as intended. Some attributes, such as resource.service and tool.name, must be managed with the Google Cloud CLI rather than the console, which adds scripting and review work. IAM MCP attributes also cannot control resourceless APIs such as the Resource Manager MCP server. Ask any provider for a written list of the policies, projects and tests in scope before agreeing on a quote.
Can our own administrators configure the deny policies, or do we need outside help?
Your administrators can configure them if they have the IAM rights to manage deny policies and access to the Google Cloud CLI for the attributes that require it. The harder parts are usually testing and governance: confirming that a blocked tool stays blocked, keeping policies consistent across projects, and reviewing changes over time. Many teams keep policy ownership internal and bring in outside help for an independent test of the agent setup. Check the Google Cloud access control documentation for the role and permission names before assigning them, and confirm your internal skills against that list.
What costs come from Cloud Audit Logs, Cloud Monitoring and Cloud Trace?
The main cost drivers are log volume, retention period, the number of projects sending telemetry, and how long you keep logs in a location you control. Cloud Audit Logs, Cloud Monitoring and Cloud Trace are listed as observability options for MCP traffic, and each has its own pricing and storage behavior. Costs recur as long as logs are ingested and retained, so the request volume from agent clients is the key variable. Confirm current pricing, free allotments and retention options on Google's pricing pages before budgeting, and ask your Google account team to model the expected volume for your environment.
How do Google's remote MCP servers differ from community MCP servers for control purposes?
Google's remote servers are governed by IAM allow and deny policies, and VPC Service Controls can govern their use through MCP-specific attributes. Non-Google Cloud MCP servers do not require the MCP Tool User role and cannot be controlled with IAM policies, so the controls described here do not apply to them. Community servers, including those in third-party repositories, need their own authentication, logging and access review. Google-maintained local servers in the Google MCP GitHub repository are also separate from the remote servers. Check which server each agent client connects to before assuming that these controls cover it.
When is outside help worth it for a Google Cloud MCP rollout?
Outside help is most useful when you need an independent test of how agents behave against your real permissions, when the rollout spans many projects or an organization hierarchy, or when your team lacks time to build and retest deny policies. DeployOpen's AI agent rollout security review covers tool and file permissions, credential handling, SSO and admin settings, and delivers a findings report with fixes and a retest. It is fixed-scope, with scope and deliverables agreed in writing before work starts. DeployOpen does not issue audit reports or certifications. Ask for the written scope and the retest terms before comparing offers.
Official Google Cloud pages to check each claim against
Before approving a Google Cloud remote MCP server, reviewers should check each control claim against the official pages rather than relying on summaries. The Google Cloud MCP servers overview is the starting point: it defines remote servers as services running on Google's infrastructure, names the MCP version and authorization specification they follow, and lists Model Armor, Cloud Audit Logs, Cloud Monitoring and Cloud Trace as the scanning and observability options. The supported products page shows which Google and Google Cloud servers exist, each with its own HTTP endpoint and reference pages, and separates the Google-maintained local servers in the GitHub repository from the remote servers.
The four topic pages answer the control questions one at a time. The AI security and safety page explains why an agent action can be irreversible and compares human-in-the-middle with agent-only operation. The access control page covers the MCP Tool User role, the mcp.tools.call permission and the product roles a caller also needs. The read-write restriction page covers the deny policy attributes, including tool.isReadOnly, and its stated limit that tools/list still returns read-write tools. The VPC Service Controls page covers perimeter-based control and its exclusion of non-Google Cloud servers.
Read these pages in the order of the controls you must approve, and record the page version and date you reviewed, because Google's documentation changes. Confirm with your Google Cloud account team any control the pages describe as preview or limited, and confirm resource-less servers such as Resource Manager are handled as the pages describe before you write a policy that assumes full coverage.
How DeployOpen works on this
DeployOpen reviews how Google Cloud remote MCP servers are permitted, restricted and monitored in your environment, covering IAM deny policies, read-only enforcement and risky tools. Our work is limited to the controls you can verify, and we document where those controls stop short.
How we scope
- Written scope lists which Google Cloud remote MCP servers, projects and agent clients are in review
- Scope records which identities, roles and products each agent may reach through tool calls
- Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts
How we build
- We test whether deny policies actually block read-write tools when the agent calls them
- We check tool listings, since tools/list can still show read-write tools even when calls are blocked
- We review human approval versus agent-only operation and test prompt injection against tool chains
How we hand over
- Findings report with severity, evidence of each tested control and the exact settings to change
- Documented IAM, deny policy and VPC Service Controls configuration for your security and audit teams
- Retest after fixes, with a list of controls that remain outside Google Cloud's enforcement
How we support
- Ongoing support covers reviews when new MCP servers, tools or client versions are added
- Continuous testing is available as a retainer to recheck permissions after IAM changes
- Evidence can be updated for your compliance reviewers as your MCP setup changes over time

