DEV Community

Damien Gallagher
Damien Gallagher

Posted on

AWS Context Is GA: Shared Business Knowledge for Your Agents, Setup and Cost

TL;DR

  • AWS Context builds a governed "context graph" over your data and documents, and exposes it to any agent through a hosted MCP server.
  • For anyone whose agents give confident wrong answers because the business rules live in docs and people's heads. GA since 1 December 2026 in US East (N. Virginia), US West (Oregon) and Europe (Ireland).
  • Price: $0.04 per agent unit for agent work, $5 per GB-month for graph storage outside supported AWS structured sources. Graph creation and storage for those sources is free (pricing page, 2026-12-01).
  • Do first: create the sample Agent Context and point Claude Code or Kiro at it.
  • My view: the right idea, and the meter is the thing to watch.

Contents


What launched

On 1 December 2026 AWS announced that AWS Context is generally available. The same day, AWS Quick gained the ability to consume agent context from it.

The problem it targets is one most of us have hit. An agent can read your tables and still get the answer wrong, because it does not know that "active customer" means something specific, or that a risk figure should be weighted by loan size. AWS Context is a managed place to hold that knowledge so every agent shares it, instead of each agent's prompt carrying its own half-remembered copy.

Item Detail
Status Generally available, announced 2026-12-01
Regions US East (N. Virginia), US West (Oregon), Europe (Ireland) (docs)
Cross-Region Not supported. Sources must be in the same Region as the Agent Context (docs)
Limit on contexts Up to 20 Agent Contexts per account (docs)
Access for agents Hosted MCP server and APIs
Still in preview Ontologies, the feedback loop, and connections to SageMaker AI, streaming services, Databricks and Snowflake, per the launch post

How it works

The user guide is clear that AWS Context does not move your data. It indexes metadata and documents, builds the graph from them, and queries the source directly when an answer needs real rows.

There are four resource types to know, all with their own ARNs (key resources):

  • Agent Context: the thing your agents query. One bounded data estate.
  • Connections: links to sources such as the Glue Data Catalog or a knowledge base. Reusable across Agent Contexts.
  • Ontologies: your business concepts, rules and hierarchies. You can import OWL or RDF in Turtle format, or let the service draft a first cut. The features page lists ontologies as preview.
  • Curation policies: the rule for what happens to every change. Apply it, hold it for human review, or discard it.

That last one is the part I like. Every proposed change, whether from ingestion, analysis or agent feedback, becomes a changeset, and the policy decides whether agents ever see it (key concepts).

Source support per the features page:

Stage Sources
GA Glue Data Catalog, S3 (general purpose and table buckets), Redshift, Aurora PostgreSQL-Compatible, RDS for Oracle, DynamoDB (the page lists one more analytics query service)
Public preview RDS for PostgreSQL, MySQL, MariaDB and SQL Server, SageMaker AI, Kinesis, MSK, Data Firehose
Documents (stage not stated) SharePoint, OneDrive, Google Drive, S3, Confluence, web crawler, ServiceNow, Zendesk, Box, Salesforce

Note the gap: the launch post names Aurora and RDS, but the features page only puts Aurora PostgreSQL-Compatible and RDS for Oracle at GA. Check your engine before you plan around it.


How agents consume it

AWS hosts an MCP server at https://context-mcp.<region>.api.aws/mcp. It uses Streamable HTTP and serves every Agent Context in the Region. Each tool call names the context in an agentContextId argument (MCP server docs).

The retrieval tools:

Tool What it does
context___SearchAgentContext Searches for entities
context___TraverseAgentContext Returns an entity's neighbours
context___AgenticRetrieve / AgenticRetrieveStream Answers a question, one result or with progress
context___ExecuteSql One read-only SQL query over Glue Data Catalog tables
context___RetrieveKnowledgeBase Passages from a Bedrock knowledge base, with your own permissions

There are also tools to read and change the context: change sets, curation proposals, and PutTrace for submitting your agent's traces. So an agent can both read and propose changes. Whether it can write directly depends on your curation policy.

Two gotchas from the docs. First, tools/list is paged and the first page holds only 4 tools, so a client that ignores the cursor cannot see search, traverse or SQL. Second, calls run as the identity that signed them. You cannot pass a different user in the arguments. For per-user results you need a session carrying the user's trusted identity, such as IAM Identity Center (authentication).

