Connect an AI Assistant to Astrato via MCP
You can let an AI assistant answer questions from your data and work with your semantic layer — ask it a question about your numbers, ask it what’s in your model, have it search for a measure, or ask it to build one for you. It works on your behalf, with your permissions, on your organisation’s data.
Connecting to more than one tenant or workspace? If you’re a partner who connects to several tenants or workspaces, each one needs its own unique MCP address, so the assistant can tell them apart. Add a type value for each, for example https://app.astrato.io/mcp?type=CustomerABC. Use that address wherever the steps below say to enter your Astrato address.
Before you start:
- This isn’t switched on everywhere yet, and it’s still in preview. Run the check below before you set anything up.
- To ask data questions you need an Astrato account that can see at least one published semantic layer, because the assistant answers data questions from published layers only. To see which layers you have, open Data & AI → Semantic Layers — see Find a semantic layer. A layer that has never been published needs publishing first.
Check that MCP is switched on
Section titled “Check that MCP is switched on”Astrato has no setting you can look at to see whether this is enabled, so test the address instead.
Step 1: In your web browser, open your Astrato address followed by /mcp — for most organisations https://app.astrato.io/mcp. If your company uses its own Astrato address, use that instead.
Step 2: Read the response.
- If it reads
{"error":"MCP is disabled"}, it isn’t switched on for your environment. Astrato switches it on, so ask for it, then try again: Check which preview features you have lists the ways to ask. - If it reads
{"error":"MCP authentication required"}, it is switched on. That is expected, because your browser isn’t an assistant that can sign in. - If it shows anything else, such as a “page not found” or server error, the check is inconclusive. Make sure you typed your Astrato address correctly, then try again, or contact Astrato support.
Find your assistant below
Section titled “Find your assistant below”These assistants are supported with Astrato. Whichever you use, the address is the same — your Astrato address followed by /mcp, which for most organisations is https://app.astrato.io/mcp. If your company uses its own Astrato address, use that instead.
For developer settings, personal access tokens and the full tool list, see the MCP overview.
Claude
Section titled “Claude”Works on claude.ai and in the desktop app. Both are set up the same way.
Before you start: which Claude plans can add connectors, and who in a Claude organisation may add them, is set by Anthropic and can change. On a Team or Enterprise plan, an organisation owner may have to add or allow Astrato for everyone before members can connect it. If Connectors is missing from your settings, or Discover doesn’t offer Astrato, ask your Claude organisation owner, and check Anthropic’s current guidance on connectors.
Step 1: Add the Astrato connector from the marketplace:
- Organisation admins: open Organisation settings and go to Connectors.
- Everyone else: open Settings and go to Connectors.
In either place, select Discover, search for Astrato, and select Add.
Step 2: Claude opens Astrato in your browser. Sign in to Astrato if it asks. Astrato then shows its Authorize access screen:
- Your account — the Astrato account you are signed in as. If it is the wrong one, sign out of Astrato in that browser and start again.
- Application — the assistant asking for access, here Claude. Technical details shows its client ID and where Astrato will send you back to.
- Requested access — the permissions it is asking for. What you’re approving sets out all six. To answer data questions, the list must include Execute queries against the datasource and get results, which is the Query data permission.

Step 3: Select Approve. Deny cancels the connection and gives Claude nothing.
Result: Claude can now reach your semantic layers. Ask it to list them as a first test.
Skills are separate. The connector gives Claude the Astrato tools, not the workflow skills. To add the skills, see Astrato skills.

You’re not handing over a password. You sign in to Astrato itself, and the assistant only ever receives a limited pass tied to your own account and organisation. You can withdraw it later without changing your password.
ChatGPT
Section titled “ChatGPT”ChatGPT calls these plugins, and Astrato isn’t one OpenAI has reviewed — so you add it yourself, and ChatGPT shows warnings along the way. Those warnings are about custom plugins in general, not about Astrato in particular, but read them before you agree.
Before you start: you need a ChatGPT plan and workspace settings that allow custom plugins. OpenAI changes which plans can add a custom MCP server, and where, so if a step below doesn’t match what you see, check OpenAI’s current guidance. If your organisation has a policy on connecting AI tools to company data, check it first — this gives ChatGPT the ability to edit and publish your semantic layer.
Step 1: Select your profile picture and open Settings.
Step 2: Go to Plugins, then Developer mode.

Step 3: Turn Developer mode on. ChatGPT marks this elevated risk, because it lets you add plugins OpenAI hasn’t checked.

Step 4: Go back to Browse plugins and select + to add one.

