Skip to content
← All guides

Is the Snowflake MCP server safe? What it can reach

The Snowflake MCP server comes in two forms. See what each can query, change and drop, how it signs in, and how to limit it in Claude Code and Codex.

5 min read

The Snowflake MCP server now means Snowflake’s own managed server, which you create inside your account with CREATE MCP SERVER. The older open-source Snowflake-Labs server is deprecated and its repository is archived and read-only. What an agent can do depends on the role it signs in with and on which tool types you put on the server. A SYSTEM_EXECUTE_SQL tool lets it run SQL as that role.

Two servers, one name

Snowflake-managed MCP serverSnowflake-Labs MCP server
MaintainerSnowflakeSnowflake-Labs, archived
RunsHosted in your Snowflake accountLocal, started with uvx snowflake-labs-mcp
Endpointhttps://<account_url>/api/v2/databases/{database}/schemas/{schema}/mcp-servers/{name}stdio by default, optional streamable-http
StatusSupported and in developmentDeprecated, points users to the official server

Use the managed server for new work. The Labs repo remains useful only if you are reading an old setup.

How it signs in

The managed server defaults to Snowflake OAuth, through a security integration you create. External OAuth through an identity provider such as Okta or Microsoft Entra ID is optional. A programmatic access token (PAT) sent as a Bearer header is available for clients that can’t use OAuth. Snowflake’s docs say dynamic client registration isn’t supported.

The Labs server connected through the Snowflake Python Connector. It supported username and password, key pair, OAuth, SSO and MFA, with credentials passed as flags or environment variables.

What the tools can do

You decide the tools when you write the server’s YAML specification. The documented tool types are:

  • CORTEX_AGENT_RUN and CODING_AGENT
  • CORTEX_SEARCH_SERVICE_QUERY
  • CORTEX_ANALYST_MESSAGE, for semantic views only
  • SYSTEM_EXECUTE_SQL
  • GENERIC, for UDFs and stored procedures

A server holds up to 50 tools. Snowflake’s docs say that “Access to the MCP Server does not give access to the tools.” USAGE on the server lets a role connect and call. Each underlying object needs its own grant, such as SELECT on a semantic view. SQL execution also needs the SNOWFLAKE.CORTEX_USER or SNOWFLAKE.CORTEX_AGENT_USER database role and warehouse usage.

Snowflake advises against putting SQL execution on the same server as a governed agent, because it can bypass the agent’s controls. Tool annotations are client hints, not security controls.

The archived Labs server grouped its tools as object_manager (create, drop, alter and list databases, schemas, tables, warehouses, roles and users), query_manager and semantic_manager. A sql_statement_permissions block in tools_config.yaml set each statement type, such as Drop or Delete, to True or False.

Limit it at Snowflake

Give the agent a role built for it. Grant SELECT on the specific views it needs and nothing on write paths. The managed server has no ALTER command, so changing the server means CREATE OR REPLACE and re-applying grants. Use a least-privileged role for any PAT and keep tokens out of config files you commit.

Risks that remain

  • Query results leave Snowflake and go to the MCP client and its model provider.
  • Table contents, comments and column values can carry instructions an agent may follow.
  • A role with write or DROP privileges lets a mistaken or injected command change data at machine speed.

Limit it in Claude Code and Codex

Claude Code names tools mcp__<server>__<tool>. Rules are checked deny first, then ask, then allow. Set them in .claude/settings.json or ~/.claude/settings.json.

{
  "permissions": {
    "ask": ["mcp__snowflake__*"]
  }
}

To block one tool, deny its full name. Check the exact tool names with /mcp after connecting, since you chose them in the specification.

In Codex, add the server to ~/.codex/config.toml. The Codex docs list enabled_tools, disabled_tools and default_tools_approval_mode (auto, prompt, writes or approve).

[mcp_servers.snowflake]
url = "https://<account_url>/api/v2/databases/DB/schemas/SCHEMA/mcp-servers/NAME"
bearer_token_env_var = "SNOWFLAKE_PAT"
default_tools_approval_mode = "prompt"

Checklist

  1. Use the managed server and a dedicated, least-privileged role.
  2. Leave SYSTEM_EXECUTE_SQL off unless the task needs raw SQL.
  3. Prefer OAuth over a PAT, and keep any PAT in an environment variable.
  4. Deny or ask on write-capable tools in your agent’s settings.
  5. Review the query history in Snowflake after a session.

Checked against the vendor documentation on November 25, 2026. Snowflake managed MCP server · Snowflake-Labs repo · Claude Code permissions · Claude Code MCP · Codex MCP

Where Excellent fits

Excellent’s free scan reads supported logs on the Mac and reports findings for review. It reads the session logs of Claude Code, Codex, Grok Build, GitHub Copilot CLI, Gemini CLI and Qwen Code. It does not inspect MCP servers themselves. For a local report without installing an app, run the free scan. See a sample report. If a key shows up in a log, read Keeping keys and your email out of agent logs.

Excellent Pro adds checks before supported actions. Claude Code can display an ask prompt. With Codex, an Excellent “ask” refuses the action and tells the agent to ask you. Agent coverage · pricing. Pro is US-only for now.

Related guides

View all