AWS Context Setup Guide: Free Sample, Claude Code MCP and Pricing (2026)
AWS Context is a new AWS service, launched on December 1, 2026 during AWS re:Invent, that teaches AI agents how your business works: what your terms mean, how your numbers are calculated and which rules apply.
Here’s the catch: “free” covers the map, not the questions. AWS builds and stores the graph of your AWS data at no charge, but every time an agent asks it something, the meter runs in agent units. That’s fine for a test and worth planning for before you point a busy chatbot at it.
Jake had asked his AI assistant a simple question about the shop’s orders, and it answered with confidence. It was wrong: it didn’t know that “pending” in Jake’s system means paid but not yet packed.
Jake: "How was it supposed to know that?"
Ethan: "It wasn’t, and that’s the gap AWS Context fills. You teach it once what your words mean, and every agent you use gets it right after that."
New to this? The plain-English version
- AI agent: an AI assistant that can take steps on its own, such as looking things up or running a query, instead of only chatting.
- Context: the background knowledge a person at your company has and an AI model doesn’t: your product names, your abbreviations, your rules.
- Context graph: AWS Context’s map of that knowledge. Tables, columns, documents and business terms are the dots, and the links between them are the lines.
- Agent Context: one of these graphs, with its own ID that starts with
ac-. - MCP (Model Context Protocol): the standard way AI tools plug into outside services. Our MCP server guide explains it from scratch.
- Ontology: a set of rules for which kinds of things to look for, such as products, workflows or tables.
- Agent unit: the meter AWS Context bills on when its own agents do work for you.
Jake: "So it’s a dictionary for my AI?"
Ethan: "A dictionary plus a map of where every number lives. When the AI asks, AWS Context finds the right table, runs the query and shows you where the answer came from."
Is it for you? Three quick questions
- Is your data in AWS (Glue Data Catalog, S3, Redshift, Aurora, RDS or DynamoDB), or in SharePoint, Google Drive, Confluence or Salesforce? Those are the sources it connects to today.
- Can you work in US East (N. Virginia), US West (Oregon) or Europe (Ireland)? It runs only there, and your data must be in the same Region.
- Do you use an AI agent such as Claude Code, Kiro, AWS Quick or an Amazon Bedrock AgentCore agent? That’s what reads the context.
Three yeses means it’s worth trying today. You can still try the sample with no data of your own.
What AWS Context changes for an AI agent
| Agent on its own | Agent with AWS Context | |
|---|---|---|
| Your business words | Guesses what “pending” or “active customer” means | Uses the definition your team gave it |
| Numbers | May average or count the wrong way | Finds the right tables and runs SQL against them |
| Rules in documents | Doesn’t know your policies | Reads them from a connected knowledge base, SharePoint, Google Drive or Confluence |
| Checking the answer | No trail | Every answer lists its sources, and the console shows the steps and the SQL |
| Who sees what | Whatever the tool can reach | Only what the asking user is allowed to see |
It also gets better with use. Your team can add data dictionaries, example queries and retrieval instructions, and review policies decide which changes agents are allowed to use. Ontologies and learning from agent feedback are still in preview.
AWS Context pricing: what it actually costs
| What | Price | Notes |
|---|---|---|
| Building the graph from AWS data services | Free | Aurora, RDS, DynamoDB, Redshift, Athena, S3 and more; no limit on nodes |
| Storing that graph | Free | For the supported AWS structured data services |
| Storing a graph from other sources | $5 per GB-month | Size of the graph, billed by the hour |
| Agentic operations (questions, curation, feedback, search) | $0.04 per agent unit | Billed per second of agent work |
| Free trial | 3,750 agent units | Once, in your first 30 days |
What does one question cost? The 3,750-unit trial covers about 2,700 answered questions, and a month of 30,000 answered questions comes to 24,922.5 units. That’s between 0.83 and 1.39 units per answer, or roughly 3 to 6 cents per question at $0.04 a unit. Plain graph searches and traversals cost far less.
You can set budgets in agent units for creation, curation, feedback and retrieval, so a runaway agent can’t spend without limit.
Jake: "Three cents doesn’t sound like much."
Ethan: "It isn’t, for you asking twenty questions a day. A customer chatbot asking ten thousand a day is a different bill, so set the budget first."
Before you start
- An AWS account, signed in to the console in one of the three Regions.
- Permission to create AWS Context resources, an Amazon Bedrock managed knowledge base, an AWS Glue database, an S3 bucket and IAM roles. The sample creates all of these.
- Fewer than 20 Agent Contexts in the account, or setup stops with “You’ve reached the context graph quota”.
- For the agent part: an MCP client such as Claude Code or Kiro, and
uv, which provides theuvxcommand (install uv).
Step 1: Create the free sample and ask your first question
The sample is a small online store: tables of customers, orders, products, payments and shipments, plus a store policy and customer support chats. You don’t connect anything of your own.
- Open the AWS Context console at
https://console.aws.amazon.com/context/. - In the navigation pane, choose Overview.
- Under Quick create, in Try agent context with sample data, choose Create context with sample data.
- Wait a few minutes until
agent-context-samplechanges from Creating to Active. - Choose Chat with context, select Details, and ask: How many orders are still pending, and what are they worth in total?
After about 20 seconds you get the answer: 423 pending orders worth $727,580.50. The steps show which tables it found and the SQL it ran, and every number links to its source.
Open the Entities tab to see the map it built: the orders table, its columns, glossary terms such as “Pending order”, and the documents. It built this from your sources’ metadata, not from a copy of the data.
Then try a question only the documents can answer, such as Can a customer cancel an order that has already been processed? The answer comes from the store policy. A question like How much did Ivan Hernandez pay for the delivered order they asked to exchange items from? needs both: it finds the request in a support chat, then runs SQL for the amount.
Step 2: Connect Claude Code (or Kiro) over MCP
Your agent reaches AWS Context through a remote MCP server. A small local proxy, mcp-proxy-for-aws, signs each request with your AWS credentials. If you use Claude Code with Bedrock already, our Claude Code on Bedrock guide covers the credentials side.
1. Give your IAM identity permission to query the Agent Context. Replace the Region, account ID and the ac- ID with yours:
{
"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/ac-EXAMPLE"
}
]
}
2. Copy the connection details. In the console, open agent-context-sample, choose the Integration tab, keep AWS credentials selected, and copy the Agent context ID.
3. Add the server to Claude Code (replace the profile and Region):
claude mcp add agent-context \
--env AWS_PROFILE=my-profile --env AWS_REGION=us-east-1 \
-- uvx mcp-proxy-for-aws https://context-mcp.us-east-1.api.aws/mcp \
--service context-mcp --region us-east-1
claude mcp get agent-context
The second command should report the server as connected. Start a new Claude Code session so it loads the tools.
4. Ask a question that names your Agent Context: Using the agent-context MCP server and agent context ac-…, which customer has placed the most orders? Approve the tool call, and after about 15 seconds you get the answer from the sample: Harper Johansson, with 9 orders.
For Kiro or another MCP client, paste the JSON configuration from the Integration tab into the client’s MCP configuration file instead. It runs the same uvx mcp-proxy-for-aws command.
Jake: "How do I know it didn’t make that up?"
Ethan: "Expand the tool result. It has the answer, the citations pointing at the tables and columns it used, and the context it pulled. Ask it to show you."
How to check where an answer came from
- answer: the text you see.
- citations: for each part of the answer, the entities (tables, columns, documents) that support it.
- retrievedContext: what AWS Context pulled to build the answer, such as a table’s description and columns.
- To explore further, ask the agent to traverse the graph from a cited entity, up to 3 hops, for example “list the columns of the orders table.”
- In the console, the same question under Chat with context with Details shows every step, the SQL and the timings.
Connect your own data
When the sample makes sense, create an Agent Context for your own sources. At launch it connects to AWS Glue Data Catalog, Amazon S3, Amazon Redshift, Amazon Aurora, Amazon RDS, Amazon DynamoDB, SharePoint, Google Drive, Confluence, Salesforce and more. Documents usually come in through an Amazon Bedrock knowledge base, and tables through the AWS Glue Data Catalog.
- Every source, connection and knowledge base must be in the same Region as the Agent Context. There’s no cross-Region access.
- Agents only get what the asking user is allowed to see.
- Connections to SageMaker AI, AWS streaming services, Databricks and Snowflake are still in preview.
- AWS Quick users: an admin adds the Agent Context’s ARN under AWS Resources in account management (Add Agent Context), and every Quick conversation can use it. Each user can turn it off.
Limits worth knowing
| Operation | Limit |
|---|---|
| Search | Query up to 35,000 characters, 1 to 50 results, 30 seconds |
| Traverse (follow links) | 1 to 3 hops, up to 1,000 results, 10 seconds |
| Agentic retrieval (a full answer) | Up to 100 messages; 100 seconds, or 300 seconds when streaming |
| SQL on your tables | One statement over 1 to 10 tables, up to 50,000 rows or 5 MiB, 30 seconds, 2 at a time per account |
| MCP request | Body up to 1 MiB, including the conversation history |
The quotas aren’t in Service Quotas yet. For an increase, ask AWS Support.
Common AWS Context errors and fixes
| What you see | What it means | Fix |
|---|---|---|
| “You’ve reached the context graph quota” | The account already has its maximum number of Agent Contexts | Delete one you don’t use, then retry |
ThrottlingException (HTTP 429) | Too many requests for the account’s rate quota | Retry with exponential backoff; ask AWS Support for more |
ConflictException | The Agent Context is still being set up | Wait for Active and the first ingestion to finish |
| Claude Code can’t find the tools | The MCP server is still connecting | Wait a few seconds and ask again; check claude mcp get agent-context |
| Access denied when the agent queries | The IAM identity lacks the context: permissions | Add the four actions above on that Agent Context’s ARN |
| Your data source isn’t offered | It’s in a different Region | Create the Agent Context in the data’s Region |
Clean up the sample so you stop paying
- Remove the server from Claude Code:
claude mcp remove agent-context. - In the AWS Context console, choose Agent context, select
agent-context-sample, choose Delete and confirm. - The sample also created a Bedrock managed knowledge base, an S3 bucket, an AWS Glue database and IAM roles. Check that they’re gone too, because they bill until they are.
Jake’s first week with it
- Ethan created the sample, and they asked it about pending orders until the console’s steps made sense.
- They connected Claude Code with the
claude mcp addcommand and asked the same question from the terminal. - They created an Agent Context for the shop’s own order tables, in the same Region as the data, and wrote down what “pending” means in the shop.
- They set a monthly budget in agent units before turning it on for the whole team.
- Then they deleted the sample and its knowledge base.
Jake: "So now it knows “pending” means paid but not packed?"
For readers preparing for an AWS certification
We have been covering AWS certifications alongside our fixes, so here is a short extra for readers studying for one. If you only came for the fix, you already have it; feel free to skip this part.
Exams that test this topic: AI Practitioner (AIF-C01) • Data Engineer – Associate • Solutions Architect – Associate (SAA-C03).
Here are the exam-style questions this topic tends to raise, with the reasoning you need to answer them:
1. An AI agent at a company gives wrong answers because it does not know how the business defines terms such as "active customer". Which AWS service builds a governed graph of business definitions, data and rules that agents can query?
AWS Context. It builds a context graph from sources such as the AWS Glue Data Catalog, Amazon S3, Amazon Redshift and documents, and agents query it through MCP tools.
2. An agent must answer questions that combine a refund rule in a policy document with order totals in database tables. What lets one answer use both?
Connect the documents (for example through an Amazon Bedrock knowledge base) and the tables (through the AWS Glue Data Catalog) to the same AWS Context Agent Context; its agentic retrieval searches both and runs SQL for the numbers.
3. A team in eu-west-1 wants AWS Context to use tables cataloged in us-east-2. What is required?
AWS Context does not support cross-Region access. Sources must be in the same Region as the Agent Context, and AWS Context runs only in us-east-1, us-west-2 and eu-west-1, so the data must be available in a supported Region.
4. Which IAM actions should a least-privilege policy grant an MCP client that only queries an existing AWS Context Agent Context?
context:SearchAgentContext, context:TraverseAgentContext, context:AgenticRetrieve and context:AgenticRetrieveStream, scoped to that Agent Context ARN.
5. Which AWS Context costs apply when a company builds a context graph from Amazon Redshift and DynamoDB metadata and then lets agents ask questions?
Graph creation and storage for supported AWS data services are free; agentic operations such as retrieval are billed in agent units ($0.04 each after a one-time 3,750-unit trial). Storage for graphs from other sources is billed per GB-month.
Exam codes and dates change often. Our AWS certification changes page keeps track of what is current.
Ethan: "It does, and so does every other agent we connect. We taught it once."
AWS Context documentation and official references
- AWS What’s New: AWS Context is generally available: sources, Regions and what’s in preview.
- AWS Context pricing: agent units, the free tier and worked examples.
- AWS Context User Guide: the sample tutorials, MCP setup and quotas.
- AWS What’s New: AWS Quick consumes AWS Context: connecting Quick.
Frequently asked questions
What is AWS Context?
A new AWS service, generally available since December 1, 2026, that builds a context graph of your business: what your terms mean, how your numbers are calculated and which rules apply. AI agents query that graph so their answers use your definitions instead of guesses.
Is AWS Context GA?
Yes. AWS Context became generally available on December 1, 2026. A few parts are still in preview: custom ontologies, learning from agent feedback, and connections to SageMaker AI, AWS streaming services, Databricks and Snowflake.
Is AWS Context free?
Partly. Building and storing the context graph is free for supported AWS data services such as Aurora, RDS, DynamoDB, Redshift, Athena and S3. Questions are not: they use agent units, and you get 3,750 free agent units once, in your first 30 days.
How much does AWS Context cost?
Agentic operations cost $0.04 per agent unit after the free trial, and graph storage for sources outside the supported AWS data services costs $5 per GB-month. One answered question works out to roughly 3 to 6 cents.
What is an agent unit in AWS Context?
The single meter AWS Context uses for the model inference and compute its agents spend building, curating and querying your context graph. The 3,750-unit trial covers about 2,700 answered questions, or 20,000 graph searches, or 125,000 graph traversals.
Which Regions is AWS Context available in?
US East (N. Virginia), US West (Oregon) and Europe (Ireland). It doesn’t support cross-Region access, so your data sources must be in the same Region as the Agent Context.
Does AWS Context work with Claude Code?
Yes. Add the AWS Context MCP server with claude mcp add, using the uvx mcp-proxy-for-aws command from the console’s Integration tab, then start a new Claude Code session and ask a question that names your Agent Context ID.
Does AWS Context work with Kiro?
Yes. Paste the MCP configuration from the console’s Integration tab into Kiro’s MCP configuration file. The same configuration works with other MCP clients.
What data sources can AWS Context connect to?
At launch: AWS Glue Data Catalog, Amazon S3, Amazon Redshift, Amazon Aurora, Amazon RDS, Amazon DynamoDB, SharePoint, Google Drive, Confluence, Salesforce and more. Connections to SageMaker AI, AWS streaming services, Databricks and Snowflake are in preview.
Does AWS Context copy my data?
For tables, it builds the graph from your sources’ metadata (tables, columns, descriptions, glossary terms), not from a copy of the data. When an agent asks a question, it runs SQL against the source to get the numbers.
Is AWS Context the same as a Bedrock knowledge base?
No. A Bedrock knowledge base retrieves passages from documents. AWS Context can use a knowledge base as one of its sources and combines it with your tables, so one answer can mix a rule from a document with a number from a database.
What is an ontology in AWS Context?
The set of rules that decides which kinds of entities AWS Context extracts from a source. Built-in ontologies come ready: Data for Glue Data Catalog tables, and Enterprise and Business Process for documents. Bringing your own ontology is in preview.
Does AWS Context work with Snowflake?
Only in preview so far. Snowflake and Databricks connections are listed as preview features; the generally available sources are AWS data services plus SharePoint, Google Drive, Confluence and Salesforce.
Can AWS Context use data from another Region?
No. Each data source, connection and knowledge base must be in the same Region as the Agent Context. For data in another Region, create an Agent Context in that Region.
How many Agent Contexts can I create?
The getting-started guide asks you to have fewer than 20 in your account. At the quota, setup stops with “You’ve reached the context graph quota”; delete one you don’t use and try again.
What IAM permissions does an agent need for AWS Context?
To query an Agent Context: context:SearchAgentContext, context:TraverseAgentContext, context:AgenticRetrieve and context:AgenticRetrieveStream on that Agent Context’s ARN.
Does AWS Context work with AWS Quick?
Yes. A Quick admin adds the Agent Context’s ARN under AWS Resources in account management (Add Agent Context). Each user can turn it off for their own conversations.
How do I delete the AWS Context sample?
Remove the MCP server from your client (claude mcp remove agent-context), then delete agent-context-sample in the AWS Context console. The sample also created a knowledge base, an S3 bucket, a Glue database and IAM roles, so check that nothing is left billing you.
What does ThrottlingException mean in AWS Context?
You went over a rate quota (HTTP 429). Retry with exponential backoff. The quotas aren’t in Service Quotas yet, so ask AWS Support for an increase.
Why does AWS Context return ConflictException?
The Agent Context is still being set up or its first ingestion hasn’t finished. Wait until its status is Active, then try again.
Can AWS Context run SQL on my tables?
Yes, that’s how it gets numbers. One statement can cover 1 to 10 tables and return up to 50,000 rows or 5 MiB, within 30 seconds, and an account can run 2 such queries at a time.
Revision note. Written December 2, 2026, the day after AWS Context became generally available. Regions, sources and prices can change, so check the live pricing page before you connect a busy agent. “Measure twice, cut once”: set the budget before the first big question.