Grab a spot →
Skip to main content

How to set up memory layer for AI agents

Connect docs via MCP

A memory layer for AI agents is external infrastructure that persists context across sessions. It lets a stateless model recall prior interactions, learned facts, and governed organizational knowledge at the start of each new run.

In Atlan, the closest product fit is a context repository built in Context Studio and served to agents through the Atlan MCP server. A context repository is a bounded, versioned package of governed context for a specific domain.

This guide is for teams building context-aware agents on runtimes that connect to Atlan through MCP, such as Cursor, Claude, ChatGPT, VS Code, Windsurf, Microsoft Copilot Studio, and Google ADK.

To learn about Atlan's built-in context agents for metadata enrichment, see Understand context agents. The currently available agents are Description, README, and SQL Intelligence. Link Terms is coming soon.

Prerequisites

  • An Atlan workspace with at least one connected source.
  • An AI tool or runtime that can connect to Atlan through MCP.
  • OAuth credentials or an API key for your Atlan workspace.
  • Admin permissions if you want the agent to update metadata through MCP write tools.
note

Agent memory is commonly split into short-term memory, which lives inside the active context window for one run, and long-term memory, which persists across runs. This page is about long-term memory.

Start with field guide

Before you wire up a memory layer, read the field guide WTF Is the Context Layer. It explains what governed context is and why a memory layer depends on it, so the steps below land in context.

  1. Read the field guide, WTF Is the Context Layer, before you configure MCP.
  2. For how the concept maps to Atlan, see Context layer.

Set up Atlan MCP for your agent runtime

Connect your AI tool to the Atlan Remote MCP server. Remote MCP is hosted by Atlan, enabled for all tenants, and supports interactive tools and automation platforms including Cursor, Claude, ChatGPT, Gemini, VS Code, Windsurf, Microsoft Copilot Studio, and Google ADK.

  1. Open the setup guide for your runtime:
  2. Authenticate with OAuth when possible, or use an API key when the connector supports it.

Create context repository

Create a context repository for the domain, team, or agent use case you want to support.

  1. In Context Studio, create a context repository.
  2. Describe the domain in plain language. Context Studio searches your Atlan catalog, selects the most relevant tables and columns, and generates an initial semantic model.
  3. Populate the repository with the domain context your agent needs to answer correctly: business definitions, the semantic model, custom instructions, and any supporting question sets.

Scope repository to one domain or use case

Keep the repository bounded. Context repositories are versioned, certified units of context scoped to a specific domain or use case.

  1. Scope each repository narrowly. A good starting pattern is:
    • One repository per business domain.
    • One repository per agent use case.
    • One repository per agent role.
  2. Keep the Atlan glossary as the shared source of truth, so a term carries consistent meaning across every repository that uses it.

Narrow scope keeps context governable, keeps accuracy high, and reduces definition conflicts across teams.

Configure agent to read repository context at runtime

  1. Point the agent's MCP client at Atlan.
  2. Configure the agent to retrieve the governed context it needs before answering.

The result is a shared, governed context source that multiple agents can consume, instead of each agent reconstructing business meaning from scratch.

Use MCP write tools when agent needs to update metadata

Atlan MCP supports both read-only and write operations. Documented write capabilities cover asset metadata, custom metadata, tags, lifecycle, glossary, domains, and data quality.

Use these write tools when your workflow needs the agent to:

  • Update descriptions or READMEs.
  • Add or remove tags.
  • Update custom metadata.
  • Manage glossary content.
  • Change asset lifecycle or data quality metadata.

Treat those documented metadata operations as the supported write-back surface.

Test, deploy, and observe

Before rolling the repository out broadly, validate it with real business questions. Context Studio runs a Build, Simulate, and Deploy loop, with Observe as the feedback channel:

  1. Test whether the agent answers correctly with the repository loaded.
  2. Identify missing definitions, relationships, or edge cases.
  3. Refine the repository.
  4. Redeploy and observe production behavior. Observe is currently available for Snowflake Cortex deployments.
tip

Start with one domain and one repository. It's easier to split or add repositories later than to untangle one repository that tries to cover every team and every definition.

See also