Connect Claude Code to your Microsoft 365 environment via Work IQ
This plugin integrates Microsoft Work IQ into Claude Code, enabling you to query your Microsoft 365 data — people, emails, meetings, documents, and Teams messages — directly while coding.
Use case: When working in a codebase and you encounter a person's name in git blame, need to find the owner of a service, want to look up meeting notes about an architecture decision, or need to find related documents — WorkIQ brings your organizational context directly into your coding workflow.
This plugin is a Claude Code integration layer on top of Microsoft's Work IQ MCP server. Work IQ itself is the engine that authenticates with Microsoft 365 and queries your organizational data. This plugin adds:
- Slash commands (
/workiq:ask,/workiq:setup) for direct interaction - An agent (
org-knowledge) that Claude automatically uses when you mention people, teams, or projects - A skill (
workiq-capabilities) that teaches Claude when Work IQ is relevant to your task - MCP server configuration so Claude Code starts Work IQ automatically
When the plugin is installed, Claude Code launches the Work IQ MCP server as a background process at session start. Queries go through the MCP protocol directly — there's no shell fallback or manual npx calls needed.
Queries to Work IQ typically take 5–15 seconds to return. This is expected — each query authenticates with Microsoft Entra, hits the Microsoft 365 Copilot backend, and processes a natural language response. This is not a limitation of the plugin; it's the round-trip to Microsoft's services.
- Node.js (v18+)
- Microsoft 365 subscription with Copilot license
- Tenant admin consent (see setup guide)
/plugin marketplace add Aanerud/claude-code-workiq-plugin
/plugin install workiq@aanerud-plugins
The MCP server starts at session launch. Restart Claude Code after installing so the Work IQ server initializes.
Run /workiq:setup in Claude Code to verify your configuration and complete authentication.
The plugin configures Claude Code to start the Work IQ MCP server automatically via npx -y @microsoft/workiq mcp. This uses npx so no global npm install is required — it downloads and runs the latest version on-the-fly. If you already have @microsoft/workiq installed globally, npx will use your local copy.
| Command | Description |
|---|---|
/workiq:ask <question> |
Query your M365 environment directly |
/workiq:setup |
First-time setup and troubleshooting guide |
Claude automatically dispatches to this agent when you encounter person names, project references, or need organizational context while coding. No manual invocation needed.
Provides Claude with knowledge about what Work IQ can do, so it proactively suggests using it when relevant to your task.
/workiq:ask Who is my manager?
/workiq:ask Who is the lead developer on the payments service?
/workiq:ask What emails did I get from Sarah about the API migration?
/workiq:ask What meetings do I have tomorrow?
/workiq:ask Find documents about the Q4 architecture review
/workiq:ask Summarize today's messages in the Platform Engineering channel
- Work IQ respects your existing Microsoft 365 permissions
- You can only access data you already have permission to view
- Authentication is handled by Microsoft Entra (Azure AD)
- No credentials are stored by this plugin
- The MCP server runs locally on your machine
Run /workiq:setup in Claude Code for interactive troubleshooting, or:
- Empty responses: Make sure you've restarted Claude Code after installing the plugin so the MCP server is running
- Auth errors: Verify your tenant admin has granted consent for Work IQ
- No results: Check your M365 permissions and try broader queries
- Server not starting: Verify Node.js is installed and
npxhas internet access - Slow responses: This is expected — see Performance above
- Issues: https://github.com/microsoft/work-iq-mcp/issues
Contributions welcome! Please open an issue or pull request.
MIT — see LICENSE
- Microsoft Work IQ for the MCP server
- Claude Code plugin system