Add secure Web Search to Claude Desktop with Amazon Bedrock AgentCore
aws ·
This article provides a technical guide on integrating secure web search capabilities into Claude Desktop using Amazon Bedrock AgentCore. It addresses the limitation of AI models being restricted to their training data cutoff by enabling real-time access to current information through a managed Web Search tool. The solution utilizes AWS IAM Identity Center for single sign-on and Amazon Cognito as a federation layer to issue JSON Web Tokens (JWTs) for authentication. This architecture ensures that all query traffic remains within the AWS infrastructure, eliminating the need for external API keys or third-party identity providers. The walkthrough details the configuration steps, including creating a Cognito user pool, setting up SAML applications in IAM Identity Center, and deploying an AgentCore Gateway with JWT-based inbound authorization. Finally, it explains how to connect Claude Desktop to this gateway via Model Context Protocol (MCP) servers, allowing users to approve and execute web searches directly within the interface.
aws