Vertex AI Search 用 MCP サーバー
これは、Vertex AI を使用してドキュメントを検索するための MCP サーバーです。
建築
このソリューションは、GeminiとVertex AI Groundingを活用し、お客様のプライベートデータを使用してドキュメントを検索します。Groundingは、GeminiのレスポンスをVertex AI Datastoreに保存されているデータにグラウンディングすることで、検索結果の品質を向上させます。MCPサーバーには、1つまたは複数のVertex AIデータストアを統合できます。Groundingの詳細については、 Vertex AI Groundingのドキュメントをご覧ください。
使い方
このMCPサーバーを使用するには2つの方法があります。Docker上で実行したい場合は、プロジェクト内にDockerfileが提供されているため、最初の方法をお勧めします。
1. リポジトリをクローンする
Pythonパッケージをインストールする
このパッケージはまだPyPIに公開されていませんが、リポジトリからインストールできます。MCPサーバーを実行するには、 config.yml.templateから派生した設定ファイルが必要です。Pythonパッケージには設定テンプレートが含まれていないためです。設定ファイルの詳細については、付録A「設定ファイル」を参照してください。
発達
前提条件
- 紫外線
- Vertex AI データストア
- 詳細については、データストアに関する公式ドキュメントをご覧ください。
ローカル環境の設定
MCPサーバーを実行する
これはSSE(Server-Sent Events)とstdio(Standard Input Output)の2つのトランスポートをサポートしています。-- --transport
フラグを設定することでトランスポートを制御できます。
MCPサーバーはYAMLファイルで設定できます。config.yml.templateは設定ファイルのテンプレートです。必要に応じて設定ファイルを修正してください。
Vertex AI Searchをテストする
MCP サーバーなしでmcp-vertexai-search search
コマンドを使用して Vertex AI Search をテストできます。
付録A: 設定ファイル
config.yml.templateは設定ファイルのテンプレートです。
server
server.name
: MCPサーバーの名前
model
model.model_name
: Vertex AI モデルの名前model.project_id
: Vertex AI モデルのプロジェクト IDmodel.location
: モデルの場所(例:us-central1)model.impersonate_service_account
: 偽装するサービスアカウントmodel.generate_content_config
: コンテンツ生成APIの設定
data_stores
: Vertex AI データストアのリストdata_stores.project_id
: Vertex AI データストアのプロジェクト IDdata_stores.location
: Vertex AI データストアの場所 (例: us)data_stores.datastore_id
: Vertex AI データストアのIDdata_stores.tool_name
: ツールの名前data_stores.description
: Vertex AI データストアの説明
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Vertex AI と Gemini グラウンディングを使用したドキュメント検索を可能にし、Vertex AI データストアに保存されているプライベート データに応答をグラウンディングすることで検索結果を向上させるサーバーです。
Related Resources
Related MCP Servers
- -securityFlicense-qualityA server that provides access to Google Gemini AI capabilities including text generation, image analysis, YouTube video analysis, and web search functionality through the MCP protocol.Last updated -183TypeScript
- -securityAlicense-qualityProvides web search functionality for the Gemini Terminal Agent, handling concurrent requests and content extraction to deliver real-time information from the web.Last updated -PythonApache 2.0
- AsecurityAlicenseAqualityImplementation of Model Context Protocol (MCP) server that provides tools for accessing Google Cloud's Vertex AI Gemini models, supporting features like web search grounding and direct knowledge answering for coding assistance and general queries.Last updated -203767TypeScriptMIT License
- -securityFlicense-qualityA server that implements Retrieval-Augmented Generation using GroundX and OpenAI, enabling semantic search and document retrieval with Modern Context Processing for enhanced context handling.Last updated -Python