Limits worth knowing, per the retrieval quotas page:

  • AgenticRetrieve: maxIterations 2 to 50 (default 30); 100-second budget buffered, stream closed after 300 seconds.
  • ExecuteSql: one statement over 1 to 10 tables, 50,000 rows or 5 MiB, 2 concurrent queries per account.
  • Search maxResults 1 to 50; traverse maxDepth 1 to 3.
  • MCP request body up to 1 MiB. Throttling returns HTTP 429, so back off.
  • These quotas are not in Service Quotas yet. Increases go through AWS Support.

Setup, hands-on

The code below is based on the docs and not tested by me. The JSON and the shell command are syntax-checked only, not run against a real Agent Context. The getting started chapter has three tutorials. The console creates a sample online store for you: orders, products and customers in the Glue Data Catalog, plus a policy and support chats in a Bedrock managed knowledge base. One warning from the docs: the sample creates resources you pay for until you delete them.

Step 1 is IAM. The tutorial prerequisites give this policy for querying a context (account ID and context ID are placeholders):

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "QueryAgentContext",
      "Effect": "Allow",
      "Action": [
        "context:SearchAgentContext",
        "context:TraverseAgentContext",
        "context:AgenticRetrieve",
        "context:AgenticRetrieveStream"
      ],
      "Resource": "arn:aws:context:us-east-1:111122223333:agent-context/agent-context-id"
    }
  ]
}
Enter fullscreen mode Exit fullscreen mode

Step 2: in the console open Agent context, pick your context, then the Integration tab for the context ID (it starts with ac-) and a prefilled MCP config. You need uv for uvx.

Step 3: add it to Claude Code. This is the command from the connect-a-client page, with the two timeout flags that give the agentic tools their full time budget:

claude mcp add agent-context --scope user \
  -e AWS_PROFILE=default -e AWS_REGION=us-east-1 \
  -- uvx mcp-proxy-for-aws-cli@latest https://context-mcp.us-east-1.api.aws/mcp \
  --service context-mcp --region us-east-1 --read-timeout 310 --tool-timeout 360
Enter fullscreen mode Exit fullscreen mode

For Kiro, Cursor or Claude Desktop, the same page says to use an mcpServers file (Kiro reads ~/.kiro/settings/mcp.json):

{
  "mcpServers": {
    "agent-context": {
      "command": "uvx",
      "args": [
        "mcp-proxy-for-aws-cli@latest",
        "https://context-mcp.us-east-1.api.aws/mcp",
        "--service", "context-mcp",
        "--region", "us-east-1",
        "--read-timeout", "310",
        "--tool-timeout", "360"
      ],
      "env": {
        "AWS_PROFILE": "default",
        "AWS_REGION": "us-east-1"
      }
    }
  }
}
Enter fullscreen mode Exit fullscreen mode

Then ask a question that names the context. The tutorial's example is "which customer has placed the most orders", and the tutorial shows an answer arriving after about 15 seconds. The docs tip I'd copy: put the context ID in CLAUDE.md so the model passes it without being asked.

If you are writing your own agent, the same page shows a Python client using mcp-proxy-for-aws with the official mcp SDK, calling context___SearchAgentContext with searchType set to AUTO. Use that rather than anything I would paraphrase.


AWS Quick now consumes it

The second announcement is smaller but useful if you run Quick. Per the launch post, an admin adds the context ARN under AWS Resources, and every agentic interaction in Quick then benefits. Each user can turn it off for themselves.

The Quick user guide adds the detail:

  • Admin steps: AWS Resources, find AWS Context, Add Agent Context, paste the ARN, Save. You can also start from the AWS Context console with Use with AWS Quick (guide).
  • Tools can take up to 15 minutes to appear in Quick chat.
  • Quick reaches the context through a managed role, aws-quicksight-context-role-v0, which has permissions only to AWS Context, not to your data sources.
  • If a connection uses a data access role, it works with no extra setup. If it uses caller credentials, the Quick role has no data permissions by default and returns nothing until you add an inline policy. The docs recommend inline, not managed, and least privilege. Those permissions apply to every Quick user querying through that role.
  • User identity is passed on with trusted identity propagation. With IAM Identity Center, you need the simplified TIP setting enabled or an identity propagation configuration. Without one, IAM Identity Center users get only public documents, or none.
  • Connections to third-party sources via Credential Broker need each instance tagged QuickSightContextAccess = true.
  • Cross-account is supported through a resource policy on the context. The docs give the actions to allow: GetAgentContext, SearchAgentContext, TraverseAgentContext, AgenticRetrieve, AgenticRetrieveStream.

What it costs

Per the pricing page, as of 2026-12-01:

