Snowflake MCP security: does the managed server meet your permission requirement?
Evaluate the Snowflake-managed MCP server, not the community server. The managed server enforces access through role-based access control (RBAC) at two levels: the server itself and each tool it exposes. Access to the server does not grant access to its tools, so a permission must be granted for each tool, following least privilege. The community repository at Snowflake-Labs/mcp is marked deprecated and unmaintained, so it should not be the basis of a security review. The managed server's documented options are the baseline you can test against, but the outcome depends on how your roles, grants and tool configurations are actually built in your account.
Tool annotations are not a control. The managed server sets default annotations for GENERIC and CORTEX_AGENT_RUN tools (readOnlyHint false, destructiveHint true, idempotentHint false, openWorldHint true), and Snowflake states these are client-facing hints, not security controls. A client may display or act on them, but nothing in the annotation stops a write. The restriction has to live in the underlying role: the UDF, stored procedure or agent behind the tool must run under a role that cannot perform the change. Verify this by calling each tool with the intended client role and attempting a write the tool should block. Review the Snowflake-managed MCP server documentation for the current list of tool types and their configuration keys before you sign off.
Reviewers must still design several things Snowflake does not decide for you: which roles may reach the server, which tool types each role may call (SYSTEM_EXECUTE_SQL with read_only set, or no SQL execution at all), which warehouse and query_timeout each SQL tool uses, and whether CODING_AGENT is allowed, since it adds code_toolset_all and a managed sandbox where the agent can write and run code. Also decide how third-party MCP servers, including those from other Snowflake accounts, are verified for tool poisoning and tool shadowing. Confirm recursion limits and tool chaining behavior in your own environment, and record each decision so an auditor can trace it to a grant.
Which lockdown controls are built in, paid or outside components
This table sorts each Snowflake MCP lockdown control into what the managed server provides by default, what depends on edition or configuration, what needs a component outside Snowflake, and what the supplied documentation does not settle. Read the last column as your confirmation list for Snowflake before approval, since edition entitlements are not stated in the sources reviewed here.
| Control | Built in | Needs edition or configuration | Needs outside component or not supplied |
|---|---|---|---|
| Server-level RBAC | Access to the managed server is governed by role-based access control | Roles must be granted and reviewed per server by the account admin | Confirm with Snowflake which roles can administer MCP servers |
| Per-tool permission grants | Access to the server does not grant access to its tools | Each tool needs its own grant, applied under least privilege | Confirm how tool grants appear in audit output |
| SYSTEM_EXECUTE_SQL read_only setting | Setting exists in the tool configuration | Must be turned on in each SQL tool definition | Confirm whether read_only blocks every write path |
| SYSTEM_EXECUTE_SQL query_timeout and named warehouse | Both are set in the tool configuration | Warehouse size and timeout values are set per tool by the admin | Confirm warehouse cost controls with Snowflake and your account team |
| GENERIC and CORTEX_AGENT_RUN default annotations | Default readOnlyHint false, destructiveHint true, idempotentHint false, openWorldHint true | Annotations are client-facing hints, so they do not restrict execution | Enforce limits through RBAC on the underlying UDF, procedure or agent |
| Recursion depth limit | Maximum of 10 invocations enforced for MCP agent loops | Circular tool configurations must be avoided in design | Review tool chains manually, since no supplied control blocks other loops |
| CODING_AGENT managed sandbox | code_toolset_all is added on every run, giving a managed sandbox | Only applies when the CODING_AGENT tool type is configured | Confirm sandbox network and file limits with Snowflake before approval |
| External OAuth | Snowflake OAuth is the default authentication method | External OAuth must be configured to use the organization's identity provider | Identity provider setup and token policies sit with your identity team |
| Community server status | Snowflake-Labs/mcp is deprecated and no longer maintained | Block the community server in client configurations | Verify any third-party MCP server, including one from another account, before use |
How the managed server decides what a client can run
A client can only call a tool it has been granted, and each call is checked in layers. The first layer is the authenticated user and the role that user is operating under, which is set by the sign-in method the client uses (Snowflake OAuth by default, or External OAuth against your identity provider). The second layer is access to the MCP server object itself, which is governed by role-based access control. Snowflake states that access to the server does not give access to its tools, so the third layer is a separate permission for each tool, granted under least privilege. Reviewers should confirm that the role behind each client holds only the tool grants that client needs, and that no broad role is reused across clients.
The fourth layer is the one most often missed: the privileges of whatever the tool runs. A GENERIC tool that wraps a UDF or stored procedure, a CORTEX_AGENT_RUN tool, or a SYSTEM_EXECUTE_SQL call executes with the rights of the role that holds the underlying object or grant, so a permitted tool can still write, delete or call external functions if that role can. Tool annotations such as the default readOnlyHint false and destructiveHint true are hints sent to the client, and Snowflake says they are not security controls. A client that ignores them enforces nothing, so the restriction must sit in RBAC on the objects themselves.
The managed server also caps unbounded behavior: Snowflake enforces a maximum recursion depth of 10 invocations to limit agent loops driven through MCP, and advises against circular tool configurations. This limits runaway chains but does not limit what a single call may do. Before go-live, confirm with Snowflake which privileges each granted tool inherits and test that a read-only role cannot reach write paths through any tool in the list.
Which tool types carry the most risk
The managed server exposes several tool types, and they do not carry the same risk. SQL execution, custom UDFs and procedures, agents that call other tools, and the coding agent each change data or run code in different ways. Reviewers should map each enabled tool to the role behind it and confirm which limits apply before approving the server.
SQL execution tool
The SYSTEM_EXECUTE_SQL tool runs SQL that the agent writes, so its reach is bounded mainly by the role the client uses and the tool's configuration. The configuration accepts a read_only setting, a query_timeout and a named warehouse. Confirm that read_only is set for analyst roles, that the timeout and warehouse are chosen deliberately, and that the role cannot write to schemas it does not need. Test whether a prompt can steer the agent toward DDL or DML the role technically permits.
Custom UDFs and procedures
The GENERIC tool type exposes user-defined functions and stored procedures to the agent. Snowflake's default annotations for these tools are readOnlyHint false, destructiveHint true, idempotentHint false and openWorldHint true, which tells clients the tool may change data and reach outside systems. These are hints for the client, not controls. The real limit is the privileges of the role that owns or runs the procedure, so review each procedure's body and its execute-as setting before exposing it.
Cortex agent run tool
The CORTEX_AGENT_RUN tool lets an MCP client invoke a Cortex Agent, and that agent can call its own tools. A single approved tool can therefore lead to actions the reviewer never listed on the server. It also carries the same default hints as generic tools, so readOnlyHint is false and destructiveHint is true. Map every tool each nested agent can reach, and confirm that the agent's own role is limited. Snowflake caps recursion at 10 invocations and advises against circular tool configurations, which bounds loops but not what each step may do.
Coding agent tool
The CODING_AGENT tool type adds code_toolset_all on every run. That gives the agent a managed sandbox in which it can write and run code, which is a different risk from querying data. Ask what the sandbox can reach over the network, which packages it can install, and whether its output can reach other tools on the same server. Keep it off unless a named team needs it, and test it with prompts that try to read data outside the intended scope.
Tool poisoning and shadowing
Snowflake warns that using several MCP servers without verifying tools and descriptions can enable tool poisoning or tool shadowing, where one server's description misleads the model about another tool. This matters when a team adds a server from another Snowflake account or a third party alongside the managed server. Before approval, confirm who owns each tool description, record the version reviewed, and check the client's allowlist so that unreviewed servers cannot register the same tool names.
How the lockdown differs by team and data sensitivity
A single analytics team with read-only needs is the simplest case, and the main job is to keep the grant small. Access to the managed server does not give access to its tools, so the team's role should receive permission only for the specific tools it uses, and nothing that writes. Start from least privilege and add tools only when a documented use case requires one.
- Tool grants: Grant only the tools the team needs, such as a Cortex Analyst or Cortex Search tool over approved schemas, and leave out GENERIC and CORTEX_AGENT_RUN unless required.
- SQL execution: If SYSTEM_EXECUTE_SQL is granted, confirm that
read_onlyis enabled, set aquery_timeout, and name a dedicated warehouse with a bounded size. - Annotations: Do not rely on client-facing tool annotations as a control. Confirm that the role's privileges on the underlying objects are read-only.
- Tool review: Confirm the team's client only connects to the official managed server and that tool descriptions are reviewed before rollout.
Before approval, confirm with your Snowflake administrator exactly which roles, tools and warehouse the team's MCP client will use, and test that a write attempt is refused.
When several teams share one Snowflake account, the risk moves from a single grant to overlap between grants. A tool or server that one team needs can become reachable by another team's role through shared warehouses, shared schemas or shared custom tools. The lockdown therefore depends on separating roles, databases and warehouses per team and on controlling who can administer MCP servers.
- Role separation: Map each team to its own role and confirm that no team's role inherits access to another team's databases or schemas.
- Warehouse isolation: Give each team a separate warehouse for SYSTEM_EXECUTE_SQL so one team's runaway queries do not affect another's cost or performance.
- Shared custom tools: Review any UDF or stored procedure exposed through the GENERIC type, because a shared tool runs with the privileges of the object it calls.
- Server ownership: Confirm who can create and change each MCP server object and who can grant tools on it.
- Recursion and loops: Confirm that tool configurations do not form circular chains, since Snowflake enforces a maximum recursion depth of 10 invocations but advises avoiding circular setups.
Ask the account administrator for a list of every MCP server, its tools and the roles granted to each, and confirm no team holds a role it does not need.
Where the account holds regulated or sensitive data, the lockdown should assume that any tool that returns rows can expose them to the connected client and its model provider. Security and compliance reviewers should decide which datasets may be reachable at all before choosing tools. Snowflake's documented controls are RBAC and least privilege on the underlying objects, so masking, row access and object grants matter more than the MCP layer itself.
- Dataset scope: Limit the server to curated schemas that exclude raw personal or regulated fields, and confirm that data-protection policies on those objects apply to the querying role.
- Write prevention: Disable write paths. Use read-only SQL execution, avoid GENERIC tools that can modify data, and confirm that the role has no write privileges on the objects.
- Third-party servers: Snowflake recommends verifying any third-party MCP server, including one from another Snowflake account, to reduce tool poisoning and tool shadowing. Do not add unreviewed servers to a regulated account.
- Community server: Confirm no team still uses the community Snowflake-Labs/mcp server, which its README describes as deprecated and unmaintained.
- Evidence: Keep grants, tool lists and role definitions as review evidence, and confirm with your compliance team what logging the account and client produce.
Before approval, confirm with your privacy and compliance leads which datasets are in scope and obtain written sign-off on the tool list.
A coding agent tool changes the risk profile more than an analytics tool does. The CODING_AGENT tool type adds code_toolset_all on every run, which gives the agent a managed sandbox where it can write and run code. Treat this as a separate approval decision, not a checkbox on the analytics configuration, because the agent can do more than the query tools allow.
- Separate server: Keep coding-agent tools on a dedicated MCP server with its own role, so a coding grant does not reach production analytics roles.
- Sandbox scope: Confirm what the managed sandbox can reach, including network paths and which data the role can read, and ask Snowflake how the sandbox is isolated.
- Destructive tools: Default annotations for GENERIC and CORTEX_AGENT_RUN tools mark them as destructive and open-world, so assume they can change data and review each one.
- Recursion limits: Confirm loops stay within the documented maximum recursion depth of 10 invocations.
- Developer environments: Confirm whether developers use the agent against development accounts only, with no production credentials.
Before enabling, confirm with Snowflake which sandbox behaviors apply to your account and edition, and test the agent against a non-production database first.
Order of work to lock down a Snowflake MCP server
This sequence moves a Snowflake MCP deployment from an unreviewed connection to one where each exposed tool is scoped, tested and watched. Each step ends with a check that the reviewer can verify before moving on.
Confirm the official server and retire the community server
The security or platform team confirms that the connection uses the Snowflake-managed MCP server and not the community server in the Snowflake-Labs/mcp repository. That repository's README states it is deprecated and no longer maintained, and points users to the official server. Search the AI clients, configuration files and developer machines for any remaining community server entries and remove them. Done means every client config lists only the managed server URL, and the reviewer has a written list of the clients checked.
Define the role model and grant tools one by one
The Snowflake administrator creates a dedicated role for MCP use and grants access to the server, then grants each tool separately. Snowflake states that access to the server does not give access to its tools, so a user who can reach the server still sees nothing until each tool is granted. Start with the smallest set of tools the use case needs, and keep the role separate from developer roles that hold write privileges. Done means a query of the grants shows the role holds only the tool and object privileges that were approved in writing.
Set SYSTEM_EXECUTE_SQL to read-only and name the warehouse
If the SYSTEM_EXECUTE_SQL tool is granted, the administrator configures it with read_only set on, a query_timeout value chosen by the team, and a named warehouse dedicated to MCP traffic. The warehouse choice limits compute spend and makes MCP queries easy to separate in monitoring. Confirm that the underlying role has only read privileges on the schemas in scope, because the read-only setting is a control on the tool and the role remains the boundary. Done means a test write attempt through the tool is rejected and the warehouse appears on every MCP query in history.
Review UDFs, procedures and agents exposed
The team lists every GENERIC tool (custom UDFs and stored procedures) and every CORTEX_AGENT_RUN tool on the server, with the owner and the privileges each one runs with. Snowflake's default annotations for these types mark them as not read-only, destructive and open-world, and Snowflake states annotations are hints for the client, not security controls. Remove any procedure that writes, deletes or calls external services unless the use case requires it. Confirm each remaining object runs under a role with least privilege. Done means a signed inventory exists for each GENERIC and agent tool, with its effective privileges.
Decide on CODING_AGENT
The security lead decides whether the CODING_AGENT tool type is allowed. Snowflake documents that this tool type adds code_toolset_all on every run, which gives the agent a managed sandbox where it can write and run code. Treat that as a separate risk review: confirm what the sandbox can reach, which data roles it can use, and whether outbound access is needed. If the decision is no, confirm the tool is not granted to any role in use. If yes, record the approval, the owner and the data it may touch. Done means the decision is documented and the grants match it.
Verify each tool description before use
Before a tool is shared with users, the administrator reads its name, description and parameters as the AI client will see them. Snowflake warns that multiple MCP servers without verified tools and descriptions could lead to tool poisoning or tool shadowing, and recommends verifying any third-party server, including one from another Snowflake account. Check that no tool name duplicates a tool from another server connected to the same client, and that descriptions match what the underlying object does. Done means a dated record shows each tool was checked and approved.
Test that denied tools fail
Run a test from a client authenticated as the MCP role. Confirm that granted tools respond, and that attempts to call ungranted tools, write statements through the read-only SQL tool and procedures outside the approved list all fail with an authorization or policy error. Also confirm that a deliberately circular tool configuration is blocked, since Snowflake enforces a maximum recursion depth of 10 invocations and advises against circular configurations. Done means the test results are saved with the role used, the timestamp and the outcome for each case.
Enable monitoring of query history
The operations team confirms that queries from MCP sessions are captured in query history and that the warehouse and role identify them. Set alerts or a recurring review for write-type statements, failed authorization attempts and unusually long queries, and assign an owner for the review. Ask the Snowflake account team which audit views cover the MCP server and its tool calls, and confirm retention with your compliance team before relying on them. Done means a sample MCP query can be found in history, and the review owner has confirmed the alert path works.
What a security reviewer asks to see
This table lists the evidence a security reviewer should request before approving the Snowflake-managed MCP server, and where each item lives in Snowflake. Read it as a review checklist: each row names a question, the place the answer should come from, and the team that should own the answer. Gaps in any row are a reason to restrict the setup until they are closed.
| Question | Where the evidence comes from in Snowflake | Who owns it |
|---|---|---|
| Which tools does the server expose, and why? | The server definition and its tool list in the managed MCP server configuration, reviewed against the tool types Snowflake documents | Platform engineering with the data owner |
| Which roles hold grants on each tool? | Role grants per tool and per server, checked for least privilege, with no broad roles attached to the server | Snowflake security administrator |
| Is SQL execution read only, with a timeout? | The SYSTEM_EXECUTE_SQL configuration, including the read_only setting and query_timeout value | Data platform team |
| Which warehouse runs the queries, and what can it cost or reach? | The named warehouse in the SYSTEM_EXECUTE_SQL configuration and its size and access grants | Data platform team with finance for usage |
| Do the annotations match what the tool actually does? | Tool annotations for GENERIC and CORTEX_AGENT_RUN tools, compared with the UDF or procedure code and its role rights | Application security with the owner of the underlying UDF or procedure |
| Has the community server been approved or blocked? | A written decision covering the deprecated Snowflake-Labs/mcp server, the client configurations that reference it, and any third-party MCP server | Security architecture and IT governance |
| What did the agent actually run? | Query history for the service role and user that the MCP client authenticates as, reviewed for unexpected statements and volume | Security operations with the data platform team |
Questions buyers ask before approving Snowflake MCP
Can we allow only read queries through a Snowflake MCP server?
Yes, for the SQL execution tool, Snowflake's managed server accepts a read_only setting in the SYSTEM_EXECUTE_SQL configuration, so it can be limited to reads. That setting only covers that one tool. Custom UDFs, stored procedures and agent tools are configured separately, and each one can still do what its underlying role allows. Confirm the setting with Snowflake's current documentation, then check which roles the MCP client uses, because a role with write privileges elsewhere in the account can still reach writes through another tool. Review every tool in the server's list, not only the SQL tool.
Does the tool annotation stop writes from running?
No. Snowflake says tool annotations are client-facing hints, not security controls. For GENERIC and CORTEX_AGENT_RUN tools the default annotations are readOnlyHint false and destructiveHint true, but a client may ignore them, and the server does not use them to block a call. The real control is RBAC and least privilege on the underlying UDF, procedure or agent. Treat annotations as a signal for the client's own approval prompts and enforce write limits in Snowflake grants, so a tool cannot modify data its role is not permitted to change.
What happens when a tool call is denied?
A denied tool call fails because the calling identity lacks permission on that specific tool, so the agent gets an error and no result. Snowflake states that access to the MCP server does not give access to its tools, so a user can connect to the server and still be refused each tool they were not granted. Test this before rollout: sign in with a test role, call each tool the client can see, and confirm which calls return data and which fail. Record the exact error text your clients show, since agents may retry or route around a failed call in ways you should expect.
Is the community Snowflake MCP server safe to keep running?
The community server should not stay in production. The Snowflake-Labs/mcp repository is Apache-2.0 licensed, but its README says it is deprecated, no longer maintained, and points users to the official Snowflake MCP server. Unmaintained code does not get security fixes, so each dependency and tool in it becomes your own maintenance burden. Plan a migration to the Snowflake-managed server, remove the community deployment and its credentials, and check whether any client still points at it. Snowflake also advises verifying any third-party MCP server, including one from another Snowflake account, before connecting it.
What effort does a Snowflake MCP lockdown take, and what drives it?
Effort depends mostly on how many tools are exposed, how many roles and users call them, and how much the existing grants already reflect least privilege. A small server with one read-only SQL tool and a single narrow role is a short review. A server with custom procedures, coding agent access and many teams needs an inventory of each tool, a role design, grant changes, and tests for each denied path. Ask any provider for a written breakdown of these items, the number of tools and roles in scope, and whether retesting is included. No duration is given in this guide because it depends on the account.
Can our own Snowflake team set up these controls without outside help?
Often yes, if the team already administers Snowflake roles, grants and warehouses and can review the managed server's tool configuration. The work is largely identity and privilege design, which in-house Snowflake administrators usually handle. Outside help adds value where the team lacks time or independent review, or where the organization needs a tested evidence trail for security approval. DeployOpen's AI agent rollout security review covers testing tool and file permissions, credential handling and admin settings, then delivers a findings report with fixes and a retest. Engagements are fixed-scope, with scope agreed in writing before work starts.
What does a consultant quote for Snowflake MCP lockdown depend on?
A quote follows from the written scope, so ask for it to state the tools in scope, the Snowflake roles and warehouses involved, whether the community server is being decommissioned, and whether External OAuth with an identity provider is part of the work. Also ask whether testing covers prompt injection and tool poisoning, what the deliverables are, and whether a retest is included. DeployOpen does not publish a price list, and its quotes come from the agreed scope. Ongoing reviews after new tools are added are usually priced as a separate retainer, which is worth confirming up front.
How DeployOpen tests and locks down a Snowflake MCP rollout
DeployOpen approaches Snowflake MCP security as a written, fixed-scope review of what each tool can read and change, which roles and tool grants sit behind it, and how the setup is locked down before staff rely on it. The work is delivered as findings, fixes, documentation and a retest, inside the client's own Snowflake account and identity setup.
How we scope
- Engagements are fixed-scope, with the tools, roles, warehouses and clients in the review agreed in writing before work starts
- Scope lists each enabled tool type, including SYSTEM_EXECUTE_SQL, custom UDF and procedure tools and any coding agent tool
- We confirm which identity path applies, Snowflake OAuth or External OAuth, and who administers MCP servers
- Ongoing support, upgrades and continuous testing are available as a retainer after the initial review
How we build
- We map each MCP tool to the role and grants that control the underlying data, since server access alone does not grant tool access
- We test SQL execution for read-only settings, query timeouts, named warehouse limits and generated statements that try to write
- We review custom UDFs and stored procedures for annotations, which are hints only, and check that RBAC limits what they can do
- We check tool descriptions and server configuration for poisoning or shadowing risk when several MCP servers are connected
How we hand over
- Findings report with severity, evidence from test runs and specific fixes for each permission, tool or configuration gap
- Documented least-privilege role model, tool grant list and the configuration settings that were changed and why
- Retest of every fix after the client applies it, so the final state is verified rather than assumed
- Evidence package the client's security, identity and compliance reviewers can use in their own assessment
How we support
- Review of new tool types, role changes and server additions before they reach production users
- Periodic retesting of permissions and risky tool paths as the Snowflake account and connected clients change
- Support for questions from security and compliance reviewers about the controls DeployOpen tested and handed over
- Clear separation of responsibilities: the client owns approvals and final policy, and DeployOpen supplies testing and documentation

