This guide shows you how to configure the Snowflake connector for WRITER Agent. After setting up this connector, WRITER Agent can translate natural-language queries into Snowflake calls across Cortex tools (Analyst, Search, Agent), SQL operations, object management, and Semantic Manager functions for querying semantic views, dimensions, and metrics.Documentation Index
Fetch the complete documentation index at: https://dev.writer.com/llms.txt
Use this file to discover all available pages before exploring further.
Set up the Snowflake connector
Configure the Snowflake connector in AI Studio under Connectors & Tools. The Snowflake connector requires organization-managed OAuth authentication.The Snowflake connector only supports organization-managed OAuth. You must create an MCP Server and configure OAuth in your Snowflake account. WRITER-managed OAuth is not available for Snowflake.
Create a Snowflake MCP Server
Set up an MCP Server and OAuth in Snowflake:- In the Snowflake web interface, open a SQL worksheet and set the database and schema context where the MCP Server should live
-
Create the MCP Server:
Snowflake currently supports the following MCP tool types:
SYSTEM_EXECUTE_SQL: Execute SQL queries against SnowflakeCORTEX_ANALYST_MESSAGE: Query data using natural language through semantic viewsCORTEX_SEARCH_SERVICE_QUERY: Search unstructured data using Cortex SearchCORTEX_AGENT_RUN: Invoke a Cortex AgentGENERIC: Call custom user-defined functions or stored procedures
-
Grant the required Snowflake privileges based on the MCP tools you exposed in step 2:
-
Create the security integration with the Writer redirect URI and refresh token support:
-
Retrieve and copy your client ID and client secret for use in AI Studio:
-
Note your Snowflake MCP Server URL, which combines your tenant URL and MCP Server path for use in AI Studio:
Configure the connector in AI Studio
After creating your Snowflake MCP Server and OAuth integration:- Navigate to Connectors & Tools in AI Studio
- Select the Snowflake connector
- Select who has access by default (all users or specific teams)
- Enter your Snowflake tenant URL (MCP Server URL), OAuth client ID, and client secret
- Complete the OAuth authorization flow
Next steps
- Set up connectors: Learn how to configure and enable connectors in AI Studio
- Tool calling guide: Understand how AI agents use tools in conversations
- WRITER Agent guide: Learn how to use WRITER Agent with connected tools
- MCP gateway overview: Learn about Writer’s MCP gateway architecture
- Snowflake-managed MCP server: Learn about creating and configuring MCP servers in Snowflake