Skip to content
← All MCP servers

Is the Glean MCP server safe? What it can reach

What the Glean MCP server can read, write and delete, how it signs in, and how to limit it in Claude Code and Codex.

Official serverChecked

Glean runs a managed MCP server inside your Glean instance, and Glean’s own docs say to use it instead of the archived local server. It signs in with OAuth and every call runs as the signed-in user, so it sees only what that person can already see in Glean. It can also save artifacts, share them by email and run connected tools. Admins choose which toolsets each MCP server exposes.

Who maintains it

ImplementationKindStatus
Glean managed MCP server (Glean, official)Officialactive
gleanwork/mcp-server (local stdio server)Officialarchived

It runs as a hosted remote server.

How it signs in

Glean’s OAuth authorization server (OAuth 2.1 with PKCE, SSO sign-in) is recommended. User-scoped Glean API tokens with the MCP scope are a fallback. Every tool call runs with the authenticated user’s permissions, and a token works for one tenant only.

Scope or permissionAccess
MCP (API token scope)read

What its tools can do

KindTools
Readsearch, chat, read_document, code_search, employee_search, user_activity, gmail_search, outlook_search, meeting_lookup, web_search, gemini_web_search, knowledge_graph_query, knowledge_graph_schema, data_analysis, memory_schema, find_skills, read_skill_files
Writeupload_artifact, update_artifact, create_image, edit_image
Can’t be undoneshare_artifact, memory, run_tool

Admins add toolsets to a server, so your tool list depends on your deployment. share_artifact needs Chat Sharing. memory can read, add, update and delete memories. run_tool runs connected tools that Glean Skills select, and write actions follow Glean’s approval setting. Glean’s page does not mark read or write for chat and data_analysis.

Built-in limits

OptionWhat it does
Toolsets per MCP serverAdmins add toolsets (artifacts, memory, image generation, dynamic skills) to each server in the Admin console under Platform, Glean MCP servers. New managed servers start off.
OAuth client controlAdmins can block dynamic client registration, use static OAuth clients and set a redirect URI allowlist.
Write action approvalWrite actions run through run_tool follow Glean’s approval setting.
Revocation and logsAdmins can revoke a client or sign users out of all sessions. MCP activity logs record tool use by server, tool and user.
IP greenlistsTenant-wide and application-level IP greenlists limit where MCP calls can come from.

The risks

  • Glean searches across email, chat, documents and code, so an injected instruction hidden in one indexed document could steer the agent to pull other sensitive content into the conversation.
  • share_artifact grants view access by email, and memory can delete a user’s saved memories, so an injected instruction could leak or erase content.
  • run_tool can reach connected business tools, and what it can write depends on Glean’s approval setup, which is an admin choice rather than a fixed rule.
  • Glean returns only what the user can see, but anything it returns is then handled under the AI host’s own retention and processing rules.
  • OAuth access tokens last 7 days and refresh tokens 180 days by default, so a stolen token stays useful until an admin revokes it.

Limit it in Claude Code

Add it from the documented launch settings, at local or user scope so a token never lands in a shared .mcp.json:

claude mcp add --transport http glean https://{your-backend-domain}/mcp/{your-mcp-server-name}

Claude Code names MCP tools mcp__glean__<tool>. Deny rules win over ask rules, and ask rules over allow rules. Put these in ~/.claude/settings.json or the project’s .claude/settings.json:

{
  "permissions": {
    "ask": [
      "mcp__glean__share_artifact",
      "mcp__glean__memory",
      "mcp__glean__run_tool",
      "mcp__glean__upload_artifact",
      "mcp__glean__update_artifact",
      "mcp__glean__create_image",
      "mcp__glean__edit_image"
    ]
  }
}

Limit it in Codex

Codex reads MCP servers from ~/.codex/config.toml. disabled_tools removes tools, and enabled_tools keeps only the ones you list:

[mcp_servers.glean]
url = "https://{your-backend-domain}/mcp/{your-mcp-server-name}"

Checklist

  • Ask your admin to enable only the toolsets your team needs.
  • Keep write actions on Glean’s approval setting.
  • Use OAuth with SSO rather than an API token.
  • Ask before share_artifact and memory in your client.

Checked against the vendor documentation on November 25, 2026. About Glean MCP server · Built-in Glean tools · MCP Security, Data Flow, and Permissions · Using the Glean MCP Server · Archived gleanwork/mcp-server README

What Excellent covers

Excellent doesn’t inspect MCP servers themselves. Its free scan reads supported logs on the Mac (Claude Code, Codex, Grok Build, GitHub Copilot CLI, Gemini CLI and Qwen Code) and reports findings for review, so you can see what an agent did after a session. Run the free scan · See a sample report · How to vet any MCP server

Excellent Pro adds checks before supported actions. Claude Code can display an ask prompt. With Codex, an Excellent “ask” refuses the action and tells the agent to ask you. Pro is US-only for now. Agent coverage · Pricing