Skip to main content
Glama

Lokka (Microsoft 365 MCP server)

install.mdx7.38 kB
--- title: 🚀 Install sidebar_position: 2 --- import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; # Install Lokka This quick start guide will help you set up Lokka with the minimum configuration needed to get started. If you want to learn more about the advanced configuration options, see the [Advanced Install Guide](/docs/install-advanced). ## Pre-requisites - Install [Node.js](https://nodejs.org/en/download/) - If you already have Node v22.10 or higher installed you can skip this step. - Check by running `node -v` at the command prompt. ## Configure the agent You can use the Lokka agent tool with any compatible MCP client and LLM combo. Claude is the simplest way to get started and provides the best experience. You can use the free version of Claude Desktop to test Lokka (there are daily limits on the free version). GitHub Copilot Agent in VS Code is another great option. <Tabs> <TabItem value="claude" label="Claude" default> ### Install Claude Desktop - Download the latest version of Claude Desktop from [https://claude.ai/download](https://claude.ai/download) - Install the application by following the instructions on the website. - Open the application and sign in with your account (you can register for a free account). ### Add Lokka to Claude Desktop - In Claude Desktop, open Settings by clicking on the hamburger icon in the top left corner. - Select **File** > **Settings** (or press `Ctrl + ,`) - On Mac, you can find the settings in the top menu bar under **Claude** > **Settings** (or press `Cmd + ,`). - In the **Developer** tab, click **Edit Config** - Note: If you don't see the Developer tab, you need to enable it first from `Help` > `Enable Developer Mode`. - This opens explorer, edit `claude_desktop_config.json` in your favorite text editor. - Add the following configuration to the file. ```json { "mcpServers": { "Lokka-Microsoft": { "command": "npx", "args": ["-y", "@merill/lokka"] } } } ``` - Exit Claude Desktop and restart it. - Every time you make changes to the code or configuration, you need to restart Claude desktop for the changes to take effect. - Note: In Windows, Claude doesn't exit when you close the window, it runs in the background. You can find it in the system tray. Right-click on the icon and select **Quit** to exit the application completely. ### Testing the agent - Open the Claude Desktop application. - You should see new browser window open and prompt you to sign into your Microsoft tenant. - Now you can start quering your Microsoft tenant using the Lokka agent tool. - Some sample queries you can try are: - `Get all users in my tenant` - `Show me the details for John Doe` - `Change John's department to IT` - Needs User.ReadWrite.All permission to be granted - `How many VMs do I have in my subscription?` - Needs Reader permission to be granted to the Azure subscription </TabItem> <TabItem value="vscode" label="VS Code"> ### Pre-requisites - Install the latest version of [VS Code](https://code.visualstudio.com) ### Add Lokka to GitHub Copilot <Tabs> <TabItem value="oneClickInstall" label="One Click Install" default> * Start **VS Code** and then click the button below to install Lokka in VS Code. * If your browser prompts you to open VS Code, click **Open**. * In the VS Code **Lokka-Microsoft** install page * Click **Install**. * Click the widget icon next to the button and select **Start Server**. * This will open a browser window and prompt you to sign into your Microsoft tenant. | Platform | VS Code | VS Code Insiders | | - | - | - | | Windows | [![Install in VS Code](https://img.shields.io/badge/VS_Code-Install_Lokka_for_Windows-0098FF?style=flat-square&logo=visualstudiocode&logoColor=ffffff)](vscode:mcp/install?%7B%22name%22%3A%22Lokka-Microsoft%22%2C%22type%22%3A%22stdio%22%2C%22command%22%3A%22cmd%22%2C%22args%22%3A%5B%22%2Fc%22%2C%22npx%22%2C%22-y%22%2C%22%40merill%2Flokka%22%5D%7D) | [![Install in VS Code Insiders](https://img.shields.io/badge/VS_Code_Insiders-Install_Lokka_for_Windows-24bfa5?style=flat-square&logo=visualstudiocode&logoColor=ffffff)](vscode-insiders:mcp/install?%7B%22name%22%3A%22Lokka-Microsoft%22%2C%22type%22%3A%22stdio%22%2C%22command%22%3A%22cmd%22%2C%22args%22%3A%5B%22%2Fc%22%2C%22npx%22%2C%22-y%22%2C%22%40merill%2Flokka%22%5D%7D) | | macOS/Linux | [![Install in VS Code](https://img.shields.io/badge/VS_Code-Install_Lokka_for_macOS_%26_Linux-0098FF?style=flat-square&logo=visualstudiocode&logoColor=ffffff)](vscode:mcp/install?%7B%22name%22%3A%22Lokka-Microsoft%22%2C%22type%22%3A%22stdio%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22%40merill%2Flokka%22%5D%7D) | [![Install in VS Code Insiders](https://img.shields.io/badge/VS_Code_Insiders-Install_Lokka_for_macOS_%26_Linux-24bfa5?style=flat-square&logo=visualstudiocode&logoColor=ffffff)](vscode-insiders:mcp/install?%7B%22name%22%3A%22Lokka-Microsoft%22%2C%22type%22%3A%22stdio%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22%40merill%2Flokka%22%5D%7D) | :::note If VS Code was not running when you clicked the button, you might need to click the button on this page again to install Lokka. ::: </TabItem> <TabItem value="manualInstall" label="Manual Install" default> - In VS Code, open the Command Palette by pressing `Ctrl + Shift +P` (or `Cmd + Shift + P` on Mac). - Type `MCP: Add` and select `MCP: Add Server...` - Select `Command (stdio)` - Command: - Windows: `cmd /c npx -y @merill/lokka` - macOS/Linux: `npx -y @merill/lokka` - Name: `Lokka-Microsoft` - Where to install: `Global` - This will open the `settings.json` file in VS Code. - `File` > `Save` to save the file. - Once you hit save, you should see a browser window open and prompt you to sign into your Microsoft tenant. </TabItem> </Tabs> ### Starting the MCP server manually Typically VSCode will automatically start the MCP server when needed, but you can also stop and start the MCP server manually. - Open the Command Palette again (`Ctrl + Shift +P`) and type `MCP` and select `MCP: List Servers` - Select `Lokka-Microsoft` from the list of servers. - Selet `Start Server` - This will start the Lokka server - Each time you hit Start you will see a browser window open and prompt you to sign into your Microsoft tenant. - If you want to stay connected to the same tenant, you can use [AppApp-only authentication](/docs/install-advanced/app-only-auth). ### Testing the agent - Start a new instance of VS Code (File > New Window) - Open `Chat` from `View` → `Chat` - At the bottom of the Chat panel (below the chat box) - Select `Agent` (if it is showing `Ask` or `Edit`) - Select `Claude Sonnet 4` or above (if it is showing `GPT-40`) - Now you can start querying your Microsoft tenant using the Lokka agent tool. - Some sample queries you can try are: - `Get all users in my tenant` - `Show me the details for John Doe` - `Change John's department to IT` - Needs User.ReadWrite.All permission to be granted - `How many VMs do I have in my subscription?` - Needs Reader permission to be granted to the Azure subscription :::note If the chat prompts you to install VS GitHub Copilot for Azure, click the **rerun without** link to continue using Lokka. ::: </TabItem> </Tabs>

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/merill/lokka'

If you have feedback or need assistance with the MCP directory API, please join our Discord server