---
title: Connecting Haystack to Gemini via MCP
description: Connect Gemini to your live Haystack intranet with the Haystack MCP server, so answers come from your verified company knowledge.
---

[Skip to content](https://support.haystackteam.com/en/connecting-haystack-to-gemini-via-mcp#main-content)

[![Logo (Black Text)-1.svg\]](https://support.haystackteam.com/hubfs/Logo%20(Black%20Text)-1.svg)](https://support.haystackteam.com/en?hsLang=en)

Open main navigation

Close main navigation

- [Contact Support](https://support.haystackteam.com/en/customer-support-submit-a-ticket)

[Contact Support](https://support.haystackteam.com/en/customer-support-submit-a-ticket?hsLang=en)

 Hi there, how can we help?

- There are no suggestions because the search field is empty.

1. [Help Desk](https://support.haystackteam.com/en?hsLang=en)
2. [Platform Integrations](https://support.haystackteam.com/en/platform-integrations?hsLang=en)
3. [AI Integrations](https://support.haystackteam.com/en/platform-integrations?hsLang=en#ai-integrations)

# Connecting Haystack to Gemini via MCP

Connect Gemini to your live Haystack intranet with the Haystack MCP server, so answers come from your verified company knowledge.

📌 MCP integrations are an add-on service that are licensed separately from the core intranet platform. If you're eager to use an MCP integration, please reach out to your Customer Success Manager (CSM) or support@haystackteam.com for more details.

#### **Overview & Value**

If your team works in Google Workspace, Gemini is already part of your daily workflow. Connecting Haystack to Gemini brings your intranet's verified knowledge directly into those conversations—enabling Gemini to answer using your real policies, posts, and pages instead of generalized web data.

Unlike standard directory apps, you connect Gemini directly to the Haystack MCP server using a unique **Client ID** and **Client Secret** provided by Haystack for your organization. Setup takes only a few minutes.

#### **What Your Team Can Do**

- **Find answers fast:** "Search Haystack for our travel policy and summarize the per diem rules."
- **Find the right people:** "Who on the IT team handles laptop requests?"
- **Draft content for Haystack:** "Turn these notes into a draft post for the Operations group."
- **Build personal references:** "Create a private Haystack page summarizing everything about our benefits renewal."

#### **Why Your Team Will Love This**

- **Answers you can trust:** Responses come from your live Haystack content, with links back to the source.
- **Security built in:** Gemini only sees what each person can already see in Haystack.
- **Less copying and pasting:** Haystack knowledge shows up right where your team is already working.

---

#### **MCP Connector Capabilities**

**Available Now: [Search and Read](https://support.haystackteam.com/en/search-and-read-haystack-content-from-your-ai-tools-with-mcp?hsLang=en).** Search people, teams, posts, events, knowledge pages, and glossary terms, and open the full page or post behind any answer. See Using MCP Search Tools.

**Available Now: [Post Creation](https://support.haystackteam.com/en/using-mcp-creation-tools-?hsLang=en).** Draft or publish posts in your groups and create private knowledge pages. See Using MCP Creation Tools.

***Coming Soon:* Events.** Create Haystack events right from Gemini including recurring events.

---

#### **Setup Prerequisites & Permissions**

- **Haystack Licensing:** Your Haystack workspace must have the **MCP Integration add-on** enabled.
- **Haystack Client Credentials:** Client ID and Client Secret generated by Haystack (delivered securely via your CSM).
- **Gemini Subscription:** **Gemini Enterprise** or **Gemini Business** plan.
- **Admin Configuration:** 
    1. A Google Workspace Admin must override the *Custom MCP Server* organization policy if restricted.
    2. An admin must configure the Haystack MCP server endpoint and OAuth details in the Google Admin Console.
- **User Access Permissions:** Gemini enforces user-level OAuth delegation; users can only query or post content they already have permission to access in Haystack.

---

#### **Step-by-Step Setup Guide**

##### Step 1: Obtain Credentials

Request your organization's **Client ID** and **Client Secret** from your Haystack Customer Success Manager (CSM).

##### Step 2: Admin Configuration (Google Admin Console)

1. Open the [Google Cloud Console](https://console.cloud.google.com/) and go to the Gemini Enterprise page.
2. Select Data stores, then select Create data store and search for Custom MCP Server.
3. Under Configure Endpoint, enter the Server URL you copied in [Get Your Toolkit’s MCP Server Details](https://www.domo.com/docs/s/article/Connect-Gemini-Enterprise-to-Domo-MCP#get-your-toolkits-mcp-server-details), then select an authentication method: OAuth 2.0
4. Enter the following connection details:

| **Field** | **Value** |
| --- | --- |
| **Server Name** | Haystack |
| **MCP Server URL** | `[https://haystack-mcp.haystack.so/mcp](https://haystack-mcp.haystack.so/mcp)` |
| **Authorization URL** | `[https://haystack-oauth2.haystack.so/oauth/authorize](https://haystack-oauth2.haystack.so/oauth/authorize)` |
| **Token URL** | `[https://haystack-oauth2.haystack.so/oauth/token](https://haystack-oauth2.haystack.so/oauth/token)` |
| **Client ID** | *(Provided by Haystack)* |
| **Client Secret** | *(Provided by Haystack)* |
| **Scopes** | `haystack.search haystack.write` *(Space-separated)* |
| **Enable PKCE Support** | **On / Checked** |
| **Use HTTP Basic Auth** | **Off / Unchecked** |

1. Click **Save & Enable for Organization** (or assign to specific Organizational Units / Groups).

##### Step 3: User Authentication & Verification

1. Open **Gemini**.
2. Click the **Extensions** menu (or type `@Haystack` in the prompt bar).
3. When prompted, click **Connect Account** and sign in with your Haystack credentials (enter your workspace subdomain if requested).
4. Click **Approve / Authorize** to grant Gemini permission to search and post on your behalf.
5. In a new chat prompt, test the connection by asking:
   
   > *"Search Haystack for our company holiday schedule."*
   > 
   > *— or —*
   > 
   > *"What can you do with the Haystack connector?"*

⚠️ ***Friendly heads up:*** We're still testing Gemini. If you run into trouble, please email **support@haystackteam.com** and we'll help you get connected.

---

#### **Best Practices**

- **Mention Haystack in your prompt:** "Search Haystack for…" helps Gemini choose Haystack over web search.
- **Ask for citations:** "Cite the page title" makes answers easy to check.
- **Save posts as drafts first:** Review in Haystack before anything goes live.
- **Keep credentials private:** Always sign in through the official Haystack login window.

---

#### **Need More Help?**

- **Chat with us:** Available via the support bubble on this page. Our AI support agent, Luna, will do her best to answer your questions. Anything she's unable to answer will get routed to us humans.

- **Email us:** support@haystackteam.com
- **Got Feedback?** What would make these tools more useful for your team? Your feedback shapes the future of Haystack's MCP connectors. Share it with your CSM or at support@haystackteam.com.

- [Haystack Basics](https://support.haystackteam.com/en/haystack-basics?hsLang=en#main-content)

    - [Profile](https://support.haystackteam.com/en/haystack-basics?hsLang=en#profile)
    - [Notifications](https://support.haystackteam.com/en/haystack-basics?hsLang=en#notifications)
    - [Mobile App](https://support.haystackteam.com/en/haystack-basics?hsLang=en#mobile-app)
    - [Workspace Navigation](https://support.haystackteam.com/en/haystack-basics?hsLang=en#workspace-navigation)
    - [Logging In](https://support.haystackteam.com/en/haystack-basics?hsLang=en#logging-in)
    - [Profile Preferences](https://support.haystackteam.com/en/haystack-basics?hsLang=en#profile-preferences)
- [Content Creation & Management](https://support.haystackteam.com/en/content-creation-management?hsLang=en#main-content)

    - [Text & Rich Content Editor](https://support.haystackteam.com/en/content-creation-management?hsLang=en#text-rich-content-editor)
    - [Posts](https://support.haystackteam.com/en/content-creation-management?hsLang=en#posts)
    - [Pages & Subpages](https://support.haystackteam.com/en/content-creation-management?hsLang=en#pages-subpages)
    - [Events](https://support.haystackteam.com/en/content-creation-management?hsLang=en#events)
    - [Glossary](https://support.haystackteam.com/en/content-creation-management?hsLang=en#glossary)
    - [Links](https://support.haystackteam.com/en/content-creation-management?hsLang=en#links)
    - [Drafts, Submissions, and Archive](https://support.haystackteam.com/en/content-creation-management?hsLang=en#drafts-submissions-and-archive)
    - [Templates](https://support.haystackteam.com/en/content-creation-management?hsLang=en#templates)
    - [Content Feedback](https://support.haystackteam.com/en/content-creation-management?hsLang=en#content-feedback)
    - [Inspiration Hub](https://support.haystackteam.com/en/content-creation-management?hsLang=en#inspiration-hub)
    - [GIFs](https://support.haystackteam.com/en/content-creation-management?hsLang=en#gifs)
    - [Data Hygiene](https://support.haystackteam.com/en/content-creation-management?hsLang=en#data-hygiene)
- [Managing Your Workspace](https://support.haystackteam.com/en/managing-your-workspace?hsLang=en#main-content)

    - [Groups and Group Owners](https://support.haystackteam.com/en/managing-your-workspace?hsLang=en#groups-and-group-owners)
    - [Admins & Users](https://support.haystackteam.com/en/managing-your-workspace?hsLang=en#admins-users)
    - [Analytics](https://support.haystackteam.com/en/managing-your-workspace?hsLang=en#analytics)
    - [Security](https://support.haystackteam.com/en/managing-your-workspace?hsLang=en#security)
    - [Branding](https://support.haystackteam.com/en/managing-your-workspace?hsLang=en#branding)
    - [Dashboard](https://support.haystackteam.com/en/managing-your-workspace?hsLang=en#dashboard)
    - [Feedback Tools](https://support.haystackteam.com/en/managing-your-workspace?hsLang=en#feedback-tools)
    - [Language & Translation](https://support.haystackteam.com/en/managing-your-workspace?hsLang=en#language-translation)
    - [Managing Archived & Deleted Content](https://support.haystackteam.com/en/managing-your-workspace?hsLang=en#managing-archived-deleted-content)
    - [Assigning Home Pages & Location-Based Home Pages](https://support.haystackteam.com/en/managing-your-workspace?hsLang=en#assigning-home-pages-location-based-home-pages)
- [Platform Integrations](https://support.haystackteam.com/en/platform-integrations?hsLang=en#main-content)

    - [AI Integrations](https://support.haystackteam.com/en/platform-integrations?hsLang=en#ai-integrations)
    - [Embedded Content Integrations](https://support.haystackteam.com/en/platform-integrations?hsLang=en#embedded-content-integrations)
    - [Notifications Integrations](https://support.haystackteam.com/en/platform-integrations?hsLang=en#notifications-integrations)
    - [Single Sign-On and People Data Management Integrations](https://support.haystackteam.com/en/platform-integrations?hsLang=en#single-sign-on-and-people-data-management-integrations)
    - [HRIS Integrations](https://support.haystackteam.com/en/platform-integrations?hsLang=en#hris-integrations)
    - [Search Integrations](https://support.haystackteam.com/en/platform-integrations?hsLang=en#search-integrations)
    - [Browser Extensions](https://support.haystackteam.com/en/platform-integrations?hsLang=en#browser-extensions)
    - [Advanced Analytics with Looker](https://support.haystackteam.com/en/platform-integrations?hsLang=en#advanced-analytics-with-looker)
    - [Calendar Integrations](https://support.haystackteam.com/en/platform-integrations?hsLang=en#calendar-integrations)
- [Haystack AI](https://support.haystackteam.com/en/haystack-ai?hsLang=en)
- [Employee Recognition](https://support.haystackteam.com/en/employee-recognition?hsLang=en)
- [Digital Signage](https://support.haystackteam.com/en/digital-signage?hsLang=en)
- [SMS Alerts](https://support.haystackteam.com/en/sms-alerts?hsLang=en)
- [Troubleshooting](https://support.haystackteam.com/en/troubleshooting?hsLang=en#main-content)

    - [Trouble Logging In](https://support.haystackteam.com/en/troubleshooting?hsLang=en#trouble-logging-in)
    - [Email Notification Issues](https://support.haystackteam.com/en/troubleshooting?hsLang=en#email-notification-issues)
    - [Submit A Ticket](https://support.haystackteam.com/en/troubleshooting?hsLang=en#submit-a-ticket)
    - [Other](https://support.haystackteam.com/en/troubleshooting?hsLang=en#other)
- [Product Updates](https://support.haystackteam.com/en/product-updates?hsLang=en#main-content)

    - [2025, December](https://support.haystackteam.com/en/product-updates?hsLang=en#2025-december)
    - [2025, November](https://support.haystackteam.com/en/product-updates?hsLang=en#2025-november)
    - [2025, October](https://support.haystackteam.com/en/product-updates?hsLang=en#2025-october)
    - [2025, September](https://support.haystackteam.com/en/product-updates?hsLang=en#2025-september)
    - [2025, August](https://support.haystackteam.com/en/product-updates?hsLang=en#2025-august)
    - [2025, July](https://support.haystackteam.com/en/product-updates?hsLang=en#2025-july)
    - [2025, June](https://support.haystackteam.com/en/product-updates?hsLang=en#2025-june)
    - [2025, May](https://support.haystackteam.com/en/product-updates?hsLang=en#2025-may)
    - [2025, April](https://support.haystackteam.com/en/product-updates?hsLang=en#2025-april)
    - [2025, March](https://support.haystackteam.com/en/product-updates?hsLang=en#2025-march)
    - [2026, January](https://support.haystackteam.com/en/product-updates?hsLang=en#2026-january)
    - [2026, February](https://support.haystackteam.com/en/product-updates?hsLang=en#2026-february)
    - [2026, March](https://support.haystackteam.com/en/product-updates?hsLang=en#2026-march)
    - [2026, April](https://support.haystackteam.com/en/product-updates?hsLang=en#2026-april)
    - [2026, May](https://support.haystackteam.com/en/product-updates?hsLang=en#2026-may)
    - [2026, June](https://support.haystackteam.com/en/product-updates?hsLang=en#2026-june)
    - [2026, July](https://support.haystackteam.com/en/product-updates?hsLang=en#2026-july)
    - [2026, August](https://support.haystackteam.com/en/product-updates?hsLang=en#2026-august)
    - [2026, September](https://support.haystackteam.com/en/product-updates?hsLang=en#2026-september)
    - [2026, October](https://support.haystackteam.com/en/product-updates?hsLang=en#2026-october)
- [Accessibility](https://support.haystackteam.com/en/accessibility?hsLang=en)

[![7e073a72-1924-46d0-87d0-05dfb17c1d82](https://support.haystackteam.com/hs-fs/hubfs/7e073a72-1924-46d0-87d0-05dfb17c1d82.png?width=50&height=50&name=7e073a72-1924-46d0-87d0-05dfb17c1d82.png "7e073a72-1924-46d0-87d0-05dfb17c1d82")](https://support.haystackteam.com/?hsLang=en)

www.haystackteam.com

Copyright © 2025, Haystack Team, Inc.