|
|
MCP Server with Vertex AI Search
Author: Venkata Sudhakar
Vertex AI Search lets you build enterprise search experiences over structured and unstructured data stored in Google Cloud. ADK agents that need to answer questions from internal knowledge bases, product catalogs, or document repositories can call a Vertex AI Search MCP server to retrieve relevant results without the agent needing to know the underlying index or data schema. In this tutorial, you will build an MCP server with a search tool that queries a Vertex AI Search data store. An ADK agent then uses this tool to answer user queries by retrieving grounded results from the enterprise search index. The MCP server below uses the google-cloud-discoveryengine library. Each search call returns a list of result snippets and document titles that the agent can summarise for the user.
The ADK agent below connects to the Vertex AI Search MCP server and uses it to answer product-related questions. The agent retrieves grounded results from the data store instead of relying solely on its training knowledge.
Vertex AI Search MCP servers are ideal for RAG-style agent workflows where the agent needs to cite company-specific documents rather than generating answers from general knowledge. You can extend the server with a summarise tool, a filter-by-date tool, or a document-fetch tool to build richer retrieval pipelines.
|
|