Step 5: Fill in the New Plugin panel:
- Name — Astrato
- Connection — leave it on Server URL and enter
https://app.astrato.io/mcp - Authentication — OAuth
Then tick I understand and want to continue and select Create.

Step 6: Add Astrato to ChatGPT, and sign in to Astrato when it asks.
Step 7: Astrato shows the same Authorize access screen as in the Claude steps. It names ChatGPT, shows which Astrato account you’re connecting, and lists the permissions it is asking for — What you’re approving sets out all six. Select Approve.
Result: Astrato appears under your installed plugins. Ask ChatGPT to list your semantic layers as a first test — you’ll see it call the Astrato tool and come back with your layers by name.

About those warnings. OpenAI shows them for any plugin it hasn’t reviewed, and they’re worth taking seriously in general — a plugin you don’t recognise really can act on your data. What you’re agreeing to here is the access shown on Astrato’s own approval screen, and nothing more. You can remove the plugin at any time.
Visual Studio Code
Section titled “Visual Studio Code”Visual Studio Code is Microsoft’s free code editor, with an AI assistant built in. Connecting Astrato lets that assistant work with your semantic layer while you’re in the editor. You add it through the command palette — there’s no configuration file to edit.
Step 1: Open Visual Studio Code and press Cmd+Shift+P (Ctrl+Shift+P on Windows) to bring up the command palette. Start typing and select MCP: Add Server…

Step 2: Select HTTP.

Step 3: Enter your Astrato address followed by /mcp — for most organisations https://app.astrato.io/mcp — and press Enter.

Step 4: Visual Studio Code asks whether the Astrato server may sign you in. Select Allow.

Step 5: It then asks to open Astrato in your browser. Select Open.

Step 6: Astrato shows the same Authorize access screen as in the Claude steps. It names Visual Studio Code, shows which Astrato account you’re connecting, and lists the permissions it is asking for — What you’re approving sets out all six. Select Approve.
Result: Astrato is available to the assistant in the Chat panel. Ask it to list your semantic layers as a first test — you’ll see it call the Astrato tools and come back with your layers by name.

Claude Code
Section titled “Claude Code”If you’ve already connected Astrato in Claude, Claude Code has it too — there’s nothing extra to set up. Open Claude Code and ask it to list your semantic layers; you’ll see it call the Astrato tools and answer.
Using Claude Code without a Claude account? Add Astrato from the command line with one of the two routes below. Use only one, so Claude Code doesn’t hold two Astrato connections.
Personal access token: create a token and put it in an environment variable named ASTRATO_PAT, for example in your shell profile or your system’s secret store, so it never appears on the command line. Then add Astrato with a header that refers to the variable:
claude mcp add --transport http --scope user astrato https://app.astrato.io/mcp --header 'Authorization: Bearer ${ASTRATO_PAT}'Keep the single quotes. They stop your shell filling in the token, so Claude Code saves ${ASTRATO_PAT} itself and reads the variable each time it starts. --scope user makes Astrato available in every project on your computer. Start Claude Code from a terminal where ASTRATO_PAT is set. When the token expires, put the new one in the same variable; the command doesn’t need running again. This route needs no browser sign-in.
Sign in with your browser: ask your Astrato contact for a client ID and a callback port, then run:
claude mcp add --transport http --client-id YOUR-CLIENT-ID --callback-port YOUR-PORT astrato https://app.astrato.io/mcpFor this route, start Claude Code, type /mcp, pick astrato, and choose Authenticate.
Check it worked with claude mcp list — Astrato should appear — then ask Claude Code to list your semantic layers. If you add Astrato in Claude as well as on the command line, remove the extra connection with claude mcp remove astrato, or tell Claude which one to use.
OpenAI Codex
Section titled “OpenAI Codex”Codex builds the connection for you. You give it the Astrato address and its Plugin Creator does the rest — there’s no configuration to write.
Step 1: Open Codex, go to Plugins, and select Add.

Step 2: Select create plugin.

Step 3: A chat opens with a Plugin Creator prompt waiting to be finished. Paste your Astrato address followed by /mcp — for most organisations https://app.astrato.io/mcp — and send it.

Step 4: Codex builds and checks the plugin, which takes a minute or two. When it’s done, select View astrato.

Step 5: Select Install plugin. Codex installs it, asks you to sign in to Astrato, and opens a chat ready to use it.

Result: Astrato is available in Codex. Ask it to list your semantic layers as a first test.

