Skip to main content

Gemini Enterprise MCP

Gemini Enterprise can use Glean's dedicated Gemini Tools MCP server through a custom MCP server data store. Organizations that use Google Cloud Agent Registry can also register the server there and add it to a Gemini Enterprise app. Gemini uses Glean's tools to answer work questions, and Glean applies the authenticated user's permissions to every result.

How Gemini Enterprise MCP works​

With a custom MCP server data store, Gemini Enterprise connects directly to Gemini Tools. When a user asks a work question, Gemini calls Glean, authenticates the user with OAuth, and uses the returned context to answer.

Use the Gemini Tools URL: https://<tenant_id>-be.glean.com/mcp/managed/gemini.

The Gemini Tools server is configured with seven baseline tools: search, read_document, code_search, user_activity, memory, memory_schema, and employee_search. Glean serves each tool when its requirements are met. These tools don't change records in connected apps. When memory writes are enabled, memory can add, update, or delete saved Glean memory. If you add write tools to the server, Gemini can also surface actions that change connected-app records.

What users get​

  • Ask Gemini questions that need company context and get answers grounded in Glean.
  • Receive answers with citations to the underlying internal sources.
  • Use the Glean tools enabled on the selected MCP server path as Gemini actions.
  • Receive results that reflect the user's existing Glean permissions.

Connect directly to Gemini Enterprise​

This setup creates a custom MCP server data store directly in Gemini Enterprise. Gemini retrieves the server's current tools when you reload custom actions. Reload again after changing the tools in Glean. The 10-tool limit on Copy toolspec is for Agent Registry and does not apply to this data store.

Before you start, gather the access, values, and platform requirements in Prerequisites for Glean in Gemini chat.

Follow the Glean in Gemini chat installation guide to:

  1. Copy the Gemini Tools server URL.
  2. Create the Gemini OAuth client in Glean.
  3. Create the custom MCP server data store in Gemini Enterprise.
  4. In the data store, click Reload custom actions and enable the Glean tools.
  5. Connect the data store to a Gemini app and publish the app.
  6. Share the app with users so they can authorize Glean and ask questions.

For the user authorization flow, see Use Glean in Gemini chat.

Use Agent Registry with Gemini Enterprise​

Agent Registry catalogs Glean's tools for discovery. Importing the registered server into a Gemini Enterprise app requires Agent Gateway. Glean's Copy toolspec supports up to 10 tools and agents for this path. See Agent Registry setup for the Glean and Gemini Enterprise steps.

Gemini MCP and Gemini Agents​

Gemini Enterprise also supports connecting to Glean through A2A. With A2A, Gemini invokes Glean Assistant as a remote agent instead of calling individual Glean tools. See Gemini Agents for that setup.