- Cortex Code — Snowflake’s AI coding assistant in Snowsight
- Snowflake Intelligence — Cortex Agents for data exploration and orchestration
Prerequisites
- Snowflake account with
ACCOUNTADMINrole - Prometheux credentials (username, organization, API token)
- MCP Connectors enabled on your account (supports Cortex Code and Cortex Agents)
- Cross-region inference enabled (required if no models are available in your region)
If your Snowflake region doesn’t have LLM models available locally, enable cross-region inference first:Without this, agent creation will fail with a “model not authorized” error.
Setup
Step 1 — Create the API Integration
Run the following SQL in a Snowsight worksheet asACCOUNTADMIN:
Step 2 — Create the External MCP Server
Create a database and schema to hold the MCP server object (or use an existing one):Step 3 — Connect and Authenticate
After creating the MCP server object, it appears in the MCP Connectors page in Snowsight. You need to authenticate once per user:- In Snowsight, go to the MCP Connectors page (or open it from Cortex Code / Snowflake Intelligence)
- Find Prometheux in the list of connectors
- Click Connect — Snowflake will redirect you to the Prometheux OAuth login page
- Enter your credentials:
- Username: Your Prometheux username
- Organization: Your Prometheux organization
- API Token: Your Prometheux authentication token
- Submit the form — Snowflake will receive your session token automatically
Using with Cortex Code
Once connected, Prometheux tools are available in Cortex Code (Snowflake’s AI coding assistant in Snowsight). Interact naturally — Cortex Code will automatically discover and invoke Prometheux tools based on your queries. Example:Using with Snowflake Intelligence
To use the connector with Cortex Agents in Snowflake Intelligence, create an agent that references the MCP server:Alternative Setup via Snowsight UI
You can also add the connector through the Snowsight UI instead of SQL:- Go to AI & ML → Agents → Settings → Tools and Connectors
- Click Add custom
- Select Standard OAuth and fill in:
- Select a database and schema, then click Add
Disconnecting
To disconnect the Prometheux connector:- Go to the MCP Connectors page in Snowsight
- Select the Prometheux connector and click Disconnect
Cleanup
To fully remove the Prometheux integration:Troubleshooting
”Invalid redirect_uri” error
Solution:- This occurs if the Prometheux remote MCP server doesn’t recognize Snowflake’s OAuth callback. Ensure you’re connecting to the latest version of the remote server at
https://api.prometheux.ai/px-remote-mcp-server.
”Model not authorized” error
Solution:- Enable cross-region inference on your account:
- Alternatively, check which models are available in your region and set a specific model in the agent specification instead of
"auto".
Connector shows “Connected” but tools don’t work
Solution:- If the remote MCP server was restarted, session tokens are invalidated. Disconnect and reconnect via the Sources panel in Snowflake Intelligence.
- Verify your Prometheux credentials are still valid.
”Failed to add MCP connector” in the UI
Solution:- Use the SQL-based setup instead. The Snowsight UI may fail silently if the server is temporarily unreachable.
- Ensure the MCP server URL is accessible from Snowflake’s network.
Agent can’t find the MCP server object
Solution:- Verify the fully qualified name matches exactly (e.g.
PROMETHEUX.INTEGRATION.PROMETHEUX_MCP_SERVER). - Ensure the
ACCOUNTADMINrole hasUSAGEon the database and schema.

