Step 1: Get the connection details
The console provides the Agent Context ID and a ready-made MCP configuration.
To get the connection details
-
Open the AWS Context console, and choose Agent context in the navigation pane.
-
Choose agent-context-sample, and then choose the Integration tab.
-
Under Authentication, make sure that AWS credentials is selected.
-
Under Connection details, copy the Agent context ID. It starts with
ac-. -
Under MCP configuration, review the configuration. The console fills in your Agent Context’s endpoint and Region.
{ "mcpServers": { "agent-context": { "command": "uvx", "args": [ "mcp-proxy-for-aws", "https://context-mcp.us-east-1.api.aws/mcp", "--service", "context-mcp", "--region", "us-east-1" ], "env": { "AWS_PROFILE": "default", "AWS_REGION": "us-east-1" } } } }Set
AWS_PROFILEto the profile that holds your credentials, or remove it to use your default credential chain.