---
title: "Give Snowflake Cortex Code CLI Access to the Web via Bright Data (MCP + Skills)"
slug: snowflake-cortex-code-cli-with-bright-data
date: 2026-06-07T12:23:22+00:00
modified: 2026-06-07T12:23:27+00:00
permalink: https://brightdata.com/blog/ai/snowflake-cortex-code-cli-with-bright-data
type: blog
---

[ Blog ](https://brightdata.com/blog "Blog") / [AI](https://brightdata.com/blog/ai)







 [AI](https://brightdata.com/blog/ai)

# Give Snowflake Cortex Code CLI Access to the Web via Bright Data (MCP + Skills)

Discover how Bright Data enhances Snowflake Cortex Code CLI with web search and scraping via MCP, delivering more accurate enterprise-ready outputs.

 15 min read





 [ ](https://brightdata.com/blog/authors/antonello-zanini)

 [Antonello Zanini

Technical Writer

 ](https://brightdata.com/blog/authors/antonello-zanini)





 ![Snowflake Cortex Code CLI with Bright Data](https://media.brightdata.com/2026/06/Snowflake-Cortex-Code-CLI-with-Bright-Data.png)





In this article, you will learn:

- What Snowflake Cortex Code CLI is and what it offers.
- Why extending it with web access leads to more accurate and enterprise-ready outputs.
- How Bright Data enhances Cortex Code CLI with web search, scraping, and discovery capabilities.
- How to connect Bright Data to Cortex Code CLI through MCP.
- How to equip Cortex Code CLI with Bright Data product knowledge using agent skills.
- What the Bright Data + Cortex Code CLI integration enables, demonstrated through a real-world example.

Let’s dive in!

### What Is Snowflake Cortex Code CLI?

[Snowflake Cortex Code CLI](https://www.snowflake.com/en/product/features/cortex-code/) is an AI-powered command-line interface that lets you interact with Snowflake data stacks using natural language. Instead of manually writing SQL, configuring pipelines, or navigating complex data systems, you can ask for tasks conversationally.

It combines awareness of your Snowflake environment with local development access, making it useful for data engineering, analytics, machine learning, governance, and application development.

The main features that it provides are:

- **Natural language orchestration**: Explore databases, generate SQL, optimize queries, debug workflows, and automate data tasks through plain-English prompts.
- **Deep Snowflake awareness**: Understands Snowflake schemas, tables, roles, catalogs, lineage, permissions, and semantic context to deliver environment-aware responses.
- **CLI and local execution**: Runs directly in a terminal with access to local repositories, shell commands, files, and Git workflows.
- **AI and ML workflows**: Helps build ML pipelines, [Snowflake Intelligence agents](https://www.snowflake.com/en/product/snowflake-intelligence/), and analytics applications.
- **Extensibility via MCP and ACP**: Connects to external tools, APIs, GitHub, Jira, and IDEs through open protocols.
- **Skills and customization**: Supports reusable agent skills, organizational standards, hooks, and specialized workflows.
- **Enterprise-ready governance**: Respects RBAC permissions, centralized controls, sandboxing, and model selection for security and compliance.

For more information, [check out the docs](https://docs.snowflake.com/en/user-guide/cortex-code/cortex-code-cli).

### Why Cortex Code CLI Needs Web Access

Cortex Code CLI can deeply understand Snowflake semantics and data structures. Still, its reasoning is limited by its pre-trained knowledge, which is typical of all large language models. This comes from the fact that [LLMs are trained on static datasets](/blog/web-data/llm-training-data). Thus, they cannot inherently keep up with rapidly changing external information.

In enterprise environments, an LLM’s limited and potentially outdated knowledge can represent a serious risk. Regulatory guidance evolves, security practices change, and internal data landscapes shift continuously. Relying only on outdated insights can lead to incorrect data governance and management decisions.

This is where integrating fresh, external intelligence from the web becomes essential. By connecting Cortex Code CLI to a [web data infrastructure provider like Bright Data](/), the underlying AI agent gains live web connectivity for grounded, up-to-date information and analysis.

What makes Bright Data integration stand out is its [global infrastructure of 400M+ residential IPs](/proxy-types/residential-proxies). It delivers enterprise-grade reliability, with support for unlimited concurrency, massive scalability, and SLA-backed uptime of 99.99%.

### How Bright Data Supports Cortex Code CLI

Bright Data supports Cortex Code CLI through two integrations:

- [**Bright Data MCP**](/ai/mcp-server): MCP server exposing 70+ tools for web search, scraping, discovery, and browser automation.
- [**Bright Data skills**](https://docs.brightdata.com/ai/for-agents/skills): Agent Skills that help the Cortex Code CLI agent understand when and how to use Bright Data products effectively.

**Important**: These two integrations are not alternatives. They work best together. In fact, one of the Bright Data skills is specifically designed to guide the optimal use of Bright Data MCP tools.

#### Bright Data MCP

The Bright Data MCP exposes over 70 tools. Under the hood, these interact with [Bright Data’s API-based products](/products).

Even in Rapid mode (tier with [5,000/requests a month for free](/blog/ai/web-mcp-free-tier)), the available tools include:

**Tool****Description**`search_engine` + batch version for parallel usageRetrieve Google, Bing, or Yandex results in structured JSON or Markdown`scrape_as_markdown` + batch version for parallel usageConvert any web page into clean Markdown while handling anti-bot protection bypass`discover`AI-powered search returning ranked, relevant web resultsThen, \[Pro mode\](https://github.com/brightdata/brightdata-mcp?tab=readme-ov-file#-pricing, modes) unlocks advanced capabilities for structured data extraction from platforms like Amazon, LinkedIn, Yahoo Finance, YouTube, Zillow, Google Maps, and 40+ others.

#### Bright Data Skills

The [Bright Data skills](https://github.com/brightdata/skills) include:

**Skill****Description**`agent-onboarding`Teaches agents how to access and correctly use Bright Data tools across MCP, CLI, and APIs.`search`Enables AI to retrieve real-time search engine results as structured, machine-readable web intelligence.`scrape`Enables extraction of clean, readable webpage content with automated anti-bot handling.`data-feeds`Provides continuously updated structured datasets from 40+ major websites via scheduled extraction.`bright-data-mcp`Gives AI access to 60+ integrated tools for search, scraping, extraction, and browser automation.`bright-data-best-practices`Teaches correct usage patterns for Bright Data APIs, tools, and integration strategies.`brightdata-proxy`Tells AI how to configure and generate proxy-based request routing across global IP networks.`brightdata-cli`Enables AI to operate Bright Data CLI for scraping, proxies, datasets, and account management.`competitive-intel`Helps AI generate real-time market and competitor insights from live web data.### Common Steps

In the next two chapters, you will see how to integrate Bright Data into Cortex Code CLI via MCP and Agent Skills, respectively. For now, let’s focus on a few common setup steps required before we get started.

#### Prerequisites

To follow this tutorial, make sure you have:

- [Node.js 22+ installed locally](https://nodejs.org/en/download).
- A [Snowflake account](https://signup.snowflake.com/) with Cortex Code enabled (a free trial is enough).
- A [Bright Data account](/?hs_signup=1) with an API key configured. Follow the official guide to [generate your Bright Data API key](https://docs.brightdata.com/api-reference/authentication#how-do-i-generate-a-new-api-key).

#### Install Cortex Code CLI

To [install Cortex Code CLI](https://docs.snowflake.com/en/user-guide/cortex-code/cortex-code-cli) on macOS, Linux, or WSL, run the following command:

```none
curl -LsS https://ai.snowflake.com/static/cc-scripts/install.sh | sh
```

This downloads and runs the installation script. The output will be something like:

Similarly, to install Cortex Code CLI on Windows, execute this command in PowerShell:

```none
irm https://ai.snowflake.com/static/cc-scripts/install.ps1 | iex
```

The `cortex` command should now be available globally on your system. Great!

#### Authenticate and Configure Cortex Code CLI

Launch Cortex Code CLI for the first time by running:

```none
cortex
```

You will be prompted to choose a theme and to accept the terms and conditions. After that, you will be guided through the authentication flow to connect your Snowflake account:

Select your preferred authentication method and ensure you connect to a Snowflake account with Cortex Code enabled.

After successful authentication, you will have access to the Cortex Code TUI:

Next, configure Cortex Code CLI based on your preferences (e.g., run the [`/model`](https://docs.snowflake.com/en/user-guide/cortex-code/cli-reference#model-and-mode) command to select the LLM model you want to use).

Cortex Code CLI is now installed and configured locally. Well done!

#### Verify Cortex Code CLI Works

To test that the Cortex Code CLI is connected to your Snowflake account, launch a command like this:

```none
/sql SELECT C_FIRST_NAME AS first_name, C_LAST_NAME AS surname, C_EMAIL_ADDRESS AS email, C_CUSTOMER_ID AS customer_id FROM SNOWFLAKE_SAMPLE_DATA.TPCDS_SF10TCL.CUSTOMER LIMIT 10;
```

That corresponds to running the following query in your Snowflake database:

```none
SELECT
    C_FIRST_NAME AS first_name,
    C_LAST_NAME AS surname,
    C_EMAIL_ADDRESS AS email,
    C_CUSTOMER_ID AS customer_id
FROM SNOWFLAKE_SAMPLE_DATA.TPCDS_SF10TCL.CUSTOMER
LIMIT 10;
```

The `/sql` command above targets the default [`SNOWFLAKE_SAMPLE_DATA.TPCDS_SF10TCL`](https://docs.snowflake.com/en/user-guide/sample-data-tpcds) schema available in most Snowflake accounts after setup. In detail, it fetches data from the `CUSTOMER` table:

The expected result in the CLI is:

The outcome confirms that the Cortex Code CLI is successfully connected to your Snowflake account. Excellent!

### Connect Bright Data to Cortex Code CLI via the Bright Data MCP

In this section, you will be guided through setting up the Bright Data MCP in Cortex Code.

#### Prerequisites

To follow along more easily, it is recommended that you have:

- Basic knowledge of [how MCP works](https://modelcontextprotocol.io/docs/learn/architecture).
- Familiarity with the [tools exposed by the Bright Data MCP](https://docs.brightdata.com/ai/mcp-server/tools).

**Note**: The prerequisites outlined in the “Common Steps” chapter also apply here.

#### Step #1: Get Started with Bright Data MCP

Before connecting Bright Data MCP to Cortex Code, ensure the MCP server can run on your machine. For more information, consider [exploring the Bright Data MCP docs](https://docs.brightdata.com/ai/mcp-server/local/quickstart).

Start by installing the Bright Data MCP globally via the [`@brightdata/mcp`](https://www.npmjs.com/package/@brightdata/mcp) package:

```none
npm install -g @brightdata/mcp
```

In Linux/macOS/WSL, check that the MCP server starts with:

```none
API_TOKEN="<YOUR_BRIGHT_DATA_API>" npx -y @brightdata/mcp
```

Or, equivalently, in PowerShell:

```none
$Env:API_TOKEN="<YOUR_BRIGHT_DATA_API>"; npx -y @brightdata/mcp
```

Replace the `<YOUR_BRIGHT_DATA_API>` placeholder with your actual Bright Data API key. This command sets the required `API_TOKEN` environment variable and starts the Bright Data MCP server locally.

If everything works as expected, you should receive these logs:

On first run, the `@brightdata/mcp` package sets up two APIs in your Bright Data account:

- `mcp_unlocker`: To connect to the Bright Data [Web Unlocker API](/products/web-unlocker) (and [SERP API](/products/serp-api)).
- `mcp_browser`: To interact with the Bright Data [Browser API](/products/scraping-browser).

These two APIs power the 70+ tools available in Bright Data MCP. Remember that you can also configure custom API names, [as described in the official repository](https://github.com/brightdata/brightdata-mcp?tab=readme-ov-file#advanced-configuration).

To verify that the APIs were created, go to the “Web Access &gt; Web Access API” section in the Bright Data control panel. You should see the two APIs listed in the “My APIs” table:

Remember that on the [Bright Data MCP free tier](/blog/ai/web-mcp-free-tier) (Rapid mode), you have access to a limited set of tools.

To unlock all 70+ tools, you must [enable Pro mode](https://docs.brightdata.com/ai/mcp-server/local/advanced#mcp-server-modes). To do so, set the `PRO_MODE="true"` environment variable:

```none
API_TOKEN="<YOUR_BRIGHT_DATA_API>" PRO_MODE="true" npx -y @brightdata/mcp
```

Or, on Windows:

```none
$Env:API_TOKEN="<YOUR_BRIGHT_DATA_API>"; $Env:PRO_MODE="true"; npx -y @brightdata/mcp
```

**Note**: Pro mode is not included in the free tier and \[incurs additional charges\](https://github.com/brightdata/brightdata-mcp?tab=readme-ov-file#-pricing, modes).

Cool! You just verified that the Bright Data MCP runs on your machine. Next, you will configure it in Cortex Code CLI.

#### Step #2: Configure the Bright Data MCP in Cortex Code CLI

[Cortex Code CLI supports MCP configuration](https://docs.snowflake.com/en/user-guide/cortex-code/cortex-code-mcp) either via the dedicated `cortex mcp` CLI command or by manually editing the configuration file at `~/.snowflake/cortex/mcp.json` (`%USERPROFILE%\.snowflake\cortex\mcp.json` on Windows).

To configure the Bright Data MCP `stdio` setup using the CLI, run:

```none
cortex mcp add bright-data npx -y "@brightdata/mcp" -e API_TOKEN=<YOUR_BRIGHT_DATA_API_KEY> -e PRO_MODE=true
```

The output will be:

```none
MCP server 'bright-data' added. (stdio)
```

The [`cortex mcp`](https://docs.snowflake.com/en/user-guide/cortex-code/cortex-code-mcp#adding-a-server) command above configures the `bright-data` MCP server to be launched via `npx -y @brightdata/mcp`, while setting these envs:

- `API_TOKEN` (required): Your Bright Data API key.
- `PRO_MODE` (optional): Set to `true` to enable Pro features. Remove `-e PRO_MODE=true` to run the Bright Data MCP in Rapid (free) mode.

Now, open the configuration file at `~/.snowflake/cortex/mcp.json` (`%USERPROFILE%\.snowflake\cortex\mcp.json` on Windows). It should contain the following:

```none
{
  "mcpServers": {
    "bright-data": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@brightdata/mcp"
      ],
      "env": {
        "API_TOKEN": "<YOUR_BRIGHT_DATA_API_KEY>",
        "PRO_MODE": "true"
      }
    }
  }
}
```

**Pro tip**: You can configure Bright Data MCP in Cortex Code CLI directly by editing the configuration file shown above.

Cortex Code CLI will now automatically launch the local Bright Data MCP server using the specified `npx` command and connect to it. Perfect!

#### Step #3: Verify Bright Data MCP Connection

Relaunch Cortex Code CLI by closing it and starting it again with:

```none
cortex
```

Then run the `/mcp` command inside the CLI to access the “MCP Manager” view. You should notice the `bright-data` MCP server listed:

Press Enter to inspect it, which allows you to explore all exposed tools:

The response will display all available MCP tools. In Pro mode, you will see 70+ Bright Data MCP tools. Instead, in Rapid mode, only the limited set of free tools will be available.

This confirms that the Bright Data MCP is correctly exposing tools to Cortex Code CLI. Later in this tutorial, you will see how to use Bright Data MCP together with the Bright Data skills.

### Add the Bright Data Skills to Cortex Code CLI

Here, you will learn how to add Bright Data skills to Cortex Code using [Vercel’s `skills` tool](https://vercel.com/changelog/introducing-skills-the-open-agent-skills-ecosystem).

#### Prerequisites

Make sure you have:

- The [Bright Data CLI installed and set up locally](https://docs.brightdata.com/cli/overview) (this is the main prerequisite for the Bright Data skills). For a quick setup of the Bright Data CLI, refer to the “[Bright Data CLI: Installation &amp; Setup](https://docs.brightdata.com/cli/installation)” guide. Otherwise, consult the [dedicated blog post](/blog/ai/bright-data-cli).
- A basic understanding of [what the Bright Data skills provide](https://docs.brightdata.com/ai/for-agents/skills).

Some knowledge of the [Agent Skills standard](https://agentskills.io/home) and familiarity with [Vercel’s `skills` CLI tool](https://github.com/vercel-labs/skills) will also be helpful.

**Quick manual setup**: If you prefer a manual approach, start by [cloning the Bright Data skills repository](https://github.com/brightdata/skills). Then, copy the skills into the `.snowflake\cortex\skills` directory (`%USERPROFILE%\.snowflake\cortex\skills` on Windows):

```none
git clone https://github.com/brightdata/skills
cp -r skills/skills/* ~/.snowflake/cortex/skills
```

Otherwise, follow the steps below!

#### Step #1: Install the Bright Data Skills

To add the Bright Data Skills in Snowflake Cortex Code CLI via `skills`, run:

```none
npx skills add brightdata/skills -a cortex
```

This command installs the [`skills`](https://www.npmjs.com/package/skills) npm package and launches the setup process, which will:

- Download the Bright Data skills from the [Agent Skills Directory](https://skills.sh/brightdata).
- Configure them for use globally or in your local project.

You will be prompted to choose which skills to install:

To install all of them, use the spacebar to toggle each skill, then press Enter.

Next, you will have to choose the installation scope. The Bright Data MCP integration was configured globally, so you should install the Bright Data skills globally as well. For that reason, select the “Global” option and press Enter:

You will be shown the “Installation Summary” and “Security Risk Assessment” sections. Review both carefully and press Enter to confirm. Finally, you will get a confirmation message for the installation:

The Bright Data skills will be added to the `~/.snowflake/cortex/skills` directory. Awesome!

#### Step #2: Confirm the Skills Are Available

Launch Cortex Code CLI and run the following command:

```none
/skill
```

That will list all available skills. Keep in mind that [Snowflake Cortex Code CLI comes with several built-in skills](https://docs.snowflake.com/en/user-guide/cortex-code/bundled-skills). However, you should see the Bright Data skills added before:

**Optional**: If you have not yet configured the Bright Data CLI, run the onboarding skill as a command within the Cortex Code CLI with:

```none
/agent-onboarding
```

This special skill will guide you through the process of setting up everything required for the other Bright Data skills.

Mission accomplished! In the next chapter, you will see how to make full use of the Bright Data MCP and skills within Cortex Code CLI.

### Cortex Code CLI + Bright Data: Next-Level Snowflake Database Management Experience

To experience how powerful the Cortex Code CLI + Bright Data setup is, consider a practical task that requires web grounding.

A common challenge when working with databases is ensuring data is stored and governed in compliance with privacy and security regulations. This becomes especially important when handling [PII (Personally Identifiable Information)](https://www.dol.gov/general/ppii), where poor governance can lead to data leaks and even regulatory fines.

Now, imagine you want a contextual report with actionable recommendations for securing sensitive data in your specific Snowflake schema. Ideally, the agent should understand your database structure, identify potential PII, search the web for trusted regulatory guidance and Snowflake best practices, and combine everything into an implementation-ready report.

Achieve that with a prompt like:

```none
Search for tables containing PII data in the SNOWFLAKE_SAMPLE_DATA.TPCDS_SF10TCL schema. Then search online for regulatory guidance on PII data management and Snowflake best practices for handling PII. Scrape the most relevant sources in Markdown. Produce a clear, actionable report explaining how to properly identify, tag, secure, and govern PII data within that schema.
```

Execute it in Cortex Code CLI, and this is the type of result you should expect:

This is what happened:

1. The agent performs schema discovery on the target Snowflake schema to understand its structure and data.
2. Concurrently, it calls the `search_engine_batch` tool from the Bright Data MCP (backed by the [Bright Data SERP API](/products/serp-api)) to run multiple Google searches for Snowflake PII management best practices and official privacy regulations.
3. It selects the most relevant sources and scrapes them using the Bright Data MCP `scrape_as_markdown` tool (via [Bright Data’s Web Unlocker API](/products/web-unlocker)).
4. It combines the retrieved information into a contextual, actionable report tailored to your schema.

In particular, this is the generated report:

The resulting report provides a complete PII governance assessment for the `SNOWFLAKE_SAMPLE_DATA.TPCDS_SF10TCL` schema. It highlights potentially sensitive columns across six tables, classifies their risk level, and maps them to relevant regulations such as GDPR, CCPA/CPRA, HIPAA, FCRA, and PCI-DSS.

The report also includes actionable Snowflake implementation guidance for PII detection, tagging, masking, RBAC, auditing, and monitoring. Recommendations are grounded in scraped sources from the Snowflake documentation and best-practice materials, as well as GDPR.eu and other official regulatory websites.

Et voilà! This example proves the value of integrating Bright Data’s web search, scraping, and discovery capabilities into your Snowflake Cortex Code CLI setup. By having access to the web, the Cortex Code CLI agent can now produce more reliable, contextual, and enterprise-ready results across a [wide range of use cases](/use-cases).

### Conclusion

In this blog post, you learned what Cortex Code CLI is and what capabilities it offers. Specifically, you saw how to extend it by connecting with Bright Data through the [Bright Data MCP](https://docs.brightdata.com/ai/mcp-server/overview) and its [agent skills](https://docs.brightdata.com/ai/for-agents/skills).

By adding Bright Data, the Cortex Code CLI AI agent gains web access for grounding and research. That enables enrichment and deeper analysis of your Snowflake data. For even more advanced workflows, explore the [full range of AI-ready services in Bright Data’s ecosystem](/ai).

Sign up for a Bright Data account today and start exploring our AI-powered web data tools!



Contact usStart free trial

No credit card required











 [ ](https://www.linkedin.com/in/antonello-zanini/)

Antonello Zanini

 Technical Writer



  5.5 years experience



Antonello Zanini is a technical writer, editor, and software engineer with 5M+ views. Expert in technical content strategy, web development, and project management.



Expertise

  Web Development   Web Scraping   AI Integration



 [ View all articles ](https://brightdata.com/blog/authors/antonello-zanini)











 Table of Contents







Data for AI

Supercharge your AI with instant and reliable access to web data. No blockers. No hassle.

Talk to an expert

Bright Data MCP

Get started with Bright Data’s Web MCP Server today with 5000 free monthly requests and unlock your AI’s full potential.

Start free now







 [ ](https://news.ycombinator.com/submitlink?t=Give+Snowflake+Cortex+Code+CLI+Access+to+the+Web+via+Bright+Data+%28MCP+%2B+Skills%29&u=https://brightdata.com/blog/ai/snowflake-cortex-code-cli-with-bright-data) [ ](https://www.linkedin.com/shareArticle?mini=true&title=Give+Snowflake+Cortex+Code+CLI+Access+to+the+Web+via+Bright+Data+%28MCP+%2B+Skills%29&url=https://brightdata.com/blog/ai/snowflake-cortex-code-cli-with-bright-data) [ ](http://www.reddit.com/submit?title=Give+Snowflake+Cortex+Code+CLI+Access+to+the+Web+via+Bright+Data+%28MCP+%2B+Skills%29&url=https://brightdata.com/blog/ai/snowflake-cortex-code-cli-with-bright-data)







##  You might also be interested in

 [ ](https://brightdata.com/blog/ai/openhuman-with-bright-data "Production-Ready Web Access in OpenHuman Through the Bright Data CLI")

 [AI





Antonello Zanini

Technical Writer





### Production-Ready Web Access in OpenHuman Through the Bright Data CLI

Integrate Bright Data CLI with OpenHuman to enable production-ready web access and data collection for AI agents.



 09-Sep-2026

 12 min read

 ](https://brightdata.com/blog/ai/openhuman-with-bright-data)

 [ ](https://brightdata.com/blog/ai/minimax-m3-with-bright-data "Giving self-hosted MiniMax M3 agents live web access with Bright Data")

 [AI





Satyam Tripathi

Technical Writer





### Giving self-hosted MiniMax M3 agents live web access with Bright Data

Self-hosted MiniMax M3 agents get live web access using Bright Data’s search and scraping tools. Bypass blocks and CAPTCHAs.



 09-Sep-2026

 54 min read

 ](https://brightdata.com/blog/ai/minimax-m3-with-bright-data)

 [ ](https://brightdata.com/blog/web-data/multimodal-web-scraping-with-minimax "Multimodal Web Scraping with MiniMax")

 [Web Data





Antonello Zanini

Technical Writer





### Multimodal Web Scraping with MiniMax

Pair Bright Data Web Unlocker with MiniMax M3 vision to extract structured data from images and web page screenshots.



 09-Sep-2026

 4 min read

 ](https://brightdata.com/blog/web-data/multimodal-web-scraping-with-minimax)
