> ## Documentation Index
> Fetch the complete documentation index at: https://lightdash-refactor-full-audit-reorg.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Snowflake Cortex

> Operate your BI layer agentically by pairing Lightdash with Snowflake's Cortex Code agent.

[Cortex Code](https://www.snowflake.com/) is Snowflake's coding agent, with Snowflake-native tools and RBAC governance built in. Pair it with Lightdash and you can operate your BI layer agentically.

For broader guidance on using AI coding agents with Lightdash, see [Editing dashboards with agents](/workflow/edit-dashboards-with-agents).

## Integration options

There are three ways to integrate Cortex with Lightdash:

| Method                          | Best for                                                                                                                                                                               | Auth required   | Where it works                  |
| ------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------- | ------------------------------- |
| [Skills](#skills)               | Operating Lightdash as an expert: building your semantic layer, developing charts and dashboards, shipping [dashboards as code](/workflow/content-as-code), and vibe coding dashboards | None            | Locally (via the Lightdash CLI) |
| [Lightdash MCP](#lightdash-mcp) | Searching your semantic layer and executing queries                                                                                                                                    | Lightdash login | Locally and in Snowsight Cortex |
| [Docs MCP](#docs-mcp)           | Looking up anything in the Lightdash docs                                                                                                                                              | None (public)   | Anywhere                        |

You can use any combination of these together.

## Skills

Skills are the best way to get Cortex operating Lightdash as an expert. They teach the agent how to:

* Build your [semantic layer](/workflow/content-as-code)
* Develop charts and dashboards
* Ship [dashboards as code](/workflow/content-as-code)
* Vibe code dashboards

Skills are powered by the [Lightdash CLI](/workflow/cli/install).

Install skills for Cortex in your project:

```bash theme={null}
lightdash install-skills --agent cortex
```

Or install them globally so they're available across all your projects:

```bash theme={null}
lightdash install-skills --agent cortex --global
```

For more details, see the [Agent skills guide](/workflow/install-agent-skills).

## Lightdash MCP

The [Lightdash MCP](/agents/lightdash-mcp) searches your semantic layer and executes queries, and it works in Snowsight Cortex as well as locally. Add it to Cortex with your instance's MCP URL, replacing `<yourapp>` with your Lightdash instance name:

```bash theme={null}
cortex mcp add lightdash https://<yourapp>.lightdash.cloud/api/v1/mcp
```

## Docs MCP

The [Docs MCP](/agents/lightdash-mcp#lightdash-docs-mcp) is public and needs no login — it lets Cortex look up anything in the Lightdash documentation:

```bash theme={null}
cortex mcp add lightdash-docs https://docs.lightdash.com/mcp
```
