Enhanced Outlook MCP Server

Enhanced Outlook MCP Server

Connects Claude with Microsoft Outlook through the Graph API, providing comprehensive email, calendar, folder management, and rules creation capabilities.

Category
Visit Server

README

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

  1. Clone the repository:

    git clone https://github.com/your-username/enhanced-outlook-mcp.git
    cd enhanced-outlook-mcp
    
  2. Install dependencies:

    npm install
    
  3. Create a .env file based on .env.example with your Microsoft App Registration details:

    MS_CLIENT_ID=your_client_id
    MS_CLIENT_SECRET=your_client_secret
    # Additional configuration options
    

Usage with Claude

  1. 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"
          }
        }
      ]
    }
    
  2. Start the MCP server:

    npm start
    
  3. In a separate terminal, start the authentication server:

    npm run auth-server
    
  4. Use the authenticate tool in Claude to initiate the authentication flow.

Authentication Flow

  1. Start the authentication server on the configured port (default: 3333)
  2. Use the authenticate tool to get an authentication URL
  3. Complete the authentication in your browser
  4. 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.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured