Snowflake MCP server: what its SQL permissions stop, what gets past them, and how to make your agent ask
The tools of Snowflake's MCP server (snowflake-labs-mcp 1.4.2), checked by running it on this machine against a local stand-in for Snowflake, never a real account: what its SQL statement permissions stop, how allowing Command let EXECUTE IMMEDIATE drop a table with Drop set to false, how a semantic view query read another table, why HTTP mode answers anyone on the network, and the Claude Code settings that make the rest ask.
Checked on by running snowflake-labs-mcp 1.4.2 (PyPI, run on Python 3.12 with snowflake-connector-python 3.18.1 and sqlglot 29.0.1) from Snowflake-Labs/mcp; the tool list is its tools/list answer with object_manager, query_manager and semantic_manager on and one Cortex Search, Analyst and Agent service named in the service config file, which turns every tool on. Each tier is the tool risk checker’s reading, with our reason wherever we changed it. Written by the people who make VariantGate.
The short answer
Its SQL statement permissions look only at the outer statement's type, so allowing Command lets EXECUTE IMMEDIATE run a drop, CREATE OR REPLACE empties a table under Create, and the semantic view and Cortex tools skip them. Allow only Select, connect as a role granted only SELECT, let the list and describe tools run unasked, and make every query ask.
- Can run on their own
- 8
- Should ask a person
- 8
Lethal trifecta: This server can read private data. Beside a server that can take in content other people wrote and send data out, a setup holds all three legs of the lethal trifecta. Check your whole setup
Which Snowflake server this is
This page is about Snowflake’s own server, Snowflake-Labs/mcp, published on PyPI as snowflake-labs-mcp. We ran 1.4.2, the latest release on 27 November 2026, on Python 3.12 with snowflake-connector-python 3.18.1 and sqlglot 29.0.1. It never reached a real account: the connection pointed at a stand-in on this machine that answers the connector’s sign-in and query requests and records every statement it receives, so we saw exactly what each tool would send to Snowflake, but not what Snowflake would then do.
The server offers no tools of its own accord. A YAML service config file turns them on: five object tools, one SQL tool, seven semantic view tools and one tool each for Cortex Agent, Search and Analyst, 16 in all. None carries a read-only or destructive hint. With no connection flags it signed in with the [default] entry of ~/.snowflake/connections.toml, password included.
What the statement permissions stop
The same file has sql_statement_permissions, a list of statement types marked true or false. The server parses each statement with sqlglot and checks only the type of the outermost statement. An empty list refuses everything, even SELECT. With only Select: True, these were refused before anything was sent:
DROP TABLE, and aDELETEbehind a/* weekly report */comment.SELECT 1; DROP TABLE shop.orders, which sqlglot reads as oneBlock.EXECUTE IMMEDIATE,CREATE TABLE … AS SELECT,COPY INTOa stage andUSE ROLE ACCOUNTADMIN.- Even
SHOW TABLESandDESCRIBE TABLE, which are types of their own.
A SELECT can still act. SELECT SYSTEM$CANCEL_ALL_QUERIES(42) and SELECT SYSTEM$ABORT_SESSION(42) passed as Select and were sent; in Snowflake those functions cancel a session’s queries and end the session. A read of INFORMATION_SCHEMA.QUERY_HISTORY() was sent too, which shows other queries’ text to a role allowed to see them.
Command is a wide door
The README’s example file sets nearly every type to true, and lists CALL and GRANT under Command, the type sqlglot gives any statement it cannot parse. With Command allowed and Drop set to false, a drop went through by wrapping it:
sql_statement_permissions:
- Command: True # as in the README's example
- Drop: False
- Select: True
EXECUTE IMMEDIATE 'DROP TABLE shop.orders' -- sent
GRANT ROLE ACCOUNTADMIN TO USER mallory -- sent
PUT file:///etc/hosts @~/staged -- sent
DROP TABLE shop.orders -- refusedA scripting block, EXECUTE IMMEDIATE $$BEGIN DELETE FROM shop.orders; END$$, and a CALL of a procedure were sent the same way. For a PUT, the Python connector uploads the named file from the machine the server runs on.
Create is wider than it sounds. With Create allowed and Drop refused, CREATE OR REPLACE TABLE shop.orders was sent, and create_object with mode: replace posted createMode=orReplace for the same existing table: both replace the table and its rows. create_object also created a user with ACCOUNTADMIN as its default role, the password in the request.
Tools the permissions skip
The check runs only for run_snowflake_query and for tools whose name starts with create or drop. Everything else goes straight through:
list_objectsranSHOW userswith onlySelectallowed.query_semantic_viewpastes itswhere_clauseandorder_byinto the SQL as written. A where clause that reads another table was sent as it stood:
SELECT * FROM SEMANTIC_VIEW (identifier(?) DIMENSIONS identifier(?))
WHERE 1=0 UNION ALL SELECT api_key FROM billing.partner_keys- In the server’s code, the SQL that Cortex Analyst writes is run as soon as it comes back, with no statement check.
- The Cortex tools take the database, schema and service name on every call. The services in the YAML only shape the tool description.
HTTP mode answers the whole network
With --transport streamable-http, the server listens on 0.0.0.0 unless --server-host says otherwise, and asks for no sign-in. Ours answered an initialize sent to this machine’s network address with a foreign Origin, then ran SELECT current_user() as the configured user. Anyone on the same network can do that. Pass --server-host 127.0.0.1, or keep to stdio.
What it sends
On start it ran SELECT 'MCP Server Snowflake' and SELECT SYSTEM$CLIENT_VERSION_INFO(), and it sets a QUERY_TAG on the session that names the MCP server (it said version 1.3 while running 1.4.2). Every request went to the host in the connection. We ran over plain HTTP, so we did not see the connector’s certificate checks.
A safer setup
Turn on only the SQL tool, allow only the types that read, and never Command, Unknown or All:
other_services:
query_manager: True
sql_statement_permissions:
- Select: True
- Describe: True # optional: DESCRIBE is its own type
- Show: True # optional: SHOW is its own type in sqlglot 29The real limit is the role, since SYSTEM$ functions and the semantic view tool get past any list. Snowflake’s access model points to a role that can only read; we had no account to test it:
CREATE ROLE mcp_readonly;
GRANT USAGE ON WAREHOUSE reporting_wh TO ROLE mcp_readonly;
GRANT USAGE ON DATABASE shop TO ROLE mcp_readonly;
GRANT USAGE ON SCHEMA shop.public TO ROLE mcp_readonly;
GRANT SELECT ON ALL TABLES IN SCHEMA shop.public TO ROLE mcp_readonly;Put that role and the user in a named entry of connections.toml, here mcp_readonly, with key-pair sign-in rather than a password, and add the server with it:
claude mcp add snowflake -- uvx snowflake-labs-mcp==1.4.2 --service-config-file /path/to/tools_config.yaml --connection-name mcp_readonlyIts 16 tools
Hard to undo3 toolsAsk a person every time. Consider two people, or deny it if the agent never needs it.
create_objectGeneric tool to create a Snowflake object including database, schema, table, view, warehouse, compute_pool, role, stage, user, image_repository.
Server gives no read-only or destructive hint · toolset object_manager
Our call: Allowed by the Create permission alone. With mode replace it sent createMode=orReplace for an existing table, which replaces the table and its rows, while Drop was set to false. It also created a user with ACCOUNTADMIN as the default role.
drop_objectGeneric tool to drop a Snowflake object including database, schema, table, view, warehouse, compute_pool, role, stage, user, image_repository.
Server gives no read-only or destructive hint · toolset object_manager
Our call: Drops any of the ten object kinds, a database or a user included. The Drop permission stopped it when set to false.
run_snowflake_queryRun a SQL query in Snowflake.
Server gives no read-only or destructive hint · toolset query_manager
Our call: Runs any SQL the statement permissions let past. With Command allowed, as the README's example does, EXECUTE IMMEDIATE 'DROP TABLE …', GRANT ROLE ACCOUNTADMIN and PUT of a local file all went through with Drop set to false.
Not sure4 toolsAsk a person until you have checked what it does.
query_semantic_viewWrites and runs a statement to query a semantic view using DIMENSIONS, METRICS, and/or FACTS.
Server gives no read-only or destructive hint · toolset semantic_manager
Our call: Pastes where_clause and order_by into the SQL as written: a where_clause of 1=0 UNION ALL SELECT api_key FROM billing.partner_keys was sent as it stood. The statement permissions are not applied to it: they cover only run_snowflake_query and the create and drop tools.
cortex_agentCortex Agent tool that combines structured and unstructured data querying and may include additional custom tools in a configured Cortex Agent object in Snowflake.
Server gives no read-only or destructive hint · toolset agent_services
Our call: The YAML names the agents for the description, but each call names its own database, schema and agent, and a Cortex Agent can carry custom tools of its own that the server never sees. The statement permissions are not applied to it: they cover only run_snowflake_query and the create and drop tools.
cortex_searchSearch tool that performs semantic search against a configured Cortex Search service using Snowflake's REST API.
Server gives no read-only or destructive hint · toolset search_services
Our call: Each call names its own database, schema and search service, not only the ones in the YAML, and returns whatever that service indexed.
cortex_analystAnalyst tool that performs natural language to SQL conversion against a configured Cortex Analyst service using Snowflake's REST API.
Server gives no read-only or destructive hint · toolset analyst_services
Our call: Turns a question into SQL inside Snowflake, and in the server's code the SQL that comes back is run right away. The statement permissions are not applied to it: they cover only run_snowflake_query and the create and drop tools.
Changes data1 toolAsk a person. Once it is routine, a standing rule can answer.
create_or_alter_objectGeneric tool to create_or_alter a Snowflake object including database, schema, table, view, warehouse, compute_pool, role, stage, user, image_repository.
Server gives no read-only or destructive hint · toolset object_manager
Our call: Creates or changes a database, schema, table, view, warehouse, compute pool, role, stage, user or image repository, under the Create permission.
Only looks8 toolsLet it run. It only looks.
describe_objectGeneric tool to describe a Snowflake object including database, schema, table, view, warehouse, compute_pool, role, stage, user, image_repository.
Server gives no read-only or destructive hint · toolset object_manager
Our call: Sent one REST GET for the named object and nothing else.
list_objectsGeneric tool to list a Snowflake object including database, schema, table, view, warehouse, compute_pool, role, stage, user, image_repository.
Server gives no read-only or destructive hint · toolset object_manager
Our call: Runs SHOW for one object kind and returns the list. It ran SHOW users with only Select allowed. The statement permissions are not applied to it: they cover only run_snowflake_query and the create and drop tools.
list_semantic_viewsList all semantic views in the account, database, or schema.
Server gives no read-only or destructive hint · toolset semantic_manager
Our call: Sent only a fixed SHOW, DESCRIBE or GET_DDL statement, with names and LIKE as bind variables. In starts_with it strips quotes, so our attempts to break out of it stayed inside the string.
describe_semantic_viewDescribe a semantic view.
Server gives no read-only or destructive hint · toolset semantic_manager
Our call: Sent only a fixed SHOW, DESCRIBE or GET_DDL statement, with names and LIKE as bind variables. In starts_with it strips quotes, so our attempts to break out of it stayed inside the string.
show_semantic_dimensionsShow all semantic dimensions in the account, database, or schema.
Server gives no read-only or destructive hint · toolset semantic_manager
Our call: Sent only a fixed SHOW, DESCRIBE or GET_DDL statement, with names and LIKE as bind variables. In starts_with it strips quotes, so our attempts to break out of it stayed inside the string.
show_semantic_metricsShow all semantic metrics in the account, database, or schema.
Server gives no read-only or destructive hint · toolset semantic_manager
Our call: Sent only a fixed SHOW, DESCRIBE or GET_DDL statement, with names and LIKE as bind variables. In starts_with it strips quotes, so our attempts to break out of it stayed inside the string.
get_semantic_view_ddlGet the DDL for a semantic view.
Server gives no read-only or destructive hint · toolset semantic_manager
Our call: Sent only a fixed SHOW, DESCRIBE or GET_DDL statement, with names and LIKE as bind variables. In starts_with it strips quotes, so our attempts to break out of it stayed inside the string.
write_semantic_view_query_toolWrites a query statement to query a semantic view using DIMENSIONS, METRICS, and/or FACTS.
Server gives no read-only or destructive hint · toolset semantic_manager
Our call: Only builds the query text and returns it; nothing was sent to Snowflake.
Let the reads run in Claude Code
Claude Code asks before every MCP tool it has no rule for. Added as snowflake, this server’s tools are named mcp__snowflake__<tool>. These allow rules, in .claude/settings.json or ~/.claude/settings.json, let the tools that only look run without a prompt. Everything else keeps asking, including any tool a later version of the server adds.
{
"permissions": {
"allow": [
"mcp__snowflake__describe_object",
"mcp__snowflake__list_objects",
"mcp__snowflake__list_semantic_views",
"mcp__snowflake__describe_semantic_view",
"mcp__snowflake__show_semantic_dimensions",
"mcp__snowflake__show_semantic_metrics",
"mcp__snowflake__get_semantic_view_ddl",
"mcp__snowflake__write_semantic_view_query_tool"
]
}
}The command that adds the server:
claude mcp add snowflake -- uvx snowflake-labs-mcp==1.4.2 --service-config-file /path/to/tools_config.yaml --connection-name mcp_readonlySend the rest to a person, not the terminal
A prompt in the terminal only works while someone is watching it. With this hook, every other tool of the server becomes a request in your VariantGate inbox, on your phone or in Slack, and Claude Code waits for the answer. The matcher names the look-only tools, so a tool added later is sent too. Put the key in VARIANTGATE_KEY, or run the one-command setup for Claude Code first.
{
"hooks": {
"PreToolUse": [
{
"matcher": "mcp__snowflake__(?!(describe_object|list_objects|list_semantic_views|describe_semantic_view|show_semantic_dimensions|show_semantic_metrics|get_semantic_view_ddl|write_semantic_view_query_tool)$).*",
"hooks": [
{ "type": "command", "command": "variantgate hook claude-code", "timeout": 180 }
]
}
]
}
}Disagree with a tier, or run the server with other flags? Open these tools in the tool risk checker, change what you like, and copy the settings for your own setup. It runs in your browser and starts from its own reading, so a tool we marked as only looking by hand asks there until you change it.
Set it up in Cursor, VS Code, Codex, Gemini CLI and other clients
The same server as the claude mcp add line above, written the way each client reads it, for Claude Desktop, Cursor, VS Code, Windsurf, Codex, Gemini CLI, Cline and Zed. Cursor and VS Code add it in one click: the app shows the settings and asks before it saves them. Set up like this, every tool runs as soon as the model calls it; the next section puts a person in front of the ones that change things. Running it with other flags? Convert your own settings.
claude_desktop_config.json{
"mcpServers": {
"snowflake": {
"command": "uvx",
"args": [
"snowflake-labs-mcp==1.4.2",
"--service-config-file",
"/path/to/tools_config.yaml",
"--connection-name",
"mcp_readonly"
]
}
}
}~/.cursor/mcp.json or .cursor/mcp.json{
"mcpServers": {
"snowflake": {
"command": "uvx",
"args": [
"snowflake-labs-mcp==1.4.2",
"--service-config-file",
"/path/to/tools_config.yaml",
"--connection-name",
"mcp_readonly"
]
}
}
}.vscode/mcp.json{
"servers": {
"snowflake": {
"type": "stdio",
"command": "uvx",
"args": [
"snowflake-labs-mcp==1.4.2",
"--service-config-file",
"/path/to/tools_config.yaml",
"--connection-name",
"mcp_readonly"
]
}
}
}~/.codeium/windsurf/mcp_config.json{
"mcpServers": {
"snowflake": {
"command": "uvx",
"args": [
"snowflake-labs-mcp==1.4.2",
"--service-config-file",
"/path/to/tools_config.yaml",
"--connection-name",
"mcp_readonly"
]
}
}
}~/.codex/config.toml[mcp_servers.snowflake]
command = "uvx"
args = ["snowflake-labs-mcp==1.4.2", "--service-config-file", "/path/to/tools_config.yaml", "--connection-name", "mcp_readonly"]~/.gemini/settings.json{
"mcpServers": {
"snowflake": {
"command": "uvx",
"args": [
"snowflake-labs-mcp==1.4.2",
"--service-config-file",
"/path/to/tools_config.yaml",
"--connection-name",
"mcp_readonly"
]
}
}
}cline_mcp_settings.json (Configure MCP Servers){
"mcpServers": {
"snowflake": {
"command": "uvx",
"args": [
"snowflake-labs-mcp==1.4.2",
"--service-config-file",
"/path/to/tools_config.yaml",
"--connection-name",
"mcp_readonly"
]
}
}
}~/.config/zed/settings.json{
"context_servers": {
"snowflake": {
"command": "uvx",
"args": [
"snowflake-labs-mcp==1.4.2",
"--service-config-file",
"/path/to/tools_config.yaml",
"--connection-name",
"mcp_readonly"
]
}
}
}- Add context_servers next to your other settings in the same file.
Any MCP client: put the proxy in front
Claude Desktop, Cursor and most other MCP clients have no hook to send a call to a person. The VariantGate MCP proxy does it in the server’s place: it starts the server, lets the look-only tools above through, and holds every other call until someone approves it in the inbox. Run npx -y https://variantgate.com/sdk/variantgate-agent-0.19.0.tgz login once to save a key, then use the settings for your client:
claude_desktop_config.json{
"mcpServers": {
"snowflake": {
"command": "npx",
"args": [
"-y",
"https://variantgate.com/sdk/variantgate-agent-0.19.0.tgz",
"mcp-proxy",
"--name",
"snowflake",
"--look-only",
"describe_object,list_objects,list_semantic_views,describe_semantic_view,show_semantic_dimensions,show_semantic_metrics,get_semantic_view_ddl,write_semantic_view_query_tool",
"--",
"uvx",
"snowflake-labs-mcp==1.4.2",
"--service-config-file",
"/path/to/tools_config.yaml",
"--connection-name",
"mcp_readonly"
]
}
}
}~/.cursor/mcp.json or .cursor/mcp.json{
"mcpServers": {
"snowflake": {
"command": "npx",
"args": [
"-y",
"https://variantgate.com/sdk/variantgate-agent-0.19.0.tgz",
"mcp-proxy",
"--name",
"snowflake",
"--look-only",
"describe_object,list_objects,list_semantic_views,describe_semantic_view,show_semantic_dimensions,show_semantic_metrics,get_semantic_view_ddl,write_semantic_view_query_tool",
"--",
"uvx",
"snowflake-labs-mcp==1.4.2",
"--service-config-file",
"/path/to/tools_config.yaml",
"--connection-name",
"mcp_readonly"
]
}
}
}.vscode/mcp.json{
"servers": {
"snowflake": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"https://variantgate.com/sdk/variantgate-agent-0.19.0.tgz",
"mcp-proxy",
"--name",
"snowflake",
"--look-only",
"describe_object,list_objects,list_semantic_views,describe_semantic_view,show_semantic_dimensions,show_semantic_metrics,get_semantic_view_ddl,write_semantic_view_query_tool",
"--",
"uvx",
"snowflake-labs-mcp==1.4.2",
"--service-config-file",
"/path/to/tools_config.yaml",
"--connection-name",
"mcp_readonly"
]
}
}
}~/.codeium/windsurf/mcp_config.json{
"mcpServers": {
"snowflake": {
"command": "npx",
"args": [
"-y",
"https://variantgate.com/sdk/variantgate-agent-0.19.0.tgz",
"mcp-proxy",
"--name",
"snowflake",
"--look-only",
"describe_object,list_objects,list_semantic_views,describe_semantic_view,show_semantic_dimensions,show_semantic_metrics,get_semantic_view_ddl,write_semantic_view_query_tool",
"--",
"uvx",
"snowflake-labs-mcp==1.4.2",
"--service-config-file",
"/path/to/tools_config.yaml",
"--connection-name",
"mcp_readonly"
]
}
}
}~/.codex/config.toml[mcp_servers.snowflake]
command = "npx"
args = ["-y", "https://variantgate.com/sdk/variantgate-agent-0.19.0.tgz", "mcp-proxy", "--name", "snowflake", "--look-only", "describe_object,list_objects,list_semantic_views,describe_semantic_view,show_semantic_dimensions,show_semantic_metrics,get_semantic_view_ddl,write_semantic_view_query_tool", "--", "uvx", "snowflake-labs-mcp==1.4.2", "--service-config-file", "/path/to/tools_config.yaml", "--connection-name", "mcp_readonly"]~/.gemini/settings.json{
"mcpServers": {
"snowflake": {
"command": "npx",
"args": [
"-y",
"https://variantgate.com/sdk/variantgate-agent-0.19.0.tgz",
"mcp-proxy",
"--name",
"snowflake",
"--look-only",
"describe_object,list_objects,list_semantic_views,describe_semantic_view,show_semantic_dimensions,show_semantic_metrics,get_semantic_view_ddl,write_semantic_view_query_tool",
"--",
"uvx",
"snowflake-labs-mcp==1.4.2",
"--service-config-file",
"/path/to/tools_config.yaml",
"--connection-name",
"mcp_readonly"
]
}
}
}cline_mcp_settings.json (Configure MCP Servers){
"mcpServers": {
"snowflake": {
"command": "npx",
"args": [
"-y",
"https://variantgate.com/sdk/variantgate-agent-0.19.0.tgz",
"mcp-proxy",
"--name",
"snowflake",
"--look-only",
"describe_object,list_objects,list_semantic_views,describe_semantic_view,show_semantic_dimensions,show_semantic_metrics,get_semantic_view_ddl,write_semantic_view_query_tool",
"--",
"uvx",
"snowflake-labs-mcp==1.4.2",
"--service-config-file",
"/path/to/tools_config.yaml",
"--connection-name",
"mcp_readonly"
]
}
}
}~/.config/zed/settings.json{
"context_servers": {
"snowflake": {
"command": "npx",
"args": [
"-y",
"https://variantgate.com/sdk/variantgate-agent-0.19.0.tgz",
"mcp-proxy",
"--name",
"snowflake",
"--look-only",
"describe_object,list_objects,list_semantic_views,describe_semantic_view,show_semantic_dimensions,show_semantic_metrics,get_semantic_view_ddl,write_semantic_view_query_tool",
"--",
"uvx",
"snowflake-labs-mcp==1.4.2",
"--service-config-file",
"/path/to/tools_config.yaml",
"--connection-name",
"mcp_readonly"
]
}
}
}- Add context_servers next to your other settings in the same file.
Already have it in Claude Desktop? One command rewrites the file for you, with these look-only tools filled in, and keeps the old one (setup vscode does the same for VS Code; how it works):
npx -y https://variantgate.com/sdk/variantgate-agent-0.19.0.tgz setup claude-desktopThe same in Claude Code, instead of the hook. The proxy now asks about every call that matters, so an allow rule for the whole server, mcp__snowflake, keeps Claude Code from asking a second time in the terminal:
claude mcp add snowflake -- npx -y https://variantgate.com/sdk/variantgate-agent-0.19.0.tgz mcp-proxy --name snowflake --look-only describe_object,list_objects,list_semantic_views,describe_semantic_view,show_semantic_dimensions,show_semantic_metrics,get_semantic_view_ddl,write_semantic_view_query_tool -- uvx snowflake-labs-mcp==1.4.2 --service-config-file /path/to/tools_config.yaml --connection-name mcp_readonlyWhen the agent should write
Keep run_snowflake_query on ask even with only Select allowed, so a person sees each statement. If an agent must write, give it a second connection with a role granted only INSERT on the tables it fills, keep Command and Create off in that file, and keep it on ask too. A wrapped drop reads as EXECUTE IMMEDIATE and a wiped table as CREATE OR REPLACE, so the person answering should read the whole statement, not look for DROP.
See it before you decide.
The playground runs the whole approval loop in your browser, no account needed. When it fits, the free plan covers 100 requests a month.