Snowflake MCP server: give marketing answers without handing over the warehouse

Snowflake’s managed Model Context Protocol (MCP) server exposes selected Snowflake tools to clients such as Claude, ChatGPT and Cursor. The useful boundary is the approved tool set plus the caller’s effective permissions. For marketing questions, start with a narrowly configured Cortex Agent, test its metric definitions and denied access, and measure the underlying usage before expanding the audience.

Jafrin Akter AloLast updated 12 min read
On this page
A white data cabinet with a lime tool drawer connects to a pink question-mark tile beside Snowflake MCP Server.

A successful connection proves that a client reached the server. It does not prove that the client selected the right role, that the agent uses the agreed revenue definition or that a result is safe to send into another tool.

Our AI-ready data and MCP access work connects those decisions to the warehouse models underneath them. The example below separates the creator’s administrative access from the role used for everyday questions. Object names are illustrative. Check the connection with a restricted role and compare one known result before expanding access.

What is the Snowflake MCP server?

The Snowflake MCP server is a Snowflake-managed endpoint that lets an MCP client discover and invoke the tools named in a server specification. It became generally available on 4 November 2025. General-availability release note.

The server specification reference documents these tool categories. Choose them for the intended task rather than exposing every available option.

What is the Snowflake MCP server?
Tool typePurposeDecision before exposing it
CORTEX_AGENT_RUNInvoke a configured Cortex AgentInspect its instructions and complete tool set
CORTEX_ANALYST_MESSAGEAsk analytical questions through an approved semantic viewDefine business metrics and allowed data
CORTEX_SEARCH_SERVICE_QUERYSearch a Cortex Search serviceReview which content the service can return
SYSTEM_EXECUTE_SQLExecute SQL queriesUse a separate, tightly permissioned diagnostic path
GENERICInvoke a function or stored procedureReview its inputs, effects and execution rights

SQL is the query language used to read or change database objects. A semantic view describes the business meaning of tables, dimensions and metrics so an analytical tool can interpret a question. That metadata supports consistency; it does not independently prove the underlying data is correct. Semantic views.

The MCP server is a connection surface, not a replacement for modelling, ownership or validation. Compare other marketing MCP servers when the job belongs in an advertising or analytics product rather than the warehouse.

Why put one Cortex Agent in front of marketing?

A narrow agent gives business questions a smaller, inspectable route to approved definitions. It also gives the team one place to test expected answers and unsupported requests before adding more tools.

For example, customer acquisition cost (CAC) needs an agreed spend scope, customer definition and observation period. Return on ad spend (ROAS) needs a stated revenue measure and denominator. A client choosing tables ad hoc can produce plausible numbers while using the wrong definition. Compare cross-channel reporting through MCP before choosing a connector or warehouse route.

Configure the agent around the relevant semantic view and approved resources. Cortex Agents can use analytical, search, custom and external tools; exposing one agent is therefore not, by itself, a read-only guarantee. Inspect everything reachable through that agent. Cortex Agents.

How the workflow fits together
An approved client reaches the managed endpoint and effective role, invokes a reviewed Cortex Agent and semantic view, then checks the answer against known results before it is used.
Read diagram as text
  • Marketing question in an approved client to Managed MCP endpoint and effective role.
  • Managed MCP endpoint and effective role to Cortex Agent with reviewed tools.
  • Cortex Agent with reviewed tools to Semantic view with agreed definitions.
  • Semantic view with agreed definitions to Modelled spend CRM and billing data.
  • Modelled spend CRM and billing data to Answer checked against expected results.
  • Answer checked against expected results to Definition access and evidence pass?.
  • Definition access and evidence pass? to Use the answer with its scope: Yes.
  • Definition access and evidence pass? to Correct the model permissions or question: No
Open full diagram

The AI-ready marketing data checks cover the identity, freshness and metric work beneath this route. A semantic view cannot repair a billing join that counts the same customer twice.

