Labsco
Norcim133 logo

Outlook

β˜… 16

from Norcim133

Access your Microsoft 365 mail, calendar, and files using the Microsoft Graph API.

πŸ”₯πŸ”₯πŸ”₯πŸ”₯βœ“ VerifiedFreeAdvanced setup

OutlookMCPServer

This project is an MCP server that gives Claude Desktop access to your Microsoft 365 mail, calendar, and files using the Microsoft Graph API.


✨ Features

  • βœ… Mail access: Compose, Respond, Sort, Search, Filter, and Analyze your inbox from Claude or any MCP-compatible agent
  • βœ… Calendar support: Find invites, List Events, Compose/Update/Send Events
  • βœ… OneDrive support: Search files, get file metadata
  • βœ… Sharepoint support: Load drives, search files, get file metadata

🧱 Tech Stack

  • msgraph (modern Microsoft Graph SDK)
  • azure.identity with DeviceCodeCredential and TokenCachePersistenceOptions
  • FastMCP β€” simple MCP-compliant server interface
  • uv β€” fast Python dependency and env management

Claude for Desktop Integration

To integrate with Claude Desktop, add this to your claude_desktop_config.json:

Copy & paste β€” that's it
{
  "mcpServers": {
    "outlook": {
      "command": "uv",
      "args": [
        "run",
        "--with",
        "azure-identity,mcp[cli],msgraph-core,msgraph-sdk",
        "mcp",
        "run",
        "/absolute/path/to/OutlookMCPServer"
      ]
    }
  }
}

In Claude Desktop, you can find the json file by looking in Settings/Developer/Edit Config.

NOTE: You may need to replace "uv" with an absolute reference in "command"

Restart Claude Desktop each time you make a change to config or to the server code.


πŸ“¦ Folder Structure

Copy & paste β€” that's it
.
β”œβ”€β”€ README.md
β”œβ”€β”€ main.py
β”œβ”€β”€ settings.py
β”œβ”€β”€ auth_cache/
β”‚   └── auth_record.json
β”œβ”€β”€ mcpserver/
β”‚   └── graph/
β”‚       β”œβ”€β”€ __init__.py
β”‚       β”œβ”€β”€ calendar_service.py
β”‚       β”œβ”€β”€ controller.py
β”‚       β”œβ”€β”€ file_service.py
β”‚       β”œβ”€β”€ mail_service.py
β”‚   β”œβ”€β”€ __init__.py
β”‚   β”œβ”€β”€ auth_wrapper.py
β”‚   β”œβ”€β”€ context_manager.py
β”‚   β”œβ”€β”€ mail_query.py
β”‚   β”œβ”€β”€ message_info.py
β”‚   └── server.py
β”œβ”€β”€ tests/
β”œβ”€β”€ .env
β”œβ”€β”€ __init__.py
β”œβ”€β”€ main.py

πŸ“Œ Roadmap

  • Mail integration (DONE)
  • Auth in Claude Desktop (DONE)
  • Calendar integration (DONE)
  • OneDrive integration (DONE)
  • Sharepoint integration (DONE)

πŸ“„ License

MIT

Copyright (c) 2024 Enthoosa AI

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.