Ask Sidecar can query your Snowflake warehouse directly to answer data questions in natural language. This guide walks through the setup.Documentation Index
Fetch the complete documentation index at: https://docs.sidecardata.com/llms.txt
Use this file to discover all available pages before exploring further.
How Snowflake MCP works
Snowflake supports MCP Servers as a native database object. An MCP Server is created once inside a Snowflake database by an admin, and it exposes a read-only SQL execution tool that any authorized Snowflake user can call. The setup has two parts:- Admin (once per org): Create the MCP Server object in Snowflake and verify it in Sidecar. This makes query execution available to your organization.
- Each user: Connect a personal Snowflake Programmatic Access Token (PAT). Queries run under each user’s own Snowflake identity, so existing role-based access controls are respected.
Prerequisites
To complete the admin steps you need:- The Snowflake integration connected in Sidecar
- Account Admin permissions in Sidecar
- The ACCOUNTADMIN role in Snowflake
Admin setup
These steps are performed once per organization.1. Open the Ask Sidecar tab
- In the Sidecar app, go to Integrations > Snowflake.
- Switch to the Ask Sidecar tab.
This tab is only available after Snowflake credentials have been saved on the Connection tab.
2. Choose a database
The MCP Server object will be created inside a Snowflake database. The default isSIDECAR_DATABASE, the same database created during the Snowflake integration setup.
If you’d like to use a different database, enter the name and click Confirm before continuing.
3. Run the setup SQL in Snowflake
Sidecar generates the SQL you need to run. Click the copy button and execute the following in a Snowflake worksheet:<DATABASE> with the database name from Step 2 (e.g., SIDECAR_DATABASE). The Sidecar UI pre-fills this for you.
This SQL does three things:
- Creates an MCP Server object named
SIDECARMCPSERVERwith a single read-only SQL execution tool. - Grants usage on the MCP Server to the
PUBLICrole so all users in your Snowflake account can authenticate against it with their own PAT. - Runs
DESCRIBEto confirm the object was created.
4. Verify the MCP Server
Back in Sidecar, click Verify MCP Server. Sidecar connects to your warehouse and runsDESCRIBE MCP SERVER to confirm the object exists.
Once verified, a green checkmark appears and the per-user token setup section becomes available for all users in your organization.
Per-user setup
Once the admin has created the MCP Server object, each user connects their own Snowflake PAT. This is what allows Ask Sidecar to run queries on your behalf, under your Snowflake identity.5. Generate a Programmatic Access Token (PAT)
- Log in to Snowflake and click your user icon in the bottom left.
- Navigate to Settings > Authentication > Programmatic access tokens.
- Click Generate token, select a validity period, then click Generate.
- Copy the token immediately. It is only shown once.
You may need to update your Snowflake network policy rules to allow connections from Sidecar’s infrastructure.
6. Connect the token in Sidecar
- In the Sidecar app, go to Integrations > Snowflake > Ask Sidecar tab.
- Paste your PAT into the Programmatic Access Token field.
- Click Connect.
Managing your connection
Disconnect your token
- Go to Integrations > Snowflake > Ask Sidecar tab.
- Click Disconnect.
Rotate your token
Disconnect the current token, generate a new one in Snowflake, and connect the new token.How queries are executed
When you ask a data question, Ask Sidecar’s agent decides whether a Snowflake query would help answer it. If so:- The agent writes a SQL query. Only
SELECT,WITH,SHOW, andDESCRIBEstatements are allowed. - The query runs against your Snowflake warehouse using your PAT. Your Snowflake role determines what data is accessible.
- Results come back to the agent, which interprets and summarizes them in the chat.
read_only: true in Snowflake, and Sidecar enforces this independently at the proxy layer.
Troubleshooting
'Your admin needs to enable Snowflake MCP' message
'Your admin needs to enable Snowflake MCP' message
The MCP Server object has not been created in Snowflake yet, or it hasn’t been verified in Sidecar. Ask your Sidecar admin to complete the admin setup steps above.
Verify MCP Server fails
Verify MCP Server fails
Confirm you ran the setup SQL as ACCOUNTADMIN and that the database name in the SQL matches the name shown in Sidecar. The
DESCRIBE MCP SERVER statement at the end of the SQL should return results without errors. If it doesn’t, the MCP Server object was not created.PAT connection fails
PAT connection fails
Make sure your token is a Programmatic Access Token (from Settings > Authentication > Programmatic access tokens), not an OAuth token or password. Check that your Snowflake network policy allows connections from Sidecar. If the token was copied incorrectly, generate a new one since PATs cannot be retrieved after creation.
Queries return no results or access errors
Queries return no results or access errors
Queries run under your Snowflake identity. If you can’t see certain tables in Ask Sidecar, check that your Snowflake role has SELECT access to those tables.