Keep an evaluation set with answers you can independently reproduce: spend by a defined period, revenue after refunds, an incomplete cohort, an unknown acquisition source and an intentionally unavailable customer field. The expected response to missing evidence may be a clarification or refusal, rather than a fabricated number.

How do you set up the Snowflake MCP server?

Prepare the data and agent first, then create the endpoint, grant the consumer role and configure the client’s authentication. Test the consumer identity after setup instead of validating only as the administrator who created it.

1. Prepare the objects and an accountable owner

This example assumes an existing MARKETING database, MCP schema, MCP_WH warehouse, MARKETING_METRICS semantic view and MARKETING_AGENT Cortex Agent. The agent’s analytical tools should use the warehouse you intend to monitor. Establish an owner for each metric and for access changes.

The managed MCP Analyst tool supports semantic views, rather than legacy semantic-model files. This is a limit of that MCP tool; Cortex Analyst’s broader interface also documents semantic models. Do not turn a connector constraint into a statement that the entire Analyst product only supports one format. Managed MCP documentation, Cortex Analyst.

Create and test the agent before connecting an external client. Snowflake’s agent walkthrough covers the prerequisite account availability, default role, warehouse and model-region settings. Check your organization’s permitted inference regions rather than enabling cross-region access simply because a sample does so.

2. Create a server exposing the reviewed agent

Run reviewed setup statements with a role authorized to create objects in the chosen schema. Do not give that creator role to every business user.

SQL
CREATE MCP SERVER MARKETING.MCP.MARKETING_ANSWERS
  FROM SPECIFICATION $$
  tools:
    - name: "marketing_data_agent"
      title: "Marketing data agent"
      type: "CORTEX_AGENT_RUN"
      identifier: "MARKETING.MCP.MARKETING_AGENT"
      description: "Answers approved spend, customer and pipeline questions using governed definitions."
  $$;

SHOW MCP SERVERS IN SCHEMA MARKETING.MCP;
DESCRIBE MCP SERVER MARKETING.MCP.MARKETING_ANSWERS;

The creation statement deliberately omits OR REPLACE: an existing object with the same name should trigger review, not an accidental replacement. Confirm that the stored identifier points to the intended agent and that the description accurately describes its capabilities.

A tool annotation such as readOnlyHint describes expected behaviour to a client; it is not a substitute for inspecting tools and enforcing privileges. Treat metadata and authorization as separate checks.

3. Grant the consumer role only the required objects

The role needs access to the server, the agent, the tool warehouse and each resource the agent uses. Agent access alone is insufficient. Stored procedures can use owner’s or caller’s rights, so a custom procedure needs its own execution-context review. Agent access control.

The following illustrates a single reviewed analytical path. Replace the example table with the actual approved underlying objects; add the required database/schema access if they live elsewhere.

SQL
CREATE ROLE MARKETING_MCP_ROLE;
GRANT DATABASE ROLE SNOWFLAKE.CORTEX_AGENT_USER
  TO ROLE MARKETING_MCP_ROLE;

GRANT USAGE ON DATABASE MARKETING TO ROLE MARKETING_MCP_ROLE;
GRANT USAGE ON SCHEMA MARKETING.MCP TO ROLE MARKETING_MCP_ROLE;
GRANT USAGE ON WAREHOUSE MCP_WH TO ROLE MARKETING_MCP_ROLE;
GRANT USAGE ON MCP SERVER MARKETING.MCP.MARKETING_ANSWERS
  TO ROLE MARKETING_MCP_ROLE;
GRANT USAGE ON AGENT MARKETING.MCP.MARKETING_AGENT
  TO ROLE MARKETING_MCP_ROLE;
GRANT SELECT ON SEMANTIC VIEW MARKETING.MCP.MARKETING_METRICS
  TO ROLE MARKETING_MCP_ROLE;
