Skip to content
Back to Docs
Atlas Intelligence™
6 min

Connect Your Own AI Agent to Atlas Advisor (MCP)

Atlas Advisor gives you two optional ways to use AI, and you don't need either one: the built-in engine answers a fixed set of questions from your live data on its own. Use your own AI key and Advisor answers any question inside Atlas, using ChatGPT, Claude, Grok or Azure OpenAI. Connect your own AI agent and the agent you already use, such as Claude or GitHub Copilot, asks Atlas for the answers instead. The agent connects over the Model Context Protocol (MCP), an open standard for giving AI agents tools. Atlas stores no AI key for it and sends nothing to an AI provider. This article covers the agent path.

Prerequisites

  • The Administrator role in Atlas, to create, see and revoke agent keys
  • A tenant selected in the tenant picker. An agent key reads that tenant only
  • An AI agent or MCP client that can connect to a remote MCP server over HTTP and send an Authorization header, such as Claude Code, GitHub Copilot in Visual Studio Code, or an agent you build

Your own AI key or your own AI agent?

Both are optional, and you can use both at once. Pick the one that fits how your team works.

  • Use your own AI key: Advisor answers in the Atlas chat for everyone with access to it, each person sees only what their role allows, and features such as the Environment briefing narrative use the model. Atlas sends tool results to the provider you chose and bills that provider account.
  • Connect your own AI agent: you ask in a tool your team already uses, with no AI key stored in Atlas and nothing sent from Atlas to an AI provider. Your agent calls in, so this also works on GCC High without a provider. Answers come from Advisor's built-in reads, as the admin who created the key.
  • Neither: Advisor still answers common questions with the built-in engine, and Recommendations and the Environment briefing still work.

Step 1: Create an agent key

  1. 1In Atlas AVD, open Atlas Operations → Atlas Advisor and click the button in the top-right corner (Connect an API key, or your provider's name) to open Advisor AI settings.
  2. 2Under Connect your own AI agent (MCP), copy the Server URL. It is your deployment's address followed by /api/integration/mcp.
  3. 3Click Create agent key and copy the key that appears. It starts with atlsk_ and is shown only once. If you lose it, revoke it and create another.

Create one key per agent or person, so you can see under Agent keys when each was last used and revoke one without breaking the others. The agent answers as the admin who created the key: if that admin is removed, disabled or no longer an admin, the key stops working.

Step 2: Add Atlas to your agent

Add Atlas as a remote MCP server that uses the streamable HTTP transport. Give it the Server URL and send the key as a Bearer token in the Authorization header. Most clients that read an MCP configuration file take this shape:

MCP client configuration (JSON)
{
  "mcpServers": {
    "atlas-avd": {
      "type": "http",
      "url": "https://<your-atlas-host>/api/integration/mcp",
      "headers": { "Authorization": "Bearer atlsk_..." }
    }
  }
}
Claude Code
claude mcp add --transport http atlas-avd https://<your-atlas-host>/api/integration/mcp --header "Authorization: Bearer atlsk_..."

Treat the key like a password. Anyone who has it can read what the key's admin can see in that tenant. Keep it in your agent's secret store rather than in a shared file, and revoke it under Agent keys if it leaks.

Step 3: Ask your agent

Ask about your environment the way you would ask Advisor, for example "Which session hosts are unhealthy?", "How many users are signed in to the Finance pool?" or "What did we spend on AVD this month?". The agent lists Atlas's tools, picks one, and passes your question to it. Each answer comes back with the rows behind it, so the agent can sort, count or summarise them.

  • Every tool takes the question in plain English. Filters it names, such as "last 7 days", a severity or a user, narrow the answer.
  • A tool can be limited to one host pool or one session host. A tool that can't be limited says so.
  • A tool your plan or the key's admin role doesn't cover answers with an explanation instead of data.

What your agent can and can't do

  • It can read: the same built-in reads Advisor's built-in engine uses, such as sessions, session hosts, health, alerts, costs, images, scaling and security findings. New built-in reads become available to your agent automatically.
  • It can't change anything. There are no tools that restart, drain, scale or fix. Your team makes changes in Atlas AVD, with the usual permissions and activity log.
  • It reads one tenant: the one selected when the key was created. Managed-service providers' reads across all managed tenants are not offered to agents.
  • Some reads need details the built-in engine can't pick out of a sentence yet, such as a specific Atlas Reach device, a VM size or two points in time to compare. Those are available in the Atlas chat with your own AI key, and are added for agents as each gets a built-in read.

Data: what your agent receives

Atlas sends nothing out on this path. Your agent calls Atlas, and each answer goes to your agent, which handles it under that agent's own terms and settings. Answers include what the read returns, such as host names, user names on session lists, costs and alerts. Azure credentials, Atlas secrets and stored keys are never returned.

The Data sent to your provider switches in Advisor AI settings control what Atlas sends to an AI provider when you use your own AI key. They don't filter what an agent reads. To limit an agent, create its key from an admin whose access fits, and revoke the key when it is no longer needed. On GCC High, check that the agent you connect is approved to receive your data.

Usage limits and the activity log

  • Each key can make about 120 requests a minute. Beyond that the agent is asked to wait and retry.
  • Every request is recorded in the audit log against the key, and every tool call records the tool name and how many rows it returned. The rows themselves are not logged.
  • Agent calls don't count against Advisor's monthly token or spend budget, because Atlas doesn't call a model.

Troubleshooting

  • 401 Invalid API key: the key was revoked, has expired, or was typed wrong, or its admin is no longer active. Create a new key.
  • 403 with API_KEY_NO_ISSUER: an older key with no recorded creator. Create a new agent key in Advisor AI settings.
  • 403 for a missing scope: the key was created for another integration. Agent keys created in Advisor AI settings carry the right scope.
  • 405 Use POST for MCP requests: the client tried to open an event stream. Set it to the streamable HTTP transport, not SSE.
  • 429: the key hit its request limit. Wait a minute and retry.

Let Claude, GitHub Copilot or your own AI agent ask Atlas Advisor's read tools over the Model Context Protocol (MCP).

Before you begin

Next steps