AI Explainers Infrastructure

Claude Desktop Web Search: Connecting It Through Amazon Bedrock AgentCore

Claude Desktop web search can be added through an AgentCore Gateway, with sign-in handled by IAM Identity Center and Amazon Cognito issuing the tokens.

Illustration of Claude Desktop web search connecting through a secure gateway to a cloud web index
AI-generated editorial illustration.

Ask an AI assistant about a software release that shipped this morning, and it may have nothing to say. Claude Desktop web search closes that gap when Claude Desktop on Amazon Bedrock is connected to a managed search tool through Amazon Bedrock AgentCore Gateway, with sign-in secured by tokens issued from a company’s existing AWS identity setup.

This explainer covers what each piece does, how the sign-in chain works, and what an administrator needs in place before starting. AWS describes the full walkthrough in its machine learning blog; the pieces below are the parts a non-programmer needs to follow the logic.

Why does Claude Desktop need a separate web search connection?

AWS explains that Claude Desktop on Amazon Bedrock can only answer from what the model learned before its training cutoff. Recent documentation updates, live pricing, and weather are examples AWS gives of information the model cannot retrieve by itself.

The fix is to give the assistant a tool it can call. Instead of baking search into the app, AWS connects Claude Desktop to a search service that sits behind a gateway the organization controls.

What is Amazon Bedrock AgentCore, and what does the Gateway do?

Amazon Bedrock AgentCore is, in AWS’s words, a platform to build, connect, and optimize agents at scale, with any framework or model. An agent here means an AI system that can take actions, such as calling a tool, rather than only producing text.

AgentCore Gateway is one capability inside that platform. It acts as a single front door that exposes tools to AI clients in a standard format. Think of it as a reception desk: the assistant asks for a tool, and the gateway checks who is asking before passing the request along.

What is the Web Search tool behind the gateway?

AWS describes Web Search as a fully managed search capability that follows the Model Context Protocol (MCP). MCP is a common standard that lets AI apps discover and use outside tools in a uniform way, so one tool can work with many different assistants.

According to AWS, the tool is backed by an Amazon-operated web index spanning tens of billions of documents. AWS’s documentation says it returns results with titles, URLs, snippets, and publication dates, so answers can be grounded in current pages. It also says the tool extracts semantically relevant passages from each page instead of returning raw HTML.

On privacy, AWS states that query traffic stays within AWS infrastructure, with no external API keys to manage and no queries leaving the customer’s boundary. AWS’s documentation adds that there are no search APIs to provision and no outbound credentials to manage.

How does the sign-in chain work?

The gateway has to know that a request comes from an authorized person. AWS uses JSON Web Tokens (JWTs) for this. A JWT is a signed digital pass that proves who a user is; the gateway checks the pass on every request.

Many enterprises on AWS already use AWS IAM Identity Center for single sign-on, meaning one login that unlocks several systems. AWS uses it as the authentication source in this walkthrough, so employees sign in with the same identity they already have. AWS says no separate credentials or third-party identity providers are required.

The catch is that IAM Identity Center speaks a different sign-in language than the gateway expects. IAM Identity Center authenticates users through SAML, an older standard for sharing login information between systems. The gateway wants JWTs. AWS bridges the two with Amazon Cognito, which acts as a translation layer.

  • The user signs in through IAM Identity Center, which verifies them using SAML.
  • Amazon Cognito, using the OAuth 2.0 authorization code grant flow, issues a JWT in return.
  • Claude Desktop presents that JWT to AgentCore Gateway.
  • The gateway validates the token on each request before allowing a search.

AWS notes that the entire authentication chain stays within AWS.

What do you need before you start?

AWS lists several prerequisites. You need an AWS account with permission to create IAM roles and Amazon Bedrock AgentCore resources. You also need admin access to the management account in AWS Organizations, because that is where IAM Identity Center is configured. The prerequisites list in the source text is cut off after the IAM Identity Center item, so the AWS blog post itself is the place to confirm any further requirements.

In practice, this is an administrator task. A person who only uses Claude Desktop will not usually have the account-level permissions needed, so the setup tends to fall to whoever manages the organization’s AWS environment.

How does Claude Desktop actually connect?

AWS says Claude Desktop supports managed MCP servers, an administrator-controlled way to point the app at approved tool endpoints. The connection target is an AgentCore Gateway with the Web Search target enabled. Once the managed server is configured, the assistant can discover the search tool and call it as needed.

AWS’s documentation says agents find the tool with a standard tools/list call and invoke it like any other MCP tool. That standard behavior is why the same search capability works with other MCP-compatible clients too; AWS lists Strands Agents, LangChain, LangGraph, and CrewAI as examples.

A realistic workflow: checking a fresh release

Imagine an IT administrator at a company that already uses IAM Identity Center. She wants staff using Claude Desktop to get answers about recently published vendor documentation.

She enables the Web Search target on the organization’s gateway, sets up Amazon Cognito to issue tokens for people who sign in through IAM Identity Center, and adds the gateway as a managed MCP server in Claude Desktop. A colleague then asks Claude about a documentation change published last week. The app signs the colleague in through the existing company login, passes a token to the gateway, and the gateway runs the search and returns snippets with titles, URLs, and dates for the model to use in its answer.

Nothing in that flow asks the colleague to manage an API key, which matches AWS’s description of the design.

How does this compare with other ways to add search?

AWS’s documentation positions the managed tool against building a custom integration. It lists the work such a build involves: procuring third-party search APIs, managing keys, quotas, and rate limits, parsing inconsistent result formats, building snippet extraction, and reasoning about where queries travel and how data might be retained. AWS says its connector removes that overhead.

AWS also says many solutions that add web search to an agent are wrappers over a third-party search engine, while this tool runs on an Amazon-operated index. That is AWS’s own positioning, and the source material offers no independent benchmark comparing result quality against other search options.

Filtering and control options

AWS’s documentation describes domain and date filtering. A target-level domain exclude list restricts which sites are searched. In connector version 1.2.0 and later, targets also support a domain include list, and agents can pass per-request include and exclude lists plus published-date bounds. Administrators who care about which sources feed answers should check the current documentation for the connector version in use.

The documentation also lists a knowledge graph for high-confidence facts, which AWS says grounds entities and their relationships so the model is not left to infer them from extracted page text.

One practical caution applies to the whole setup. This arrangement spans several services, each with its own permissions, and the identity chain has multiple handoffs, so a misconfigured token or role can block searches entirely. Anyone planning a rollout should confirm current limits, regional availability, and acceptable-use terms in AWS’s documentation, since those sections are part of the same guide and the details can change.

Sources