GRANT SELECT ON TABLE MARKETING.MCP.APPROVED_MARKETING_FACTS
  TO ROLE MARKETING_MCP_ROLE;

GRANT ROLE MARKETING_MCP_ROLE TO USER MARKETING_ANALYST;
SHOW GRANTS TO ROLE MARKETING_MCP_ROLE;

These grants should not become broad access to all current and future tables. Review inherited roles and existing public grants too; adding a narrow role does not remove access that the same session obtains elsewhere. The privilege reference defines the object-specific grants.

4. Configure OAuth and verify the role actually used

OAuth lets the client act through an individually authorized Snowflake identity. For a custom public client, Snowflake documents a proof-key flow, known as PKCE. The following is the documented Claude-style callback pattern; use the exact callback required by the client you configure.

SQL
CREATE SECURITY INTEGRATION MARKETING_MCP_CLAUDE
  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 = ('MARKETING_MCP_ROLE');

The OAuth integration reference defines those settings. Keep client credentials in the approved client configuration, outside manuscripts, shared repositories and assistant transcripts. Retrieve or rotate them through the administrator’s controlled setup process. A public-client flow and a confidential-client flow have different credential requirements.

Some clients request session:role:all, which uses the user’s default primary role; that name does not activate every role. Keep secondary roles disabled and verify the chosen primary role and warehouse. Where the connection requires changing user defaults, review the effect on that person’s other workflows before applying it. ChatGPT role behaviour. Review the custom-client OAuth policy when configuring the integration.

The ALTER USER reference defines these default settings. Record their prior values so an intentional account change can be reversed.

SQL
-- Review current defaults before changing them.
DESCRIBE USER MARKETING_ANALYST;

-- Apply only for the agreed MCP access configuration.
ALTER USER MARKETING_ANALYST SET
  DEFAULT_ROLE = 'MARKETING_MCP_ROLE'
  DEFAULT_WAREHOUSE = 'MCP_WH';

The role allowlist must permit that role. Reconnect after a relevant authentication change and inspect effective access, rather than assuming the role shown in an administrator’s worksheet is the one the client received.

5. Connect the intended client and test a normal user

Use the complete endpoint path. Account hostnames containing underscores need the documented hyphenated form.

Plain text
https://<account-host>/api/v2/databases/MARKETING/schemas/MCP/mcp-servers/MARKETING_ANSWERS

For Claude or Cursor, follow Snowflake’s current client instructions and confirm the callback and client type. A successful sign-in does not prove every listed tool is invocable.

ChatGPT now documents a Snowflake Official Template under its Plugins setup. When both the Snowflake partner application and built-in OAuth are available, an administrator can enable that route without entering a custom client ID and secret. Otherwise, its custom OAuth path uses a confidential client and the exact callback shown during setup. OpenAI’s Snowflake template guide.

For remote clients, check the provider’s current outbound IP ranges against your Snowflake network policy. These connections originate from the provider’s infrastructure, not necessarily the user’s browser. A PrivateLink-only address cannot simply be pasted into an external hosted client; use the supported network and authorization design for that deployment.

Should you expose SQL execution to an AI tool?

Use a separate, narrowly permissioned SQL path only when the audience needs direct querying. A marketer asking for a governed metric and an analyst diagnosing a model have different access needs.

For direct execution, set read_only: true, restrict readable objects and bound query duration. The Snowflake template example shows these settings together. A custom function or an agent with additional tools needs its own review; the SQL flag does not govern everything else the session can call.

A read-only query can still return sensitive data or consume significant compute. Design the output around the required aggregate, and examine how the external client stores or forwards returned content. Avoid combining warehouse results with unrelated tools that can send messages or write records unless that larger workflow has an explicit approved purpose and controls.

For a diagnostic workflow, record the requested question, allowed tables or views, maximum result detail and expected rejection cases. Test an allowed aggregate and an unavailable field using the actual consumer identity. Merely hiding a tool in the client’s interface does not revoke its underlying credential permissions.

