

# The AWS Context MCP server

 With the AWS Context MCP server, any MCP-compatible agent or tool can retrieve from your Agent contexts. AWS hosts the server; you don’t deploy anything.

The endpoint is `https://context-mcp.<region>.api.aws/mcp`, where *region* is your Region code, for example `https://context-mcp.us-east-1.api.aws/mcp`. It uses MCP Streamable HTTP and serves every Agent context in the Region; each tool call names its Agent context in `agentContextId`. The Agent context’s **Integration** tab shows the endpoint, signing service, Region, and Agent context ID.

Tools are named `context___Operation` (three underscores). The prefix is stable, so you can use these names in tool approval lists.


| Tool | What it does | IAM action | 
| --- | --- | --- | 
|  `context___SearchAgentContext`  | Searches the Agent context for entities. |  `context:SearchAgentContext`  | 
|  `context___TraverseAgentContext`  | Returns the neighbors of an entity. |  `context:TraverseAgentContext`  | 
|  `context___AgenticRetrieveStream`  | Answers a question, with progress notifications. |  `context:AgenticRetrieveStream`  | 
|  `context___AgenticRetrieve`  | Answers a question and returns one result. |  `context:AgenticRetrieve`  | 
|  `context___ExecuteSql`  | Runs one read-only SQL query over AWS Glue Data Catalog tables. |  `context:ExecuteSql`  | 
|  `context___RetrieveKnowledgeBase`  | Retrieves passages from an Amazon Bedrock knowledge base with your own permissions. |  `bedrock:Retrieve` on the knowledge base | 

 `context___RetrieveKnowledgeBase` serves Amazon Bedrock managed knowledge bases. It accepts `managedSearchConfiguration` and rejects `vectorSearchConfiguration`, makes one attempt with a 20-second limit and no retry, and returns at most 8 MiB.

The server also serves tools that read and change an Agent context, each authorized by the `context:` action of the same name: `context___GetAgentContext` and `context___ListAgentContexts`; the change set tools `context___CreateChangeSet`, `context___GetChangeSet`, `context___ListChangeSets`, `context___ListChangeSetOperations`, and `context___UpdateChangeSet`; the curation proposal tools `context___ListCurationProposals`, `context___GetCurationProposal`, `context___AcceptCurationProposal`, and `context___RejectCurationProposal`; and `context___PutTrace`, which submits your agent’s traces for trace analysis. For change sets and curation proposals, see [Building and curating context](building-and-curating-context.md).

 `tools/list` returns the tools in pages, sorted by name. The first page holds 4 tools (`context___AcceptCurationProposal`, `context___AgenticRetrieve`, `context___AgenticRetrieveStream`, `context___CreateChangeSet`) and a `nextCursor`. To get the rest, the client calls `tools/list` again with that cursor, and repeats until a response has no `nextCursor`. A client that doesn’t follow the cursor sees only the first 4 tools, so it can’t search, traverse, or run SQL. Every tool’s schema also lists a `Region` parameter, kept for compatibility with an earlier version of the server; the server ignores it, so leave it out. Tool results are JSON text in the result’s text content. `context___AgenticRetrieveStream` sends progress as MCP `notifications/progress` when the request includes `_meta.progressToken` and the client accepts `text/event-stream`; otherwise the tool returns one JSON result with no progress.

**Topics**
+ [Connect an MCP client](connect-an-mcp-client.md)
+ [Authentication and identity for MCP](authentication-and-identity-for-mcp.md)