Outlook

by jibberish69

2 stars
Not rated
GitHub

About

Bridges Microsoft Graph API to enable seamless email, calendar, and messaging interactions through natural language commands and comprehensive management tools.

Details

Author
jibberish69
Repository
jibberish69/enhanced-outlook-mcp
GitHub stars
2
Categories
Design, Developer Tools, AI, API
Tags
#integration

- 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

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name Outlook
    Command (node, npx, python, etc.) npx
    Arguments
    • Argument 1 -y
    • Argument 2 @highlight/mcp-server

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

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

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.

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

list_emails

List all emails in the user's inbox.

search_emails

Search for emails based on a query string.

read_email

Read a specific email by its ID.

send_email

Send a new email. Parameters: recipient (string), subject (string), body (string), attachments (optional array of files).

create_calendar_event

Create a new calendar event. Parameters: title (string), start_time (datetime), end_time (datetime), attendees (optional array of emails).

list_calendar_events

List all calendar events for the user.

update_calendar_event

Update an existing calendar event by its ID. Parameters: event_id (string), updated_details (object).

delete_calendar_event

Delete a calendar event by its ID.

list_folders

List all email folders.

create_folder

Create a new email folder. Parameters: folder_name (string).

move_items_between_folders

Move items from one folder to another. Parameters: item_ids (array of strings), target_folder_id (string).

create_mail_rule

Create a new mail processing rule. Parameters: rule_details (object).

list_mail_rules

List all mail processing rules.

delete_mail_rule

Delete a mail processing rule by its ID.

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "outlook": {
            "env": {},
            "args": [
                "-y",
                "@highlight/mcp-server"
            ],
            "command": "npx"
        }
    }
}

Linux

{
    "env": [],
    "args": [
        "-y",
        "@highlight/mcp-server"
    ],
    "command": "npx"
}

Macos

{
    "env": [],
    "args": [
        "-y",
        "@highlight/mcp-server"
    ],
    "command": "npx"
}

Windows

{
    "env": [],
    "args": [
        "/c",
        "npx",
        "-y",
        "@highlight/mcp-server"
    ],
    "command": "cmd"
}

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.29:["$","div",null,{"className":"my-8 pb-8 h-full max-w-5xl mx-auto","children":["$","div",null,{"className":"grid grid-cols-1 md:grid-cols-3 gap-6","children":["$","$L30",null,{"mcp":{"id":"mcp_Xu6DWFPDYNSE","name":"Outlook","description":"Bridges Microsoft Graph API to enable seamless emai

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.