🤖 Introduction
What is Lokka?
Lokka is a simple yet powerful middleware that connects AI language models (like ChatGPT or Claude) to your Azure and Microsoft 365 tenant using the Azure and Microsoft Graph APIs.
This allows you to perform administrative tasks using natural language queries.
In technical terms, Lokka is an implementation of the Model Context Protocol (MCP) for the Microsoft Graph and Azure APIs.
Here's a quick demo. Read on to learn how to set this up on your own machine.
Sample queries
Here are some examples of queries you can use with Lokka.
Create a new security group called 'Sales and HR' with a dynamic rule based on the department attribute.Find all the conditional access policies that haven't excluded the emergency access accountShow me all the Intune device configuration policies assigned to the 'Call center' groupWhat was the most expensive service in Azure last month?
You can ask Lokka to do anything that Microsoft Graph can do which includes support for Entra, Intune, Teams and SharePoint. In addition to graph you can also work with your Azure resources as well.
The agent will only be able to perform the actions based on the Graph and Azure permissions you grant it.
Interactive apps
In chat clients that support MCP Apps (like Claude Desktop and VS Code with GitHub Copilot), Lokka also renders interactive tools right inside the conversation: a full Graph explorer with endpoint and OData IntelliSense, Lokka Settings for connections and Guardrails, a multi-tenant connections manager, a permissions manager with one-click consent, optional Guardrails that are off by default and can be enabled during testing, and a visual help tour — just type lokka help to see them all. Learn more in the Interactive apps guide.
What is MCP?
Model Context Protocol (MCP) is an open protocol that enables AI models to securely interact with local and remote resources through standardized server implementations.
Lokka is an implementation of the MCP protocol for the Microsoft Graph API.

Getting started
Want to try Lokka? It's easy to get started!
Check out the installation guide.