> ## Documentation Index
> Fetch the complete documentation index at: https://lightdash-mintlify-cccf65ca.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](/guides/developer/editing-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](/guides/developer/dashboards-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](/guides/developer/dashboards-as-code)
* Develop charts and dashboards
* Ship [dashboards as code](/guides/developer/dashboards-as-code)
* Vibe code dashboards

Skills are powered by the [Lightdash CLI](/guides/cli/how-to-install-the-lightdash-cli).

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](/guides/developer/agent-skills).

## Lightdash MCP

The [Lightdash MCP](/references/integrations/lightdash-mcp) is best for searching through your semantic layer and executing queries. Unlike skills, the MCP also works in Snowsight Cortex — not just locally. It requires you to log in to Lightdash.

Add the Lightdash MCP to Cortex:

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

Replace `<yourapp>` with your Lightdash instance name.

## Docs MCP

The [Docs MCP](/references/integrations/lightdash-mcp#lightdash-docs-mcp) is public and requires no login. It lets Cortex look up anything in the Lightdash documentation — generally very useful alongside the other integrations.

Add the Docs MCP to Cortex:

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