Snowflake-managed MCP server¶
Overview¶
Note
Snowflake supports Model Context Protocol revision 2025-11-25.
Model Context Protocol (MCP), is an open-source standard that lets AI agents securely interact with business applications and external data systems, such as databases and content repositories. MCP lets enterprise businesses reduce integration challenges and quickly deliver outcomes from models. Since its launch, MCP has become foundational for agentic applications, providing a consistent and secure mechanism for invoking tools and retrieving data.
The Snowflake-managed MCP server lets AI agents securely retrieve data from Snowflake accounts without needing to deploy separate infrastructure. You can configure the MCP server to serve Cortex Analyst, Cortex Search, and Cortex Agents as tools, along with custom tools and SQL executions on the standards-based interface. MCP clients discover and invoke these tools, and retrieve data required for the application. With managed MCP servers on Snowflake, you can build scalable enterprise-grade applications while maintaining access and privacy controls. The MCP server on Snowflake provides:
- Standardized integration: Unified interface for tool discovery and invocation, in compliance with the rapidly evolving standards.
- Comprehensive authentication: Snowflake OAuth by default, with optional External OAuth so MCP clients can authenticate against your organization’s identity provider.
- Robust governance: Role based access control (RBAC) for the MCP server and tools to manage tool discovery and invocation.
For information about the MCP lifecycle, see Lifecycle. For an example of an MCP implementation, see the Getting Started with Managed Snowflake MCP Server Quickstart.
MCP server security recommendations¶
Important
When you configure hostnames for MCP server connections, use hyphens (-) instead of underscores (_). MCP servers have connection issues with hostnames containing underscores.
Using multiple MCP servers without verifying tools and descriptions could lead to vulnerabilities such as tool poisoning or tool shadowing. Snowflake recommends verifying third-party MCP servers before using them. This includes any MCP server from another Snowflake user or account. Verify all tools offered by third-party MCP servers.
We recommend using OAuth as the authentication method. Using hardcoded tokens can lead to token leakage.
When using a Programmatic Access Token (PAT), set it to use the least-privileged role allowed to work with MCP. This will help prevent leaking a secret with access to a highly-privileged role.
Configure proper permissions for the MCP server and tools following the least-privilege principle. Access to the MCP Server does not give access to the tools. Permission needs to be granted for each tool.
Avoid configurations that can create recursive loops. For example, an external client calling a Cortex Agent tool through MCP, which in turn invokes another MCP server that calls back into a Cortex Agent, can produce expensive, unbounded loops. Snowflake enforces a maximum recursion depth of 10 invocations. Ensure your agent and tool configurations don’t create circular invocation paths.
Create an MCP server object¶
Create an object, specifying the tools and other metadata. MCP clients that connect with the server, after requisite authentication, are able to discover and invoke these tools.
- Navigate to the database and schema where you want to create the MCP server.
- Create the MCP server by using the following syntax:
For business data applications that require governed orchestration, Snowflake recommends exposing a Cortex Agent as the client-facing MCP tool. Configure the agent with the Cortex Analyst, Cortex Search, and custom tools that it needs, and then expose the agent through the MCP server. This configuration gives the external MCP client one governed interface and lets the agent select the appropriate resources for each request.
The following example exposes only a Cortex Agent:
When an MCP client sends a question, the client selects the agent based on its name and description. The MCP server passes the question to the agent. The agent then selects and orchestrates its configured Cortex Analyst, Cortex Search, or custom tools and returns the response to the client.
Use precise, domain-specific names and descriptions when you expose multiple agents. This information helps the MCP client select the correct agent.
Expose Cortex Analyst or Cortex Search directly when you want the external MCP client to select those resources independently. A directly exposed Cortex Analyst tool generates SQL and returns the statement to the client. A SQL execution tool runs queries without Cortex Agent orchestration.
Configure tool types¶
Snowflake currently supports the following tool types:
- CORTEX_AGENT_RUN: Cortex Agent tool
- CORTEX_SEARCH_SERVICE_QUERY: Cortex Search Service tool
- CORTEX_ANALYST_MESSAGE: Cortex Analyst tool
- SYSTEM_EXECUTE_SQL: SQL execution
- GENERIC: tool for UDFs and stored procedures
The following examples show how to configure different tool types:
For the Agent tool, your client passes a message to the agent. The agent processes the request and returns a response. Use the following code to specify the tool configuration.
The agent tool response includes all intermediate steps by design: reasoning traces, tool calls, search results, and citations.
This can result in large response payloads (200 KB or more). To reduce the payload size when the agent uses Cortex Search,
configure max_results in the agent’s search tool resources to limit the number of search results returned per query.
Using the Analyst tool, your client can generate SQL from natural language text. Use the following code to specify the tool configuration.
Note
The Snowflake-managed MCP server only supports using semantic views with Cortex Analyst. It does not support semantic models.
Using the Search tool requests, your client can perform unstructured search on their data.
For the SQL execution tool, your client can execute SQL queries on Snowflake. You can optionally configure the following options:
read_only: When set totrue, only read operations (SELECT queries) are allowed. Defaults totrue.query_timeout: Maximum time in seconds for query execution.warehouse: The warehouse to use for query execution. If not specified, the default warehouse is used.
Important
Snowflake generally recommends exposing a Cortex Agent as the only client-facing tool on a given MCP server used for governed business questions. Exposing SYSTEM_EXECUTE_SQL on the same server allows the MCP client to bypass the agent’s semantic views, verified queries, and orchestration; if direct SQL is required, expose it through a separate MCP server with a dedicated least-privileged role.
Use the following code to specify the tool configuration:
For your custom tools, you must provide the user-defined function (UDF) or stored procedure signature in the tool configuration. The custom tool enables you to invoke UDFs and stored procedures as tools through the MCP server.
You can specify the following in the tool configuration:
type:functionfor UDF,procedurefor stored procedurewarehouse: The warehouse to use. If you don’t specify a warehouse, the default warehouse is used.query_timeout: Maximum time in seconds for tool execution.input_schema: Corresponds to the function signature.
Use the following examples to create and configure custom tools using UDFs and stored procedures:
The following examples demonstrate creating UDFs that can be used as custom tools:
The following examples demonstrate creating stored procedures that can be used as custom tools:
The following examples demonstrate configuring custom tools for UDFs and stored procedures:
Manage MCP server objects¶
After you create an MCP server, use the following commands to inspect or remove it:
-
To show MCP servers, use the following commands:
The following shows the output of the command:
-
To describe an MCP server, use the following command:
The following shows the output of the command:
-
To drop an MCP server, use the following command:
MCP server URL¶
To connect to the MCP server, use the URL endpoint with the following format:
For information about formatting your account URL, see Account identifiers.
Access control¶
Required privileges¶
You can use the following privileges to manage access to the MCP server and the underlying tools.
| Privilege | Object | Description |
|---|---|---|
| CREATE | MCP SERVER | Required to create the MCP server |
| OWNERSHIP | MCP SERVER | Required to update the object configuration |
| MODIFY | MCP SERVER | Provides update, drop, describe, show, and use (tools/list and tools/call) on the object configuration |
| USAGE | MCP SERVER | Required to connect with the MCP server and discover tools |
| USAGE | Cortex Search Service | Required to invoke the Cortex Search tool in the MCP server |
| SELECT | Semantic View | Required to invoke the Cortex Analyst tool in the MCP server |
| USAGE | Cortex Agent | Required to invoke the Cortex Agent as a tool in the MCP server |
| USAGE | User-defined function (UDF) or stored procedure | Required to invoke the UDF or stored procedure as a tool in the MCP server |
Grant access to a Cortex Agent-based MCP server¶
The following example creates a dedicated access role and grants it access to an MCP server that exposes a Cortex Agent:
The role also needs privileges on the resources configured for the agent. Grant only the privileges for the resources that the agent uses. For example:
For more information about agent privileges and the privileges required by agent tools, see Access control and authentication.
Grant the MCP access role only to users who need it. Don’t grant the role to PUBLIC or grant broad access to all current and future tables solely to support an MCP client.
Set up OAuth authentication¶
Configure authentication on the MCP client. The Snowflake-managed MCP server supports OAuth 2.0 aligned with the authorization recommendation in the MCP protocol. The Snowflake-managed MCP server doesn’t support dynamic client registration.
By default, MCP servers use Snowflake OAuth. To bind MCP servers to an External OAuth identity provider such as Okta or Microsoft Entra ID, see Configure External OAuth authentication.
A single OAuth security integration (client ID and secret) can be shared across all users in an account. Each user still authenticates individually with their own credentials to obtain an access token, but the client ID and secret from the integration are the same for everyone. A single integration can also issue tokens that work across multiple MCP servers within the same account.
Note
If your Snowflake account uses PrivateLink and you are connecting from a SaaS MCP client
(such as Claude.ai or ChatGPT), configure your MCP client with the public MCP server
URL, not the PrivateLink URL. Additionally, enable
USE_PRIVATELINK_FOR_AUTHORIZATION_ENDPOINT = TRUE on your OAuth security integration.
This causes Snowflake to redirect the user’s browser to the PrivateLink authorization
endpoint while the token endpoint remains on the public URL so the SaaS vendor’s server
can reach it. For details, see
Using Snowflake OAuth with PrivateLink and SaaS clients.
-
First, create the security integration. For information about this command, see CREATE SECURITY INTEGRATION (Snowflake OAuth).
ALLOWED_ROLES_LISTrestricts the integration to the roles intended for MCP access. If the integration serves MCP servers with different access roles, include each role in the list.If your MCP client requires multiple redirect URIs (for example, VS Code registers more than one callback URL), use
OAUTH_ALTERNATE_REDIRECT_URISto specify additional URIs: -
Then, call the system function to retrieve your client id and keys for client configuration. The integration name is case sensitive and must be in uppercase.
Role behavior in OAuth sessions¶
OAuth scopes control only the primary role for the MCP session. Secondary roles are separate
and are controlled by the OAuth security integration, not by OAUTH_SCOPES_SUPPORTED.
By default, MCP servers advertise session:role:all in Protected Resource Metadata, and the OAuth session uses the connecting user’s DEFAULT_ROLE as the primary role.
Special primary-role scopes:
session:role:all: Use the user’sDEFAULT_ROLEas the primary role. Despite the name, this doesn’t activate every role or secondary roles.session:role-any: Allow any primary role granted to the user, when any-role mode is enabled on the authorization server. For External OAuth, that requiresEXTERNAL_OAUTH_ANY_ROLE_MODE = ENABLEorENABLE_FOR_PRIVILEGEon the security integration.session:role:<role_name>: Use that named role as the primary role.
To control which primary-role scopes MCP clients discover, set the OAUTH_SCOPES_SUPPORTED parameter at the account, database, or schema level. This parameter is independent of External OAuth: set it alone to customize scopes for Snowflake OAuth, or set it together with OAUTH_AUTHORIZATION_SERVER when you bind MCP servers to an external identity provider (IdP). For accepted scope values and SET-time validation rules, see OAUTH_SCOPES_SUPPORTED.
Whether the advertised primary role is used in the session depends on the MCP client:
- Clients that request one of the advertised
session:role:<role_name>scopes use that role as the primary role for the session. - Some MCP clients (such as Claude) don’t support specifying a role in the OAuth scope and request
session:role:allinstead, so the session uses the user’sDEFAULT_ROLEeven when other scopes are advertised.
Secondary roles aren’t controlled by OAuth scopes. For Snowflake OAuth, they follow
OAUTH_USE_SECONDARY_ROLES on the security integration:
- Recommended for MCP: leave
OAUTH_USE_SECONDARY_ROLES = NONE(the default) and restrictALLOWED_ROLES_LISTto the MCP access role, so the session uses only the user’sDEFAULT_ROLEas the primary role. See Prefer a least-privileged MCP OAuth configuration. - To activate the user’s default secondary roles when the session opens, set
OAUTH_USE_SECONDARY_ROLES = IMPLICIT. Snowflake OAuth doesn’t support in-session secondary role switching with USE SECONDARY ROLES. For details, see CREATE SECURITY INTEGRATION (Snowflake OAuth). - For External OAuth, see Using secondary roles with External OAuth.
To ensure the correct primary role is used when clients rely on session:role:all or the user’s DEFAULT_ROLE:
- Set each user’s
DEFAULT_ROLEto the role that has the required privileges on the MCP server and its tools. - Ensure each user has a
DEFAULT_WAREHOUSEset (sessions fail to initialize if this is null).
If you need different data access levels per user and clients don’t honor role scopes, use separate MCP servers with dedicated roles.
Note
If an MCP client (such as Claude) requests the session:role:all OAuth scope, the consent screen
might display “secondary roles = ALL” even when your security integration has
OAUTH_USE_SECONDARY_ROLES = NONE. That label is cosmetic and doesn’t mean the scope activates
secondary roles. Snowflake enforces the security integration setting regardless of what the client
requests, so default secondary roles aren’t activated unless you set
OAUTH_USE_SECONDARY_ROLES = IMPLICIT.
Configure External OAuth authentication¶
By default, MCP servers use Snowflake OAuth for authentication. To let MCP clients authenticate against your organization’s existing identity provider (IdP) such as Okta or Microsoft Entra ID, set OAUTH_AUTHORIZATION_SERVER to bind MCP servers to an External OAuth security integration. Optionally set OAUTH_SCOPES_SUPPORTED to advertise specific scopes in Protected Resource Metadata. You can also set OAUTH_SCOPES_SUPPORTED on its own for Snowflake OAuth; see Role behavior in OAuth sessions.
When an External OAuth integration is bound to a schema, database, or account, Snowflake advertises the external issuer’s metadata in Protected Resource Metadata (RFC 9728). MCP clients that support OAuth resource metadata discovery fetch this information automatically to find the correct authorization server and scopes.
Default behavior¶
When neither parameter is set, MCP servers use Snowflake OAuth and advertise session:role:all as the supported scope.
Steps to configure External OAuth for MCP servers¶
-
Create an External OAuth security integration for your IdP. For details, see CREATE SECURITY INTEGRATION (External OAuth).
-
Set
OAUTH_AUTHORIZATION_SERVERat the account, database, or schema level to bind MCP servers in that scope to the integration. For parameter details, see OAUTH_AUTHORIZATION_SERVER. -
Optionally, set
OAUTH_SCOPES_SUPPORTEDto advertise specific scopes in the Protected Resource Metadata response. This parameter is independent ofOAUTH_AUTHORIZATION_SERVER: you can set it alone for Snowflake OAuth, or together with an External OAuth binding as shown here. For accepted scope values, see OAUTH_SCOPES_SUPPORTED. For how scopes interact with primary and secondary roles, see Role behavior in OAuth sessions. -
Create the MCP server. The server inherits the OAuth binding from the enclosing schema, database, or account.
When a client connects to docs_mcp_server, Snowflake returns a 401 response with a WWW-Authenticate header pointing to the Protected Resource Metadata endpoint. The client fetches the metadata document, which advertises the Okta issuer URL from external_oauth_okta in authorization_servers, and then initiates the Okta OAuth flow. After obtaining a token, the client retries the request. Snowflake accepts the OAuth token only when it was issued by the bound External OAuth integration; a Snowflake OAuth token, or a token from a different External OAuth integration, is rejected. This issuer check applies only to OAuth calls against MCP server endpoints; other authenticators and non-MCP endpoints aren’t affected.
Parameter inheritance¶
OAUTH_AUTHORIZATION_SERVER and OAUTH_SCOPES_SUPPORTED follow Snowflake’s standard parameter inheritance. Each parameter resolves independently by checking the following levels in order:
- Schema
- Database
- Account
This means you can set a default authorization server at the account level and override it for specific schemas, or have some schemas use External OAuth while others use Snowflake OAuth (no parameter set).
When OAUTH_AUTHORIZATION_SERVER is set and OAUTH_SCOPES_SUPPORTED isn’t, Snowflake doesn’t advertise session:role:all. Instead:
- If the bound integration has
EXTERNAL_OAUTH_ANY_ROLE_MODE = ENABLEorENABLE_FOR_PRIVILEGE, the Protected Resource Metadata response includessession:role-any. - Otherwise, the Protected Resource Metadata response includes an empty
scopes_supportedlist, and the MCP client uses its own configured scopes or prompts the user.
Failure modes¶
The following conditions change what Snowflake advertises in the Protected Resource Metadata response, and how token enforcement behaves:
| Condition | Behavior |
|---|---|
The integration named in OAUTH_AUTHORIZATION_SERVER is dropped | The Protected Resource Metadata response includes an empty |
| The integration is disabled | Same as when the integration is dropped. |
A role specified in OAUTH_SCOPES_SUPPORTED is dropped or renamed | Snowflake continues to publish the configured scope string in Protected Resource Metadata. Authentication using that scope fails during the OAuth flow. |
OAUTH_SCOPES_SUPPORTED is set but OAUTH_AUTHORIZATION_SERVER isn’t | The scopes apply to Snowflake OAuth discovery. |
For information about External OAuth, see External OAuth overview.
For information about the parameters, see OAUTH_AUTHORIZATION_SERVER and OAUTH_SCOPES_SUPPORTED.
Prefer a least-privileged MCP OAuth configuration¶
Snowflake recommends configuring MCP OAuth so the session uses the connecting user’s
DEFAULT_ROLE without activating default secondary roles. That pattern matches the
OAUTH_USE_SECONDARY_ROLES = NONE and ALLOWED_ROLES_LIST settings in the earlier CREATE examples.
Secondary roles still work when you set OAUTH_USE_SECONDARY_ROLES = IMPLICIT; the
recommendation is to avoid that for MCP unless you intentionally need broader privileges.
If an existing MCP OAuth integration uses OAUTH_USE_SECONDARY_ROLES = IMPLICIT, update it as follows:
- Configure or select a Cortex Agent with the governed resources that the client needs.
- Update the primary MCP server to expose the agent. Remove direct SQL execution from that server unless the client requires it.
- Create or select a least-privileged MCP access role and grant access to the MCP server, agent, and agent resources.
- Set the access role and warehouse as the user’s defaults.
- Disable secondary roles and restrict the integration to the MCP access role:
- Reconnect the MCP client and verify the effective role, visible tools, agent routing, and resource access.
Connect from common MCP clients¶
Once you have created the MCP server and the OAuth security integration, you can connect from any MCP-compatible client by pointing it at your MCP server URL:
Important
You may need to use hyphens (-) instead of underscores (_) in your account URL with some clients.
The following examples show how to register the Snowflake-hosted MCP server in commonly used clients. Replace the URL with your own MCP server URL.
Claude (both claude.ai and Claude Desktop) supports Snowflake MCP servers in the Claude Directory or as a Custom Connector. Claude handles the OAuth flow against the security integration you created above. For Anthropic’s general guidance, see Get started with custom connectors using remote MCP.
- In Claude, open Settings → Connectors.
- Click Add custom connector or search for Snowflake in Browse connectors.
- Provide a Name (for example,
Snowflake) and the MCP Server URL: - Add the client ID and secret from the security integration you created.
- Click Add. Claude opens a browser window and prompts you to sign in to Snowflake and approve the OAuth consent screen.
- After approving, the Snowflake tools appear in the connector list and can be used in any Claude conversation.
Note
When configuring the OAuth security integration for Claude, set OAUTH_REDIRECT_URI to the redirect URI shown by Claude during connector setup (typically https://claude.ai/api/mcp/auth_callback for claude.ai and a localhost URI for Claude Desktop). Claude requests the session:role:all scope; the session still uses the user’s DEFAULT_ROLE.
ChatGPT supports remote MCP servers as Connectors in Developer Mode. For OpenAI’s general guidance on adding remote MCP servers, see Remote MCP servers in the OpenAI documentation.
- In ChatGPT, open Settings → Connectors → Advanced, and enable Developer mode.
- Return to Settings → Connectors and click Create.
- Fill in the connector form:
- Name:
Snowflake(or any label). - MCP Server URL:
- Authentication: select OAuth.
- Fill in the client ID and secret from the security integration you created.
- Name:
- Click Create. ChatGPT opens a browser window for you to sign in to Snowflake and approve the OAuth consent screen.
- The Snowflake tools become available in chats that have the connector enabled.
Note
Set OAUTH_REDIRECT_URI on your security integration to the redirect URI ChatGPT displays during connector creation.
Cursor supports remote MCP servers via mcp.json. For the full Cursor configuration reference, see Model Context Protocol in the Cursor documentation. You can also browse for the Snowflake plugin in the Cursor marketplace.
Edit ~/.cursor/mcp.json (global) or <project>/.cursor/mcp.json (project) and add an entry under mcpServers:
After saving, open Cursor Settings → MCP, locate the snowflake server, and click Sign in. Cursor opens a browser window to complete the Snowflake OAuth flow. Once connected, the Snowflake tools appear in Cursor’s tool list.
For any other MCP client that supports remote (HTTP) MCP servers, register the Snowflake-hosted MCP server using your URL:
Network policies for MCP clients¶
If your Snowflake account has network policies enabled, you must allow inbound connections from your MCP client’s outbound IP addresses. When a remote MCP client (such as Claude, ChatGPT, or Cursor) connects to your Snowflake-managed MCP server, the request originates from the client provider’s infrastructure, not from the end user’s browser. If those IP addresses are not permitted by your network policy, the connection will be blocked.
When a network policy blocks the token request, Snowflake can return error: invalid_client from the /oauth/token-request endpoint. That
error is the same response clients see for incorrect credentials or an unsupported authentication method, so check your network policy if
client credentials and authentication method look correct.
To allow an MCP client to reach your Snowflake account, create a network rule that includes the client provider’s outbound IP addresses, then add that rule to your account’s network policy:
Replace the IP addresses with the outbound IPs published by your MCP client provider. For example, Anthropic publishes the outbound IP addresses used by Claude at https://platform.claude.com/docs/en/api/ip-addresses.
Note
This applies to all MCP client providers, not just Claude. Check your provider’s documentation for their outbound IP addresses used for remote MCP connections.
For Snowflake OAuth client authentication at the token endpoint, see Configure Snowflake OAuth for custom clients.
Troubleshoot MCP client connections¶
If your MCP client can’t connect or a tool doesn’t behave as expected, use this table to identify the likely cause:
| Symptom | Likely cause | Recommended check |
|---|---|---|
| OAuth consent or connection fails | The redirect URI doesn’t match the client configuration | Set OAUTH_REDIRECT_URI to the exact callback URI shown by the MCP client. |
| Authentication succeeds, but the MCP server doesn’t connect | The MCP server URL is incomplete | Use the fully qualified database, schema, and MCP server path. |
| The client reports a hostname-related connection failure | The account hostname contains underscores | Replace underscores (_) with hyphens (-) in the account hostname. |
| The session fails to initialize | The user doesn’t have a default warehouse | Set DEFAULT_WAREHOUSE on the user and grant the default role USAGE on that warehouse. |
| The session uses the wrong data access role | The user’s default role isn’t the MCP access role | Set and verify the user’s DEFAULT_ROLE. |
| Tools aren’t visible | The default role doesn’t have access to the MCP server | Grant USAGE on the MCP server to the user’s default role. |
| A visible tool can’t be invoked | The default role is missing an underlying object privilege | Grant the privilege required by the agent, search service, semantic view, function, or procedure. |
| A SaaS client can’t reach a PrivateLink account | The client is using a private endpoint | Use the public MCP server URL and set USE_PRIVATELINK_FOR_AUTHORIZATION_ENDPOINT = TRUE on the OAuth integration. |
| A remote MCP client is blocked by a network policy | The client’s outbound IP addresses aren’t allowed | Add the MCP client provider’s outbound IP addresses to the account network policy. |
Interact with the MCP server using a custom MCP client¶
For information about building a custom MCP client, see Build an MCP client.
Note
The Snowflake MCP server currently only supports tool capabilities.
Discover and invoke tools¶
The MCP clients can discover and invoke tools with tools/list and tools/call requests.
To discover or invoke tools, issue a POST call as shown in the tools/list request:
For the Analyst tool, your client passes messages in the request. The SQL statement is listed in the output. You must pass the name of the tool that you’re invoking in the request in the name parameter.
The following example shows the response:
For Search tool requests, your client can pass the query and the following optional arguments:
- columns
- limit
The search results and request ID are returned in the output. You must pass the name of the tool that you’re invoking in the request as the name parameter.
The following example shows the response:
Limitations¶
Snowflake managed MCP server does not support the following constructs in the MCP protocol: resources, prompts, roots, notifications, version negotiations, life cycle phases, and sampling.
Only non-streaming responses are supported.
Each MCP server supports a maximum of 50 tools. This limit includes all tool types: Cortex Search, Cortex Analyst, Cortex Agents, SQL execution, and custom (generic) tools. If you need more tools, create additional MCP servers. Higher tool counts can degrade tool-selection accuracy.
Tool responses are subject to size limits to prevent LLM context window saturation:
- Generic tools: Responses are truncated at 250 KB.
- SQL execution tool: Responses are truncated at 250 KB.
If a query result exceeds the size limit, the response is truncated. To work around this limit, use narrower queries that return fewer columns or rows.
By default, MCP OAuth sessions use the connecting user’s DEFAULT_ROLE as the primary role.
You can advertise other primary-role scopes with OAUTH_SCOPES_SUPPORTED. Secondary roles are
controlled by the OAuth security integration; the recommended MCP configuration leaves them
disabled (OAUTH_USE_SECONDARY_ROLES = NONE). For details, see
Role behavior in OAuth sessions.
MCP server objects aren’t replicated in failover groups. If you use replication, you must recreate MCP server objects on the secondary account. OAuth security integrations are replicated.