Set up the Glean plugin in Claude Code
Install the Glean plugin for your Claude Code account or add it to a repository for everyone who works there.
Prerequisites
Before you install the plugin:
- Ask your Glean administrator to complete the Glean plugin prerequisites
- Install Node.js to run the plugin's local Model Context Protocol (MCP) server
Install for yourself
Run these commands in Claude Code:
/plugin marketplace add gleanwork/claude-plugins
/plugin install glean@glean-plugins
/reload-plugins
Confirm that /glean_run is available after the plugin installs.
Install for a repository
To make the plugin available to everyone who works in a repository, add the marketplace and plugin to .claude/settings.json. Merge these settings with any existing configuration:
{
"extraKnownMarketplaces": {
"glean-plugins": {
"source": {
"source": "github",
"repo": "gleanwork/claude-plugins",
"ref": "main"
}
}
},
"enabledPlugins": {
"glean@glean-plugins": true
},
"env": {
"USE_CLAUDE_PROJECT_DIR": "1"
}
}
enabledPlugins is optional and installs the plugin automatically for everyone who works in the repository. Setting USE_CLAUDE_PROJECT_DIR to 1 prevents repeated file-read permission requests during local project workflows.
The plugin can create files inside the repository during local workflows. Add its working path to .gitignore:
# Glean plugin local files
.claude/tmp/
For administrator guidance, see Deploy the Glean plugin in Claude Code.
For current Claude Code requirements and commands, see Glean Plugin for Claude Code on the Developer Portal.
Next steps
Return to Use the Glean plugin to authenticate, verify the setup, and run your first request.