Add secure Web Search to Claude Desktop with Amazon Bedrock AgentCore
This guide shows how to extend Claude Desktop on Amazon Bedrock with real‑time web search by wiring an AgentCore Gateway to the managed MCP‑compatible Web Search service. The integration uses AWS IAM Identity Center for SSO, Amazon Cognito to issue JWTs, and JWT validation in the Gateway, keeping all traffic inside AWS. Engineers can now augment Claude’s responses with up‑to‑date information without exposing external API keys.
⚡ Key Takeaways
- Web Search is MCP‑compatible and backed by an Amazon index of tens of billions of documents.
- The authentication chain is IAM Identity Center → Amazon Cognito → JWT, validated by the AgentCore Gateway.
- The service is currently available only in us‑east‑1, eu‑west‑1, and ap‑northeast‑1 regions.
- Integration requires the AWS CLI v2, Python 3.10+, and the latest Boto3 SDK.
- No external credentials or third‑party identity providers are needed; all tokens are issued and verified within AWS.
By securing web search behind an internal JWT flow, production teams can safely enrich Claude Desktop’s outputs with live data while preserving enterprise identity governance and avoiding external key management.
✅ Practical Steps
- Create an Amazon Cognito user pool to act as the OIDC token issuer for the AgentCore Gateway.
- Configure AWS IAM Identity Center as the SSO source, enable the OAuth 2.0 authorization code grant flow, and link it to the Cognito user pool to issue JWTs.
- Deploy an AgentCore Gateway with the Web Search target enabled in one of the supported regions and point Claude Desktop’s Bedrock inference provider to this gateway.
Want the full story? Read the original article.
Read on AWS ML Blog ↗