Snowflake Cortex Code
Section titled “Snowflake Cortex Code”Cortex Code is Snowflake’s own coding assistant — you may also hear it called CoCo. Connecting it works much like Visual Studio Code: you give it the address, and it handles sign-in itself.
Step 1: Open Cortex Code, go to Settings → MCP → MCP Connectors, and select + New.
Step 2: Fill in the form — Server Name: Astrato. Server Type: Remote (HTTP). Server URL: your Astrato address followed by /mcp, for most organisations https://app.astrato.io/mcp. Leave Headers and Environment Variables empty. Select Save.

Step 3: Cortex Code asks whether it may authenticate. Select Allow.

Step 4: Sign in to Astrato when it asks — the same sign-in step as Claude.
Result: Astrato appears in your MCP Connectors list, switched on, with its tools ready to use for reading, editing and versioning your semantic layer.

Install the Astrato skills for everyone (optional). The Astrato skills teach Cortex Code the Astrato workflows. Cortex Code Desktop loads skills from your own folders, from GitHub and from Snowflake stages. Cortex Code keeps the registration and source settings for your skill folders in ~/.snowflake/cortex/skills.json; the skill files stay in the folder you register. Project skills live in the workspace under .snowflake/cortex/skills/. See Snowflake’s skills documentation for the steps.
To make the skills available to all users in your organisation, publish them to a Snowflake stage or to the Skills Catalog, and grant read access to a shared role that your users hold. Each person then adds the skill from the Shared Skills section, and only people with that role can see it. Skills do not grant Astrato access; each person still signs in to Astrato.
Something else
Section titled “Something else”Other assistants may work — these are the ones we’ve confirmed. If yours isn’t listed, it needs to support connecting to an MCP server over the web. Your Astrato contact can check it for you.
What you’re approving
Section titled “What you’re approving”A new connection is granted six permissions. They are the smallest set that lets an assistant answer a question end to end — read the model, change a draft, save a version, and query the data behind it.
| Permission | What it allows |
|---|---|
| Read semantic layers | Inspect layers, business questions, datasets, stored filters and Business Workflows. |
| Edit semantic layer drafts | Change a layer’s draft, and publish it. |
| Create semantic layer versions | Save a named version, and import a Snowflake semantic view. |
| Read workspace collections and workbooks | List the collections and workbooks you can see. |
| Edit workspace collections and workbooks | Edit or delete a collection or workbook, move a workbook between collections, change Starred, create data connections, and import a CSV, which writes a new table into a warehouse connection that allows it. |
| Query data | Prepare and run queries against published semantic-layer data. On the approval screen it reads Execute queries against the datasource and get results. |
Two of those deserve a second look. Edit workspace collections and workbooks reaches further than its name suggests: it lets an assistant delete a workbook or a collection, not only edit one, and it covers importing a CSV, which writes a new table into your warehouse wherever the connection allows it. Query data lets it query any published layer you can reach, rather than only the business questions already saved in your model.
Administration and app publishing are not included. A client that needs one of those has to ask for it, and you approve it separately. Scopes lists every permission Astrato can issue and what each one covers.
Decide what your assistant may do
Section titled “Decide what your assistant may do”Once connected, most assistants let you set permissions tool by tool — allow something always, ask you each time, or never allow it.

It’s worth a look before you let an assistant loose on a semantic layer other people depend on. Reading is harmless; editing and publishing are the ones to think about. Setting the editing tools to ask each time gives you a checkpoint without getting in your way.
Connect with a personal access token
Section titled “Connect with a personal access token”A few tools ask for a token instead of sending you to Astrato to sign in. If yours does, you create the token in Astrato and paste it in.
Step 1: On any page of the Astrato lobby, select your profile picture in the top right to open the account menu, then select Personal Access Tokens.

This opens the Personal Access Tokens section of User Settings, which lists the tokens you already have and when each one expires.

Step 2: Select New token.
Step 3: In Name, enter a name you’ll recognise later, at least two characters long — the tool it’s for is usually the clearest. In Expires in, choose 1, 7, 30, 60 or 90 days; it starts at 30 days. Then select Create.

Step 4: Select the copy button beside the token, paste it straight into the tool that needs it, then select Done.

