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
Directory Structure
/enhanced-outlook-mcp/
βββ index.js # Main entry point
βββ config.js # Configuration settings
βββ .env.example # Example environment variables
βββ auth/ # Authentication modules
β βββ index.js # Authentication exports
β βββ token-manager.js # Token storage and refresh
β βββ multi-user-support.js # Multiple user support
β βββ tools.js # Auth-related tools
βββ email/ # Email functionality
β βββ index.js # Email exports
β βββ list.js # List emails
β βββ search.js # Search emails
β βββ read.js # Read email
β βββ send.js # Send email
β βββ attachments.js # Handle email attachments
βββ calendar/ # Calendar functionality
β βββ index.js # Calendar exports
β βββ create-event.js # Create calendar events
β βββ list-events.js # List calendar events
β βββ update-event.js # Update calendar events
β βββ delete-event.js # Delete calendar events
βββ folder/ # Folder management
β βββ index.js # Folder exports
β βββ list.js # List folders
β βββ create.js # Create folders
β βββ move.js # Move items between folders
βββ rules/ # Mail rules functionality
β βββ index.js # Rules exports
β βββ create.js # Create mail rules
β βββ list.js # List mail rules
β βββ delete.js # Delete mail rules
βββ utils/ # Utility functions
βββ graph-api.js # Microsoft Graph API helper
βββ odata-helpers.js # OData query building
βββ logger.js # Logging utility
βββ rate-limiter.js # API rate limiting
βββ mock-data/ # Test mode mock data
βββ emails.js # Mock email data
βββ folders.js # Mock folder data
βββ calendar.js # Mock calendar data
βββ rules.js # Mock rules data
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 URL - Complete the authentication in your browser
- Tokens are securely stored in the configured location
Development
To run the server in development mode with auto-reload:
npm run dev
To run tests:
npm test
License
MIT License
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Enhanced Outlook MCP Server
Project Details
- jibberish69/enhanced-outlook-mcp
- Last Updated: 4/4/2025
Recomended MCP Servers
Model Context Protocol Server for Mobile Automation and Scraping (iOS, Android, Emulators, Simulators and Physical Devices)
A cli tool to control Tuya devices based on tinytuya
Official Vectorize MCP Server
This is the most comprehensive wordpress mcp server. Includes functionality to perform CRUD operations on Users, Blogs, Categories...
Lightweight MCP server to give your Cursor Agent access to the Cloudflare API.
A connector for Claude Desktop to read and search an Obsidian vault.
A Model Context Protocol (MCP) server implementation for the Portkey AI platform, providing a standardized interface for managing...
MCP Android agent - This project provides an *MCP (Model Context Protocol)* server for automating Android devices using...
Official Firecrawl MCP Server - Adds powerful web scraping to Cursor, Claude and any other LLM clients.
Her tΓΌrlΓΌ meyve hakkΔ±nda bilgi verir
Model Context Protocol (MCP) server for controlling Sonic Pi through AI assistants





