Prompt: Add secure Web Search to Claude Desktop with Amazon Bedrock AgentCore
← AI for Your Work
This guide walks through integrating Amazon Bedrock AgentCore with Web Search capabilities to overcome the model's knowledge cutoff limitation. By connecting Claude Desktop to a managed web index via Amazon Bedrock AgentCore's AgentCore Gateway and JWT-based authentication, users can retrieve current information including documentation updates, live pricing, and real-time web content.
Copy This Prompt
Set up Amazon Bedrock AgentCore with Web Search integration for Claude Desktop. First, create an Amazon Cognito user pool named 'agentcore-websearch-pool' with email as a verified attribute. Then create a SAML application in AWS IAM Identity Center pointing to this pool. Register IAM Identity Center as a SAML IdP in the Cognito pool. Create a Cognito app client called 'agentcore-websearch-client' with a generated secret and the SAML IdP as the supported identity provider. Finally, create an AgentCore Gateway named 'websearch-gateway' with protocolType 'MCP', authorizerType 'CUSTOM_JWT', and attach the 'web-search' connector. Configure Claude Desktop to connect to this gateway using JWT-based inbound authentication with the Cognito client ID and secret.
Example input
Use the placeholders in the prompt with permitted, anonymized source data.
Expected output
Follow the output format requested in the prompt and verify the result against the source.
Tools
AWS CLI v2, Python 3.10+, Boto3 SDK, Amazon Bedrock AgentCore, Amazon Cognito, AWS IAM, AWS Organizations
