Search Your Microsoft 365 Directory with AI on Mac
Let Claude, ChatGPT or Cursor search your Microsoft 365 org directory by name or email and return titles and departments — locally on your Mac, no API keys.
Ask: 'Search our Microsoft 365 directory for anyone named Sarah and show me their job titles and departments.'
The search_m365_directory tool lets your AI assistant look up people in your organization's Microsoft 365 directory by name or email, right from your Mac. It returns matching users along with their job title and department, so you can find the right colleague without opening the admin center or Outlook's address book. A typical prompt looks like: "Find everyone named Sarah in our Microsoft 365 directory and tell me their titles and departments." The AI runs the search through your local M365 connection and hands back a clean list.
This is part of LMCP, a free, native macOS MCP server with 230+ tools that connects AI assistants to your real apps and accounts. Download LMCP to get started.
Which AI assistants can use search_m365_directory?
search_m365_directory works with every major AI assistant that speaks the Model Context Protocol:
- Claude Desktop, Cursor, VS Code (GitHub Copilot), Windsurf and Zed — desktop clients that auto-configure over local stdio.
- ChatGPT, Claude.ai (web), Grok and Perplexity — web AIs that connect through the LMCP Cloud Relay connector.
Desktop clients discover the tool automatically once LMCP is installed; web AIs connect securely via the relay so they can reach the same directory data living on your Mac.
Can my AI automate search_m365_directory and chain it with other apps?
Directory lookups rarely stand alone — they feed the next step. Because the AI can chain tools, search_m365_directory becomes the lookup stage of bigger workflows:
- Find a person, then draft and send them an email or a Teams message.
- Resolve a name to an email address, then schedule a calendar invite with the right attendee.
- Pull everyone in a department, then build a contact list or a distribution summary.
- Confirm a colleague's title before generating an org chart or a project assignment.
You describe the goal in plain English and the AI orchestrates the steps for you.
Does search_m365_directory work with my real Mac data?
Unlike a generic chatbot that only knows public information, the AI here works with your real Microsoft 365 directory. It sees the actual people in your tenant — their current titles, departments and email addresses — so answers reflect your organization today, not a stale guess. That live context is what turns "who handles procurement?" into a precise, named answer.
How much time does search_m365_directory save?
Hunting through Outlook's address book or asking IT for someone's department breaks your flow. With search_m365_directory you stay in your AI chat: ask once, get the title, department and email in seconds, and immediately act on it. For anyone who routes requests, builds teams, or just needs to find the right person fast, it collapses a multi-minute hunt into a single sentence — dozens of times a week.
Is search_m365_directory private and GDPR-compliant?
Everything runs locally on your Mac. LMCP queries your Microsoft 365 directory through your own authenticated session and returns results straight to your AI client — no copy of your org's directory is stored on any LMCP server, and there are no third-party API keys to manage. Your colleagues' data never sits in a cloud middleman. Read more about how LMCP is GDPR-compliant by architecture.