New: one score for how consistent your answers are. See more

How to use Snowflake's MCP server with Claude or ChatGPT

Snowflake's managed MCP server, the deprecated Snowflake-Labs repo and community servers: what each exposes, how to connect it, and what it costs.

December 1, 2026•9 min read•Vivek Sah
Jump to a section

"Snowflake MCP" now means a server Snowflake runs for you inside your account. You create it with one SQL statement, choose which tools it exposes, and Claude or ChatGPT sign in to it with OAuth. (Source: Snowflake docs: Snowflake-managed MCP server, https://docs.snowflake.com/en/user-guide/snowflake-cortex/cortex-agents-mcp, checked on 2026-12-01) The open-source Snowflake-Labs server most older tutorials point to is deprecated, and the managed server's most useful tools only work once your data team has built the objects behind them.

Which Snowflake MCP server people mean

The managed server went generally available on November 4, 2025. (Source: Snowflake release notes: Snowflake-managed MCP server (General availability), https://docs.snowflake.com/release-notes/2025/other/2025-11-04-cortex-agents-mcp, checked on 2026-12-01) Before that, the common route was Snowflake-Labs/mcp, an open-source server you ran yourself with uvx. That repository is now archived, and its README says "This project is deprecated and no longer maintained", pointing to the managed server instead. (Source: GitHub: Snowflake-Labs/mcp, https://github.com/Snowflake-Labs/mcp, checked on 2026-12-01) Community servers still exist, the most used being isaacwasserman/mcp-snowflake-server. (Source: GitHub: isaacwasserman/mcp-snowflake-server, https://github.com/isaacwasserman/mcp-snowflake-server, checked on 2026-12-01)

Snowflake-managed MCP serverSnowflake-Labs/mcpisaacwasserman/mcp-snowflake-server
StatusGA since Nov 4, 2025, supported by SnowflakeDeprecated and archivedCommunity project
Runs whereInside your Snowflake account, as a schema objectOn your laptop or your own containerOn your laptop
Sign-inOAuth per person, or a programmatic access tokenSnowflake connector credentials in a local configPassword, key file or browser SSO from a local .env
ToolsCortex Agent, Cortex Analyst, Cortex Search, read-only SQL, your UDFs and proceduresCortex tools, SQL, object management, semantic view queriesSQL reads, table listing, optional writes
Best forTeams on Snowflake that want governed, per-person accessExisting installs that need migratingOne person exploring quickly

There is also a reverse direction. Snowflake's MCP connectors let a Cortex Agent or CoWork call out to other MCP servers like Jira or Salesforce. (Source: Snowflake docs: MCP Connectors, https://docs.snowflake.com/en/user-guide/snowflake-cortex/cortex-agents-mcp-connectors, checked on 2026-12-01) That is for Snowflake's own agent using other tools. If you want Claude or ChatGPT reading Snowflake, you want the managed server.

What the managed server exposes

You decide the tools in a YAML specification. Snowflake supports six tool types, up to 50 tools per server, and each needs its own grant, because "access to the MCP Server does not give access to the tools". (Source: Snowflake docs: Snowflake-managed MCP server, https://docs.snowflake.com/en/user-guide/snowflake-cortex/cortex-agents-mcp, checked on 2026-12-01)

Tool typeWhat the AI can do with itWhat has to exist first
SYSTEM_EXECUTE_SQLWrite and run its own SQL, read-only by defaultA warehouse, and the CORTEX_USER or CORTEX_AGENT_USER database role
CORTEX_ANALYST_MESSAGEAsk a question in plain English and get SQL generated from a semantic viewA semantic view (semantic model YAML files are not supported here)
CORTEX_SEARCH_SERVICE_QUERYSearch documents and text columnsA Cortex Search service
CORTEX_AGENT_RUNHand the whole question to a Cortex AgentA configured agent and the tools it uses
GENERICCall a UDF or stored procedureThe function or procedure
CODING_AGENTRun a Cortex coding agentNothing stored; config is optional

Only the SQL tool works on day one. Every Cortex tool sits on something your data team builds and maintains, like a semantic view per subject area or an agent with its own instructions. Snowflake's docs recommend exposing an agent as the main tool for governed business data, which means building all of it.

What Claude does with only the SQL tool

We ran this end to end on a sample ecommerce account and wrote it up in Claude with Snowflake semantic views, step by step. With the SQL tool, Claude listed the tables, read the columns and wrote its own net revenue query. A semantic view with the agreed definition sat in the same schema, and Claude never looked for it. It used the view only when asked, or when a Claude Project instruction told it to run SHOW SEMANTIC VIEWS first.

Adding a CORTEX_ANALYST_MESSAGE tool gives Claude a direct route to that one view. The answers then stop where the view stops: in the same test, a Cortex Agent locked to the view told the user that membership data didn't exist, when the table sat in the same schema, just outside the view.

Setting it up

You need a role that can create objects in a schema and an account admin for the OAuth integration. Budget about 15 minutes for the SQL tool alone. Each Cortex tool takes as long as building the object behind it.

  1. Create a role for MCP access. Admin roles can't sign in through OAuth: ACCOUNTADMIN, SECURITYADMIN, GLOBALORGADMIN and ORGADMIN are blocked by default and can't be unblocked without Snowflake Support. (Source: Snowflake docs: Configure Snowflake OAuth for custom clients, https://docs.snowflake.com/en/user-guide/oauth-custom, checked on 2026-12-01)
USE ROLE ACCOUNTADMIN;
CREATE ROLE IF NOT EXISTS MCP_ANALYST;
GRANT DATABASE ROLE SNOWFLAKE.CORTEX_USER TO ROLE MCP_ANALYST;
GRANT USAGE ON WAREHOUSE ANALYTICS_WH TO ROLE MCP_ANALYST;
GRANT USAGE ON DATABASE ANALYTICS TO ROLE MCP_ANALYST;
GRANT USAGE ON SCHEMA ANALYTICS.MARTS TO ROLE MCP_ANALYST;
GRANT SELECT ON ALL TABLES IN SCHEMA ANALYTICS.MARTS TO ROLE MCP_ANALYST;
  1. Create the server. This one exposes read-only SQL plus Cortex Analyst over a revenue semantic view. Drop the second tool if you don't have a view yet.
CREATE OR REPLACE MCP SERVER ANALYTICS.MARTS.ANALYTICS_MCP
  FROM SPECIFICATION $$
  tools:
    - title: "Snowflake SQL"
      name: "sql_exec_tool"
      type: "SYSTEM_EXECUTE_SQL"
      description: "Run read-only SQL against the analytics marts."
      config:
        read_only: true
        query_timeout: 300
        warehouse: "ANALYTICS_WH"
    - title: "Revenue semantic view"
      name: "revenue-semantic-view"
      type: "CORTEX_ANALYST_MESSAGE"
      identifier: "ANALYTICS.MARTS.REVENUE"
      description: "Revenue, refunds and net revenue by month and channel"
  $$;

GRANT USAGE ON MCP SERVER ANALYTICS.MARTS.ANALYTICS_MCP TO ROLE MCP_ANALYST;
GRANT SELECT ON SEMANTIC VIEW ANALYTICS.MARTS.REVENUE TO ROLE MCP_ANALYST;
  1. Create the OAuth integration. Use a PUBLIC client for Claude and a CONFIDENTIAL one for clients that store a secret, like ChatGPT and Cursor.
CREATE OR REPLACE SECURITY INTEGRATION CLAUDE_MCP_OAUTH
  TYPE = OAUTH
  OAUTH_CLIENT = CUSTOM
  ENABLED = TRUE
  OAUTH_CLIENT_TYPE = 'PUBLIC'
  OAUTH_REDIRECT_URI = 'https://claude.ai/api/mcp/auth_callback'
  OAUTH_USE_SECONDARY_ROLES = NONE
  ALLOWED_ROLES_LIST = ('MCP_ANALYST');

SELECT SYSTEM$SHOW_OAUTH_CLIENT_SECRETS('CLAUDE_MCP_OAUTH');
  1. Build the server URL. Use hyphens in the account hostname, since Snowflake notes MCP clients have trouble with underscores:
https://<account-url>/api/v2/databases/ANALYTICS/schemas/MARTS/mcp-servers/ANALYTICS_MCP
  1. Add it to the client and sign in as a user whose default role is MCP_ANALYST.
ClientWhere you add itIntegration typeRedirect URI
Claude (web and Desktop)Settings, then Connectors, then add a custom connectorPUBLIChttps://claude.ai/api/mcp/auth_callback
ChatGPTConnectors settings, Advanced, turn on Developer mode, then create a connector with OAuthCONFIDENTIALThe one ChatGPT shows while you create the connector
CursorA snowflake entry in ~/.cursor/mcp.json with the url and an auth block holding CLIENT_ID and CLIENT_SECRET, then Sign in under Settings, MCPCONFIDENTIALPer Snowflake's Cursor instructions

Scripts and services that can't do OAuth can send a programmatic access token as a bearer header instead. Snowflake requires a network policy allowing the caller's IPs for that route. (Source: Snowflake docs: Snowflake-managed MCP server, https://docs.snowflake.com/en/user-guide/snowflake-cortex/cortex-agents-mcp, checked on 2026-12-01)

The errors you'll probably hit

  1. "The role ALL requested has been explicitly blocked". New users default to DEFAULT_SECONDARY_ROLES = ALL, and the integration above refuses secondary roles. Set DEFAULT_SECONDARY_ROLES = () on the users who sign in.
  2. Tools vanish after an edit. There is no ALTER MCP SERVER, and CREATE OR REPLACE drops every grant on the server, so keep the grants in the same script.
  3. Large results come back cut off. SQL and generic tool responses are truncated at 250 KB, and a tool call times out after 15 minutes.
  4. Prompts and resources from the client don't show up. The server supports the tools capability only.
  5. Failover leaves the server behind. MCP server objects aren't replicated in failover groups, though the OAuth integration is.

What it costs

Snowflake's launch post says the managed server needs no extra compute and carries no separate charge. (Source: Snowflake blog: Introducing Snowflake Managed MCP Servers, https://www.snowflake.com/en/blog/managed-mcp-servers-secure-data-agents/, checked on 2026-12-01) The tools behind it bill the way they always do: (Source: Snowflake docs: Snowflake AI pricing, https://docs.snowflake.com/en/user-guide/snowflake-cortex/pricing, checked on 2026-12-01)

PieceHow it bills
The MCP server objectNo separate charge
SYSTEM_EXECUTE_SQLWarehouse compute for every query the AI runs
CORTEX_ANALYST_MESSAGECortex Analyst usage (the standalone API bills per 1,000 messages), plus warehouse compute for the generated SQL
CORTEX_AGENT_RUNAI Credits per million tokens, adding up across every service the agent calls
CORTEX_SEARCH_SERVICE_QUERYCredits per GB per month of indexed data while the service is resumed, plus embedding tokens on updates
Claude or ChatGPTThe plan your team already pays for

In our own test, six questions to a Cortex Agent in CoWork used 0.48 credits, and the XSMALL warehouse used 0.67 credits across the whole run. A chatty client can fire many queries per question, so give the MCP role its own XSMALL warehouse with a 60-second auto-suspend and a resource monitor. That keeps AI spend on its own line.

The open-source and community servers

Snowflake-Labs/mcp was the usual choice before the managed server shipped: a Python server you started with uvx snowflake-labs-mcp --service-config-file config.yaml, with Cortex tools, SQL and an object manager that could create and drop databases, roles and users. It is archived now. If you still run it, the migration is to recreate each tool in a managed server spec and move people to OAuth.

isaacwasserman/mcp-snowflake-server is a smaller local server. It reads with read_query, browses schemas and tables, and keeps writes off unless you pass --allow-write. Credentials sit in a local .env or connections file on each person's machine, and its repo lists two different licenses, so check before you use it at work.

Both make sense for one person poking at a dev account. For a team, every laptop holds a Snowflake credential and nobody has a record of who asked what.

Where Contextflo fits

The managed server is enough when one person, or a small team that already has Snowflake roles for everyone, asks questions about data that lives only in Snowflake, and someone owns the semantic views. Past that, two jobs land on the data team: writing the definitions the AI needs, and knowing what people asked.

Contextflo connects Claude or ChatGPT to Snowflake and the rest of your stack (BigQuery, Postgres, Databricks, Redshift and uploaded files) through one connector. Point it at the GitHub or GitLab repo that holds your dbt project or app code, and it writes a description for each table and column from the code that builds them, so the AI starts with your definitions instead of guessing from column names. When someone corrects a definition, it is saved once and every later answer uses it, and the schema re-syncs daily.

It supports access control across all data sources, at the granularity each underlying data source supports, on every plan, and every question and query is logged per person, also on every plan.

It works with the Claude or ChatGPT subscription your team already pays for, so there's one AI bill and you pick the model. Pricing is from $500/month for up to 10 people, unlimited queries, and free for one user and one data source. Setup takes about 10 minutes: a Snowflake admin creates a read-only role (setup guide), and your team adds one connector.

Tilt, a live-auction marketplace for limited-edition goods, runs this on Snowflake with a one-person data team: about 6,000 queries a month, with 30+ people asking every week.

Here is a more in-depth look at Contextflo and how it works.

What is Contextflo?

Contextflo is a governed context layer between your data and the AI your team already uses. Connect your warehouse once, and your team asks questions in their own Claude or ChatGPT. The model writes and runs the SQL; Contextflo supplies the definitions, the per-user access control, and the audit that make the answers trustworthy. Your data never moves, and you do not need a data team.

How it works

1
Connect your data
Point Contextflo at your warehouse or database, or upload a CSV. It reaches multiple sources at once, so a single question can span all of them.
2
Bootstrap your context layer and review
Connect your code repo, Notion docs, or a data dictionary, and Contextflo annotates each table in your data source where it can. You review and correct them. That becomes the foundational context layer: your AI agent does not just see tables, it sees the context around them.
3
Define metrics and save golden queries
Pin the verified SQL behind a metric once. Every question then resolves against the same definitions, so the number is consistent no matter who asks or how they phrase it.

Contextflo, explained by our founder.

Your team queries in their own Claude or ChatGPT over MCP, so you bring any agent rather than a locked-in bot, and every answer comes back with the SQL shown and access enforced per user.

FAQ

Does Snowflake have an official MCP server? Yes. The Snowflake-managed MCP server is a schema object you create with CREATE MCP SERVER, generally available since November 4, 2025. It exposes Cortex Analyst, Cortex Search, Cortex Agents, read-only SQL and your own functions as tools, and clients sign in with OAuth or a programmatic access token.

Is the Snowflake-Labs MCP server still supported? It is deprecated. The Snowflake-Labs/mcp repository is marked deprecated and archived, and its README points users to the Snowflake-managed MCP server, which Snowflake develops and supports.

How do I connect Claude or ChatGPT to the Snowflake MCP server? Create the MCP server and an OAuth security integration in Snowflake, then add the server URL as a custom connector. In Claude that is Settings, then Connectors. In ChatGPT, Snowflake's docs use Developer mode under the Connectors settings. Each person signs in with their own Snowflake user and role.

Does the Snowflake MCP server cost anything? The server object has no separate charge, per Snowflake's launch post. What its tools run is billed: warehouse compute for SQL, Cortex Analyst messages, Cortex Agent tokens, and Cortex Search serving credits.

Can Contextflo connect Claude or ChatGPT to Snowflake and other sources at once? Yes. Contextflo connects Snowflake alongside BigQuery, Postgres, Databricks, Redshift, MySQL, ClickHouse and uploaded files, generates table context from your schema, code and docs, and logs every question per person. It works with the Claude or ChatGPT subscription your team already pays for, from $500/month for up to 10 people with unlimited queries.