Item Price
Graph agentic operations (creation, retrieval, curation, feedback, search and traversal) $0.04 per agent unit
Graph storage (in-memory) $5 per GB-month, billed hourly
Graph creation and storage from supported AWS structured sources Free
Trial 3,750 agent units, one time, first 30 days

"Supported AWS structured sources" means Aurora, RDS, DynamoDB, Redshift, one more analytics query service and S3 general purpose and table buckets, "and more". Storage for sources outside that set is billed at the $5 rate. An agent unit is the cumulative inference and compute a Context agent spends on an operation. You can set budgets in agent units for creation, curation, feedback and retrieval. A response mode that trades reasoning against cost is listed as coming soon.

The pricing page has a worked example. Here is the arithmetic from its second one, which is the useful one because it shows what each call type burns:

Operation Calls Agent units At $0.04
Agentic retrieval 30,000 24,922.5 $996.90
Feedback agent 45,000 14,073.75 $562.95
Graph search 40,000 7,500 $300.00
Graph traversal 80,000 2,400 $96.00
Total 48,896.25 $1,955.85

Subtract the 3,750 trial units ($150) and AWS's bill is $1,805.85, with 2.5 GB of DynamoDB-sourced graph free.

Dividing it out, this is my arithmetic from AWS's example, not a list price: retrieval is about 0.83 agent units a call (roughly 3.3 cents), search about 0.19 (0.75 cents), traversal 0.03 (0.12 cents). AWS says actual use depends on response mode and workload, so treat these as a shape, not a quote. The shape is the point. A full retrieval costs far more than a search or a traversal.

Not stated: whether using AWS Context from Quick adds anything beyond the agent units above, and Quick's own plan costs are separate.


What this means for you

Adopt, wait or watch

If you have agents answering questions over data and getting metrics subtly wrong, try it now on one bounded domain. The meter has a one-time trial. If your sources are in the preview column (RDS for PostgreSQL, Snowflake, Databricks), watch. I would not plan production around preview connectors.

The customer numbers on the product page are worth reading but remember who published them. A bank quotes accuracy rising from 54% to 89% in early-stage testing, then 97% after expert corrections, and a manufacturer says accuracy on top questions doubled in preview. These are vendor-published quotes, not something I measured.

What gets simpler

  • One shared definition of "how we calculate this" instead of prompts copied between agents.
  • One MCP endpoint per Region for Claude Code, Kiro, Quick and your own agents.
  • Auditability: answers show their sources, and the features page lists CloudTrail logging, CloudWatch metrics and PrivateLink support.

What gets more complex

  • Curation becomes a job. Someone owns the policy, the review queue and the ontology. That is a people cost the pricing page will not show.
  • Identity needs care. Calls run as the signer, so per-user filtering means propagating identity properly. The Quick caller-credentials case above is the trap I would check first.
  • Same-Region only, three Regions only, and retrieval has a 100-second budget.
  • Customer managed keys are listed as coming soon on the features page. If you need CMK, read that before committing.

Cost drivers and how to tame them

  • Keep sources inside the free AWS structured set where you can. Unstructured sources and third-party sources are where $5 per GB-month and extraction work arrive.
  • Filter document connections. The docs say extraction does more work than structured ingestion, and that data filters by file type, tags, dates and size limit it (extraction cost).
  • Set agent-unit budgets per operation type. Prefer search and traversal for simple lookups and keep full retrieval for questions that need it.
  • Delete the sample when you are done.

Patterns that combine well

  • Quick plus a shared context: analysts use Quick chat while your custom agents use the same Agent Context through MCP. Both read the same definitions. Permission filtering depends on how identity is passed, as covered above.
  • Glue Data Catalog as the source of truth: keep business glossary and metadata in Glue, connect it, and let curation policy decide what the agents see. The features page says the connection brings in glossaries, metadata forms and skills.
  • Open format: the June 2026 AWS blog post says key metadata is published to S3 Tables in Iceberg, queryable from Redshift, Spark or any Iceberg engine. That was the pre-GA announcement, so confirm it against the current docs before depending on it.

Other angles

I have not read Azure or Google equivalents for this post, so no comparison. One honest worry is lock-in: the graph and curation workflow live in AWS, though the Iceberg publishing claim, if it holds, helps with exit.

What I'd do first

  1. Create the sample Agent Context and connect Claude Code with the command above.
  2. Ask five questions you know the answers to, and read the cited sources.
  3. Then point it at one real, small domain and set an agent-unit budget before anyone else uses it.

The open question for me is who owns curation in your team. Does your data team approve the changes, or does the agent team?


Related posts


Sources

Drafted with AI assistance. I review and edit every post.

Top comments (0)