Overview
Glean MCP Server is a Model Context Protocol (MCP) server that integrates with Glean's Chat API, allowing developers to create chat applications that can interact with Glean's services.
To use Glean MCP Server, clone the repository, install the necessary dependencies, configure your Glean API credentials, and run the server in either standalone or debug mode.
- Integration with Glean's Chat API for enhanced chat functionalities. - Support for standalone and debug modes for flexible development. - Easy configuration through environment variables.
- Building chat applications that require context-aware responses.
- Integrating Glean's services into existing applications for improved user interaction.
- Testing and debugging chat functionalities with the MCP inspector.
Add to your AI client
Use these steps to connect Glean MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"glean-mcp-server-rahul-roy-glean": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-glean-mcp-server-rahul-roy-glean"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"glean-mcp-server-rahul-roy-glean": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-glean-mcp-server-rahul-roy-glean"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"glean-mcp-server-rahul-roy-glean": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-glean-mcp-server-rahul-roy-glean"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"glean-mcp-server-rahul-roy-glean": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-glean-mcp-server-rahul-roy-glean"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"glean-mcp-server-rahul-roy-glean": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-glean-mcp-server-rahul-roy-glean"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"glean-mcp-server-rahul-roy-glean": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-glean-mcp-server-rahul-roy-glean"
]
}
}
}FAQ
What are the prerequisites for using Glean MCP Server?
You need Python 3.10+, the UV package manager, and a Glean API key with appropriate permissions.
How do I run the server?
You can run the server in standalone mode or debug mode using the provided commands in the documentation.
Where can I find more documentation?
You can find more documentation on the Model Context Protocol and Glean API through the provided links.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":3047,"uuid":"f34bedf2-fbec-4aa6-afec-909c8dabd58a","name":"glean-mcp-server","title":"Glean MCP Server","description":"MCP Server for Glean Chat","avatar_url":"https://avatars.githubusercontent.com/u/158014082?v=4","created_at":"2025-03-17T02:40:38.567Z","updated_at":"2025-03-17T04:04:31.487Z","status":"created","author_name":"rahul-roy-glean","author_avatar_url":"https://avatars.githubusercontent.com/u/158014082?v=4","tags":"glean,mcp,server,chat-api","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/rahul-roy-glean/glean-mcp-server","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":"{\"star\":\"0\",\"license\":\"\",\"language\":\"Python\",\"is_official\":false,\"latest_commit_time\":\"2025-03-17 01:52:11\"}","user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]