Result: the token works until the day it expires. There’s no automatic renewal — when it lapses, you come back here and make another. To stop a token working immediately, select Revoke on its row and confirm.
You only see it once. Astrato shows the token when you create it and never again. If you lose it, revoke it and make a new one.
Can’t create one? Your administrator controls whether personal access tokens can be created, and by which roles. If Personal Access Tokens isn’t in the account menu, or the section has no New token button, ask your Astrato administrator.
In the tool, give your Astrato address and the token:
{ "mcpServers": { "astrato": { "type": "http", "url": "https://app.astrato.io/mcp", "headers": { "Authorization": "Bearer your-personal-access-token" } } }}Treat a token like a password. It carries everything your account can do — reading, editing and publishing — so don’t paste it into a shared file or a chat window.
Ask your first data question
Section titled “Ask your first data question”Once your assistant shows Astrato as connected, ask it for numbers rather than for the model.
Step 1: Ask which semantic layers you can use, for example “Which semantic layers can I use?” Pick one that holds the data you care about.
Step 2: Ask a plain question about that layer, naming it. For example: “In the Sales layer, what was revenue by region last quarter?” Use the words your own data uses. The assistant looks for matching saved business questions, measures and dimensions in the layer first, and builds its own query from raw fields only when nothing saved fits.
Step 3: If the assistant asks permission to use an Astrato tool, allow it. See Decide what your assistant may do.
Result: the assistant shows the Astrato tools it called and then answers with a table or a short summary of figures. A good answer names the layer it used and the measure and dimension behind each column. For the example above you would expect one row per region with a revenue figure, labelled with the period it covered. Your own layer and wording will give different names and numbers. If a figure looks wrong, ask the assistant which measure and filters it used.
The assistant only queries published layers, and only data you are allowed to see. For how it chooses between saved questions, stored measures and raw fields, see Query governed data with MCP.
What your assistant can do
Section titled “What your assistant can do”Once connected, it can:
- Look around — list your semantic layers, summarise one, search for a field, measure or join, and check the model for problems.
- Make changes — create, rename, edit or delete measures and dimensions. It can work through several at once, and its changes land as an ordinary revision in your version history.
- Save a version — ask it to name a version before it starts, and you’ll have a clean point to come back to.
- Publish — when you ask it to.
- Answer a question with data — run a business question already saved in your model, or assemble a query of its own against a published layer.
Everything it does is subject to your own permissions. It can’t see or change anything you couldn’t.
Tip: ask your assistant to name a version before letting it make a batch of changes. Everything it does then shows up in Versions like any other edit, and you can go back — see Go back to an earlier version.
If it won’t connect
Section titled “If it won’t connect”Check it’s enabled. This is the most common reason. Follow Check that MCP is switched on, or ask your Astrato contact whether the connection is switched on for your environment.
Clear the assistant’s saved sign-in and try again. Many assistants quietly remember an earlier attempt, so a stale sign-in can keep failing even after everything else is right.
Check you’re using the right address. It needs /mcp on the end, and it needs to be your organisation’s Astrato address.
The approval screen never appears. Your assistant should open Astrato in your browser so you can sign in and select Approve.
- Look for a blocked pop-up, or a browser tab that opened behind your current window.
- Check you are signed in to the right Astrato account in that browser.
- Remove the Astrato connection from the assistant, add it again, and try once more.
- Check the address with Check that MCP is switched on. An address that says MCP is disabled will never reach an approval screen.
Connected, but the assistant lists no semantic layers. The connection works, but the Astrato account you approved can’t see any layer.
- Check which account you approved. The Astrato Authorize access screen shows it under Your account, and you can ask the assistant which account and workspace it is connected to.
- In Astrato, open Data & AI → Semantic Layers while signed in as that account — see Find a semantic layer. If the list is empty there too, ask the layer’s owner or your administrator for access.
- A layer you can see but that has never been published shows up in the list but can’t answer data questions. Publish it first.
Astrato is listed but its tool list is empty. The connection exists but the sign-in did not complete. Remove the connection, add it again, and approve the permissions when asked. Some assistants only show tools in a new chat, so start one.
Query data is refused. Listing your layers works, but answering a data question is refused with a message that more permissions are needed. The sign-in you approved did not include Query data.
- Check that the approval screen listed Execute queries against the datasource and get results, which is how it shows Query data — see What you’re approving.
- Remove the connection and add it again, so you are asked to approve afresh. If your assistant lets you choose the permissions it requests, include Query data.
- If it still refuses, connect with a personal access token instead.
- Check the layer is published. The assistant can’t query a layer that exists only as a draft.
For what each error means, see MCP results and errors and Scopes and permissions.
If you’re setting this up for a tool that isn’t in the list above, or you need the full technical detail, see Configure an MCP client, or ask your Astrato contact.
Still stuck? Raise it from the Support portal. Include the assistant’s name and version and the exact error it showed, but never a token or a full sign-in link.
What next
Section titled “What next”- Query governed data with MCP — how the assistant chooses between saved questions, stored measures and raw fields.
- How versioning works — read this before you let an assistant change anything, so you know how to undo it.