• ADD
  • REMOVE
  • BULK
  • MANUAL

How to manage internal document indexing with your AI

Connect Glean once to give your agent direct control over its knowledge base. You decide which files are searchable and which stay private.

Ask AI about this page

Short answer

How can I control which documents my AI can search?

You can add new files to the index, remove specific documents, or perform bulk updates to the knowledge base. This gives you direct control over the information your agent uses to answer questions.

Knowledge outcomes

Where your data lands.

These are the different ways your agent modifies the searchable index.

ADD

New data included

The AI pulls in specific files you point to. This ensures your agent has access to the latest project notes or memos.

REMOVE

Stale data cleared

You can pull specific files out of the searchable index. This stops the AI from using outdated or sensitive information.

BULK

Mass updates applied

The AI processes large sets of documents at once. This is how you sync entire folders to the index quickly.

MANUAL

Human oversight

The AI doesn't decide what's important on its own. You must tell it which specific files to add or delete.

The workflow

What your AI does when you request index changes.

Your agent acts as the interface between your chat and the Glean index.

  1. Add files

    When you name a specific file, the AI adds it to the searchable pool.

    index_document
  2. Remove files

    If a document is no longer relevant, the AI removes it from the index so it won't show up in searches.

    delete_document
  3. Sync folders

    For larger updates, the AI processes multiple documents in a single batch operation.

    bulk_index_documents
  4. Update index

    The AI handles the heavy lifting of adding new content to the searchable database.

    bulk_index_documents

Try it

Copy these to start.

Use these prompts to trigger indexing actions.

Starting points

Replace the bracketed text with your actual file names or folder paths.

Glean Connector

You're all set. Choose your MCP client and follow the setup instructions.

Connector linkhttps://edge.vinkius.com/vk_preview_09DpmuoHpy04gE3mAUE0JxB62zuz4ktFq1xXnc9L/mcp

Claude Desktop

Follow the steps below to connect in seconds.

  1. 1In Claude Desktop, open Settings → Connectors.
  2. 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
  3. 3Click Add and start a new chat — Glean capabilities are ready to use.
Configuration · claude_desktop_config.jsonCopy
{
  "mcpServers": {
    "glean-mcp": {
      "url": "https://edge.vinkius.com/vk_preview_09DpmuoHpy04gE3mAUE0JxB62zuz4ktFq1xXnc9L/mcp"
    }
  }
}
Copy into chat04
  • Add the [Project Alpha] folder to the Glean index.

  • Delete the document titled [Old Policy 2023] from the index.

  • Bulk index all files in the [Marketing] directory.

  • Remove [Confidential_Draft.pdf] from the searchable knowledge base.

  • Claude
  • ChatGPT
  • Cursor
  • VS Code
  • Windsurf
  • Claude Code
  • JetBrains
  • Cline

Start here

Connect Glean once, then ask.

Just link your account to get started. Your credentials stay encrypted, and you can find the full list of capabilities on the Connector page.

Connect Glean to your AI

FAQ

How indexing behaves

  • 01

    Can the AI automatically decide what to index?

    No. You must explicitly tell the AI which documents or folders to add or remove.

  • 02

    Will the AI delete files from my actual storage?

    No. The AI only removes documents from the searchable index. Your original files remain untouched in their original location.

  • 03

    Can I add a single document at a time?

    Yes, you can add individual files as needed.

  • 04

    Does the AI handle bulk updates?

    Yes, it can process multiple documents at once if you request a bulk operation.

  • 05

    Can the AI change document permissions?

    No. This MCP only manages what is included in the index, not the underlying access rights of the files themselves.

  • More questions about Glean? See everything the Glean Connector can do

Connect Glean to Claude, Cursor, ChatGPT & more