Glean Chatbot
Glean Chatbot
Der Chatbot indiziert eine kleine Reihe intern Dokumenten in Glean, beantwortet Fragen bezogen auf diese Dokumenten via Search und Chat und stellt denselben Ablauf als MCP-Tool (ask_glean) bereit.
Voraussetzungen
Python 3.10+
Eine Glean-Instanz
Ein Token für die Indexing-API
Ein Client-API-Token mit Search- und Chat-Scopes
Related MCP server: Glean Remote MCP Server
Einrichtung
Das Repository klonen und in des Verzeichnis wechseln:
git clone <your-repo-url>
cd glean-chatbotAbhängigkeiten installieren:
pip install -r requirements.txtEin
.envaus dem Beispiel anlegen und die einelnen Werte eintragen:
# macOS / Linux
cp .env.example .env
# Windows (PowerShell)
copy .env.example .envVariable | Erforderlich | Zweck |
| ja | Instanzname ( |
| ja | Indexing-API-Token |
| ja | Client-API-Token (Search + Chat) |
| ja* | Benutzer-E-Mail für |
| nein | Name der Datenquelle (Standard: |
| nein | Anzeigename in der Glean-UI |
| nein | Regex, dem jede Dokumenten- |
.envw wird von config.py automatisch geladen (via python-dotenv). Du musst sie nicht selbst per source laden.
Ausführen
Dokumente indizieren
python scripts/index_documents.py
# optional: wait until Search can find them
python scripts/index_documents.py --verifyCLI-Abfragen
python scripts/ask.py "Who owns the Enronry Tony contract?"
python scripts/ask.py "What must OKLightning Tony deliver before go-live?" --top-k 3MCP (Cursor)
Die Projektkonfiguration liegt in .cursor/mcp.json (absoluter Pfad zu src/mcp_server.py plus Umgebungsvariablen). Nach dem Bearbeiten Cursor neu starten / MCP neu laden. Das Tool heißt ask_glean.
Einen alleinigen Smoke-Test des Servers durchführen:
python src/mcp_server.pyTests
python tests/test_pipeline.pyKein Netzwerkzugriff; Search/Chat werden gemockt.
Funktionsweise
scripts/index_documents.py überträgt data/documents.json über die Indexing-API. Bei einer Abfrage ruft src/pipeline.py zuerst Search auf und dann – nur falls es Treffer gibt – Chat mit den Treffern als Kontext (Closed Book) und liefert eine Antwort plus Quellen. CLI und MCP verwenden dieselbe Pipeline. Die Ergebnisse sind auf unsere eigenen Dokumente beschränkt; wenn Search nichts liefert, schlagen wir ähnliche Dokumenttitel vor, statt eine Antwort zu erfinden.
Hinweise / Einschränkungen
Die gemeinsame Sandbox ignoriert
datasourcesFilter; wir filtern client-seitig anhand des Dokument-ID-Präfix (CUSTOM_<DATA_SOURCE>_Contract_).Die Indexierung ist asynchron – Dokumente können einige Minuten benötigen, bis sie durchsuchbar sind.
Demo-Dokumente verwenden
allowAnonymousAccess: true. Das nicht in Produktion ausliefern.Die
viewURLs der Dokumente müssen derGLEAN_URL_REGEXentsprechen, sonst lehnt die Indexierung sie ab.
Siehe DESIGN_NOTE.md für API-Abwägungen und Produktionshinweise.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables semantic search and retrieval of personal and team knowledge from connected sources like Slack, Gmail, Google Drive, and Dropbox, with the ability to save new information for future recall.Apache 2.0

Glean Remote MCP Serverofficial
AlicenseNot gradedqualityCmaintenanceEnables AI assistants and developer tools to securely access and interact with an organization's enterprise knowledge, documents, and people through natural language while respecting existing access permissions.164MIT- FlicenseNot gradedqualityFmaintenanceEnables semantic search across documentation stored in Gemini FileSearchStores, returning AI-generated answers with source citations.1

Rememberizer MCP Serverofficial
AlicenseNot gradedqualityDmaintenanceEnables querying and managing personal/team internal knowledge from sources like Slack, Gmail, and Drive through semantic search and retrieval.Apache 2.0
Related MCP Connectors
Search your knowledge bases from any AI assistant using hybrid RAG.
Search and reason over your Obsidian-style Markdown vault, right from ChatGPT.
Connect your team's living knowledge base — docs, data, issues, CRM — to Claude and ChatGPT.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/tonyromero-ai/glean-chatbot'
If you have feedback or need assistance with the MCP directory API, please join our Discord server