Lokka (Microsoft 365 MCP server)
Lokka is a Microsoft Graph MCP server. It can be used to query and manage resources in your Microsoft 365 tenant. This MCP server supports all Microsoft Graph APIs including update operations (limited by the permissions you grant to the app).
Overview
Lokka is a Microsoft Graph MCP server that allows users to query and manage resources in their Microsoft 365 tenant using natural language through AI.
To use Lokka, install Node.js, clone the Lokka repository from GitHub, create an Entra application, grant permissions to Microsoft Graph, and configure the Lokka agent tool with a compatible MCP client like Claude Desktop.
- Natural language queries for Microsoft 365 resources - Support for all Microsoft Graph APIs including update operations - Integration with AI models for enhanced interaction
- Creating security groups with dynamic rules.
- Finding conditional access policies.
- Managing Intune device configuration policies.
Add to your AI client
Use these steps to connect Lokka (Microsoft 365 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": {
"lokka-merill": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-lokka-merill"
]
}
}
}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": {
"lokka-merill": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-lokka-merill"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"lokka-merill": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-lokka-merill"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"lokka-merill": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-lokka-merill"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"lokka-merill": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-lokka-merill"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"lokka-merill": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-lokka-merill"
]
}
}
}FAQ
Can Lokka manage all Microsoft 365 resources?
Yes! Lokka can manage a wide range of resources in Microsoft 365 through the Microsoft Graph API.
Is Lokka free to use?
Yes! Lokka is free to use, but some features may require a subscription to the AI client used.
How do I configure Lokka with Claude Desktop?
Follow the installation and configuration steps provided in the Lokka documentation.