What does the Snowflake MCP server cost?

Snowflake’s launch announcement says the managed server has no separate charge. Budget the warehouse, analytical and AI services invoked behind each request separately.

Separate warehouse controls from agent controls. A resource monitor applies to warehouse spending and can suspend the associated warehouse; it does not track all serverless and AI-service charges. Configure the warehouses actually used by agent tools, not just an unused default warehouse.

Cortex Agent resource budgets can run configured actions at spending thresholds, including revoking access. Evaluation is periodic: the documentation describes up to eight hours for standard budgets or two hours with the low-latency option. They are not instantaneous invoice ceilings.

Use an observed cost record before predicting a per-answer price. Include failed attempts, retries and tool calls that did not produce an accepted answer.

Hypothetical monthly example in USD. Amounts are invented inputs, not Snowflake rates or a Martechdevs quote; client subscriptions and implementation are excluded.

What does the Snowflake MCP server cost?
ComponentAssumed monthly amountBasis
Warehouse usage40Actual invoice category to measure
AI and analytical service usage60Separately metered service charges
Incremental storage and other consumption20Only costs attributable to this workflow
Software usage subtotal120Sum of the three usage lines
Existing-staff operating capacity300Four hours valued at USD 75/hour

For 400 accepted answers, the usage subtotal is USD 0.30 per accepted answer. Including the assumed staff capacity gives USD 420 of economic cost, or USD 1.05 per accepted answer. The staff figure is not an additional cash invoice unless that work actually creates new spending. An impressive question count is not enough if many answers require manual correction.

What are the Snowflake MCP server limits?

Tool count, response size, recursion and protocol support constrain the connection. Test the result the client actually receives. See the limits in the managed-server documentation.

What are the Snowflake MCP server limits?
BoundaryDocumented limit or behaviourPractical check
Tool inventoryUp to 50 tools per serverLimit inventory
SQL and generic responsesTruncated at 250 KBDetect truncation
Agent responsesCan exceed 200 KB because of intermediate stepsCheck client limits
RecursionMaximum depth of 10 invocationsPrevent circular calls
ProtocolRevision 2025-11-25; several constructs including resources and prompts unsupportedTest supported calls
Client registrationNo dynamic client registrationChoose supported OAuth
FailoverMCP objects are not replicated; OAuth integrations areTest the recreated endpoint

Treat a response cut short by a limit as incomplete evidence. Do not display a partial list as though it were the complete customer population. Include a narrow aggregate in the evaluation pack so the intended use does not depend on exporting a large table into a chat window.

Snowflake Intelligence, CoWork and Cortex Code: which is which?

CoWork is the Snowflake-hosted business assistant, Cortex Agents supply configurable reasoning and tools, and the managed MCP endpoint makes selected capabilities available to external clients. Choosing an interface does not change the need for data and access controls.

Snowflake’s current CoWork overview documents the business assistant; the older Snowflake Intelligence documentation URL now redirects there. Its scheduled Automations became generally available on 11 September 2026. Automation release note.

The engineering surfaces formerly described as Cortex Code are documented as CoCo, including CoCo Desktop. Use them for building and maintaining the system; do not give every business question the permissions of an engineering session.

The Snowflake-Labs/mcp repository is deprecated and directs readers to the managed server. An old community-server installation recipe should not be treated as the current managed setup.

Compare Snowflake Cortex vs CoWork vs CoCo before deciding whether external MCP access adds a useful workflow beyond the assistant your team already uses.

What evidence should pass before the connection is shared?

Test correctness, denied access and operating recovery as the intended user. A creator’s successful query is an incomplete acceptance test.

