Provides environment variable management for storing Microsoft App Registration credentials and other configuration options.
Provides repository access for installing the MCP server via git clone from GitHub.
Used for package management and running scripts for the MCP server.
Enhanced Outlook MCP Server
This is an enhanced, modular implementation of the Outlook MCP (Model Context Protocol) server that connects Claude with Microsoft Outlook through the Microsoft Graph API. This server provides a robust set of tools for email, calendar, folder management, and rule creation.
Features
Complete Authentication System: OAuth 2.0 authentication with Microsoft Graph API with token refresh and multiple user support
Email Management: List, search, read, send, and organize emails with attachment support
Calendar Integration: Create, modify, and manage calendar events with attendee tracking
Folder Organization: Create, manage, and navigate email folders
Rules Engine: Create and manage complex mail processing rules
Modular Architecture: Clean separation of concerns for better maintainability and extensibility
Enhanced Error Handling: Detailed error messages and logging
Test Mode: Simulated responses for testing without real API calls
Rate Limiting: Prevent API throttling with built-in rate limiting
Multi-environment Configuration: Support for development, testing, and production environments
Related MCP server: MCP Server Resend
Directory Structure
Installation
Clone the repository:
git clone https://github.com/your-username/enhanced-outlook-mcp.git cd enhanced-outlook-mcpInstall dependencies:
npm installCreate a
.envfile based on.env.examplewith your Microsoft App Registration details:MS_CLIENT_ID=your_client_id MS_CLIENT_SECRET=your_client_secret # Additional configuration options
Usage with Claude
Configure Claude to use the MCP server by adding the following to your Claude configuration:
{ "tools": [ { "name": "enhanced-outlook-mcp", "url": "http://localhost:3000", "auth": { "type": "none" } } ] }Start the MCP server:
npm startIn a separate terminal, start the authentication server:
npm run auth-serverUse the authenticate tool in Claude to initiate the authentication flow.
Authentication Flow
Start the authentication server on the configured port (default: 3333)
Use the
authenticatetool to get an authentication URLComplete the authentication in your browser
Tokens are securely stored in the configured location
Development
To run the server in development mode with auto-reload:
To run tests:
License
MIT License
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.