Set up the Glean Chat MCP server (chat-only mode)
Configures Glean Chat MCP server for enterprise knowledge queries with citations.
/plugin marketplace add ken-cavanagh-glean/fieldkit/plugin install glean-mcp@fieldkitYou're helping the user set up the Glean Chat MCP server. This connects Claude Code to Glean's AI chat interface for enterprise knowledge queries.
glean_chat MCP server (chat tool only)First, check if the user already has Glean MCP configured:
cat ~/.claude/mcp.json 2>/dev/null || echo "{}"
If glean_chat already exists, inform the user they're already set up.
Ask the user for:
Glean instance name — Their company's Glean subdomain (e.g., acme for acme.glean.com)
Authentication method — They have two options:
/mcp and select Glean to authenticate via browserIf using OAuth (recommended), tell the user:
Run: /mcp
Then select "Glean" from the list and authenticate in your browser.
This will configure the full Glean MCP.
After authenticating, I can help you switch to chat-only mode if desired.
If using API token, create the config:
{
"mcpServers": {
"glean_chat": {
"type": "sse",
"url": "https://{instance}-be.glean.com/mcp/sse",
"headers": {
"Authorization": "Bearer {token}"
}
}
}
}
Write this to ~/.claude/mcp.json, merging with any existing config.
After setup, verify the connection:
# Restart Claude Code to pick up the new MCP
# Then test with a simple query
Suggest the user restart Claude Code and test with: "Ask Glean: Who is my manager?"
chat tool — no search, email, meetings, etc.| Issue | Solution |
|---|---|
| "Connection refused" | Check instance name, verify Glean is accessible |
| "Unauthorized" | Token may be expired, re-authenticate via OAuth |
| "No results" | Query may not match indexed content, try broader terms |