Checklist

  • The server lists only the approved tools and points to the intended objects.
  • Each agent tool has a reviewed purpose, execution context and warehouse.
  • The effective primary role and secondary-role policy match the design.
  • Known marketing questions reconcile with independently produced results.
  • Missing definitions, incomplete cohorts and unsupported questions are handled explicitly.
  • Restricted fields and unauthorized tools remain unavailable to the consumer.
  • The client handles response limits and does not present truncation as completeness.
  • Credential revocation and reconnect behaviour have an owner and a test.
  • Warehouse and AI spending have separate monitoring and response procedures.
  • The handover records object names, grants, client configuration and accepted limitations.

For a defined build, request a detailed AI-ready data and MCP scope covering the semantic definitions, agent, access and tests together. Start with the $99 martech audit when the correct data or audience boundary is still unclear.

Keep reading

Browse all Martech AI guides

Questions people ask

What should happen when a metric definition changes after launch?

Version the definition and rerun the affected evaluation questions before presenting new answers as comparable with earlier ones. Record the effective date and which reports or saved prompts depend on it. A server reconnect alone does not validate the revised meaning. Tell users when a changed revenue, cohort or currency rule explains a difference in the result.

How should access differ for two marketing teams using one account?

Start from the data and actions each team is permitted to use, then map roles and server access to those boundaries. Test with a member of each team. Do not assume a different tool description creates authorization separation. Where client role selection cannot express the required distinction, use a supported separate-role and endpoint design and verify the effective session.

How should saved questions handle dates such as last month?

Resolve the intended calendar period, time zone and data-completeness cutoff when the question runs, and retain those values with the answer. A saved prompt should not be treated as a frozen report if its relative dates move. For recurring comparisons, keep the original question and the resolved period so another analyst can reproduce the same scope later.

How should we compare answers after changing the AI client?

Run the same approved questions with the same data cutoff and consumer permissions, then compare tool selection, calculated results and stated limitations. Keep presentation preferences separate from correctness. A more polished response is not evidence of a better calculation. Investigate any changed definition or missing step before replacing the client used for a recurring business decision.

When should we retire an unused MCP connection?

Review its owner, recent purpose and downstream dependencies before removal. Revoke the client’s authorized access through the approved process, remove obsolete grants where appropriate and retain only the required audit evidence. Verify that the retired path no longer works. Deleting a local client entry alone should not be assumed to revoke the credentials or permissions it previously used.

Sources

  1. Snowflake: Managed MCP server
  2. Snowflake: CREATE MCP SERVER
  3. Snowflake: MCP general availability
  4. Snowflake: Semantic views
  5. Snowflake: Cortex Agents
  6. Snowflake: Cortex Analyst
  7. Snowflake: Agent walkthrough
  8. Snowflake: Agent access control
  9. Snowflake: Grant privileges
  10. Snowflake: OAuth integration reference
  11. Snowflake: Custom-client OAuth
  12. OpenAI: Snowflake app template
  13. Snowflake: Managed MCP launch
  14. Snowflake: Resource monitors
  15. Snowflake: Cortex Agent resource budgets
  16. Snowflake: CoWork overview
  17. Snowflake: CoWork Automations general availability
  18. Snowflake: CoCo Desktop
  19. Snowflake-Labs: Deprecated MCP repository
  20. Snowflake: ALTER USER
Portrait of Jafrin Akter Alo

Written by

Jafrin Akter Alo

Data Engineer and Co-founder at Martechdevs and Growth and Analytics Partners

Jafrin writes practical guides to marketing technology, customer data, analytics and AI workflows. Martechdevs is a Growth and Analytics Partners company.

View LinkedIn profile

Book a Free Call

Thirty minutes on your stack and what it needs. Free, and no pitch.

Thirty minutes, and you leave with a plan

We look at what you have, what it is costing you and what to do about it first.

  • 30 minutes
  • Video call, link on booking
  • No obligation

What we'll cover

  • Your current stack and where it hurts
  • Quick wins we can ship first
  • An integration roadmap
  • Timeline, scope and next steps

Calendar not loading? Open it in a new tab or email hello@martechdevs.com.