{"id":47883005,"url":"https://github.com/XenoXilus/outlook-mcp","last_synced_at":"2026-04-19T09:01:17.020Z","repository":{"id":333302235,"uuid":"1015661521","full_name":"XenoXilus/outlook-mcp","owner":"XenoXilus","description":"MCP server for Microsoft Office 365 Outlook – email, calendar \u0026 SharePoint integration for Claude, ChatGPT, and AI assistants via Microsoft Graph API","archived":false,"fork":false,"pushed_at":"2026-01-18T13:59:42.000Z","size":232,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-18T21:16:15.438Z","etag":null,"topics":["ai","ai-assistant","anthropic","calendar","chatgpt","claude","email-automation","javascript","llm","mcp","mcp-server","microsoft-graph","microsoft-outlook","model-context-protocol","nodejs","office365","outlook","outlook-365","sharepoint"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/XenoXilus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-07-07T21:06:51.000Z","updated_at":"2026-01-18T13:59:46.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/XenoXilus/outlook-mcp","commit_stats":null,"previous_names":["xenoxilus/outlook-mcp"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/XenoXilus/outlook-mcp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XenoXilus%2Foutlook-mcp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XenoXilus%2Foutlook-mcp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XenoXilus%2Foutlook-mcp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XenoXilus%2Foutlook-mcp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/XenoXilus","download_url":"https://codeload.github.com/XenoXilus/outlook-mcp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XenoXilus%2Foutlook-mcp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32000740,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T20:23:30.271Z","status":"online","status_checked_at":"2026-04-19T02:00:07.110Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","ai-assistant","anthropic","calendar","chatgpt","claude","email-automation","javascript","llm","mcp","mcp-server","microsoft-graph","microsoft-outlook","model-context-protocol","nodejs","office365","outlook","outlook-365","sharepoint"],"created_at":"2026-04-04T02:00:27.570Z","updated_at":"2026-04-19T09:01:16.997Z","avatar_url":"https://github.com/XenoXilus.png","language":"JavaScript","funding_links":["https://ko-fi.com/xenoxilus"],"categories":["Messaging Mcp Servers"],"sub_categories":[],"readme":"# Microsoft Outlook MCP Server\n\nA Model Context Protocol (MCP) server that enables AI assistants to interact with Microsoft Outlook email and calendar through the Microsoft Graph API.\n\n[![Download Latest Release](https://img.shields.io/github/v/release/XenoXilus/outlook-mcp?label=Download\u0026color=blue)](https://github.com/XenoXilus/outlook-mcp/releases/latest)\n[![Ko-fi](https://img.shields.io/badge/Ko--fi-Support-ff5f5f?logo=ko-fi)](https://ko-fi.com/xenoxilus)\n\n## Features\n\n- **Email Operations**: Read, search, send, reply to emails and download attachments\n- **SharePoint Integration**: Access SharePoint files via sharing links or direct file IDs. Download files shared to you via emails. \n- **Calendar Management**: View and manage calendar events and appointments\n- **Office Document Processing**: Parse PDF, Word, PowerPoint, and Excel files with extracted text content\n- **Large File Support**: Automatic handling of files that exceed MCP response size limits\n\n## Quick Start\n\n**Choose your installation method:**\n\n| Method | Best For |\n|--------|----------|\n| [DXT Extension](#installing-as-dxt-extension) | Claude Desktop users |\n| [CLI Configuration](#using-with-cli-tools) | Claude Code, mcp CLI, other MCP clients |\n\n\u003e **Prerequisites**: Before installing, you'll need to [set up an Azure application](#azure-setup-guide) to get your Client ID and Tenant ID.\n\n---\n\n## Installation\n\n### Installing as DXT Extension\n\nFor Claude Desktop users, DXT extensions provide the simplest installation experience.\n\n**Option 1: Download Pre-built Extension**\n1. Download `outlook-mcp.dxt` from the [Releases page](https://github.com/XenoXilus/outlook-mcp/releases)\n2. In Claude Desktop, go to **Settings** → **Extensions**\n3. Click **Install from file** and select the `.dxt` file\n4. Enter your Azure Client ID, Tenant ID, and optional download directory when prompted\n\n**Option 2: Build from Source**\n1. Clone and install dependencies:\n   ```bash\n   git clone https://github.com/XenoXilus/outlook-mcp.git\n   cd outlook-mcp\n   npm install\n   ```\n2. Install the DXT CLI: `npm install -g @anthropic-ai/dxt`\n3. Pack the extension:\n   ```bash\n   dxt pack . outlook-mcp.dxt\n   ```\n4. Install the generated `.dxt` file in Claude Desktop as above\n\n---\n\n### Using with CLI Tools\n\nFor CLI-based MCP clients (Claude Code, mcp CLI, etc.), configure the server directly.\n\n**1. Clone and Install:**\n```bash\ngit clone https://github.com/XenoXilus/outlook-mcp.git\ncd outlook-mcp\nnpm install\n```\n\n**2. Configure your MCP client:**\n\nAdd the following to your MCP servers configuration (location varies by client):\n\n```json\n{\n  \"outlook-mcp\": {\n    \"command\": \"node\",\n    \"args\": [\"/absolute/path/to/outlook-mcp/server/index.js\"],\n    \"env\": {\n      \"AZURE_CLIENT_ID\": \"your-azure-client-id\",\n      \"AZURE_TENANT_ID\": \"your-azure-tenant-id\",\n      \"MCP_OUTLOOK_WORK_DIR\": \"/optional/download/directory\"\n    }\n  }\n}\n```\n\n**Common config file locations:**\n- **Claude Code**: `~/.claude.json` or project-level `.mcp.json`\n- **mcp CLI**: `~/.config/mcp/servers.json`\n\n**3. Alternative: Use environment variables**\n\nInstead of specifying `env` in the config, you can export the variables in your shell:\n\n```bash\nexport AZURE_CLIENT_ID=\"your-azure-client-id\"\nexport AZURE_TENANT_ID=\"your-azure-tenant-id\"\nexport MCP_OUTLOOK_WORK_DIR=\"/optional/download/directory\"\n```\n\n---\n\n## Azure Setup Guide\n\nTo use this MCP server, you need to register an application in Microsoft Azure.\n\n### For Business/Work Accounts (Recommended)\n\n1. Go to the [Azure Portal](https://portal.azure.com/) and search for \"App registrations\".\n2. Click **New registration**.\n   - Name: `Outlook MCP` (or similar)\n   - Supported account types: **Accounts in this organizational directory only** (Single tenant)\n   - Redirect URI: Select **Web** and enter `http://localhost/callback`\n3. Click **Register**.\n4. Go to **Authentication** in the sidebar.\n   - Under \"Advanced settings\", set **Allow public client flows** to **Yes**.\n   - Click **Save**.\n5. On the Overview page, copy:\n   - **Application (client) ID** → This is your `AZURE_CLIENT_ID`\n   - **Directory (tenant) ID** → This is your `AZURE_TENANT_ID`\n6. Go to **API permissions** in the sidebar.\n   - Click **Add a permission** -\u003e **Microsoft Graph** -\u003e **Delegated permissions**.\n   - Add these permissions:\n     - `Mail.Read`, `Mail.ReadWrite`, `Mail.Send`\n     - `Calendars.Read`, `Calendars.ReadWrite`\n     - `User.Read`, `MailboxSettings.Read`\n     - `Files.Read.All`, `Files.ReadWrite.All`\n     - `Sites.Read.All`, `Sites.ReadWrite.All`\n     - `offline_access`\n   - Click **Add permissions**.\n   - (Optional) If you are an admin, click **Grant admin consent** to suppress consent prompts for users.\n\n**Note:** No client secret is required (PKCE auth flow).\n\n### For Personal Accounts (outlook.com, hotmail.com)\n\nPersonal Microsoft accounts can also register apps in Azure:\n\n1. Sign in to the [Azure Portal](https://portal.azure.com/) with your personal Microsoft account (outlook.com, hotmail.com, etc.).\n2. If prompted to create a directory, follow the steps to create a free Azure directory.\n3. Follow the same steps as above for Business accounts.\n4. When configuring, use **Accounts in any organizational directory and personal Microsoft accounts** for supported account types.\n\n---\n\n## Configuration Reference\n\n### Environment Variables\n\n| Variable | Required | Description |\n|----------|----------|-------------|\n| `AZURE_CLIENT_ID` | Yes | Your Azure AD application client ID |\n| `AZURE_TENANT_ID` | Yes | Your Azure AD directory (tenant) ID |\n| `MCP_OUTLOOK_WORK_DIR` | No | Directory for saving large files (defaults to system temp) |\n\n### Large File Handling\n\nWhen downloading large attachments or SharePoint files, the server automatically detects when the response would exceed the MCP 1MB limit and saves the content to local files instead.\n\n- If `MCP_OUTLOOK_WORK_DIR` is set, large files are saved to this directory\n- If not set, files are saved to the system temp directory\n- Files are automatically named with timestamps to avoid conflicts\n- Old files are periodically cleaned up to manage disk space\n\n---\n\n## Example Prompts\n\nOnce installed, you can ask the AI assistant things like:\n\n**Email Management**\n- \"Show me my unread emails from this week\"\n- \"Find all emails from John about the project proposal\"\n- \"Send a reply to the last email from Sarah thanking her for the update\"\n- \"Draft an email to the team summarizing today's meeting\"\n\n**Calendar**\n- \"What meetings do I have tomorrow?\"\n- \"Schedule a 30-minute call with Alex next Tuesday afternoon\"\n- \"Show me my availability for the rest of the week\"\n\n**Attachments \u0026 SharePoint**\n- \"Download and summarize the PDF attachment from the latest email from Finance\"\n- \"Get the contents of this SharePoint link: [paste link]\"\n- \"What files were attached to emails from Legal this month?\"\n\n**Office Document Processing**\n\nThe server automatically parses:\n- **PDF files**: Extracts text content\n- **Word documents** (.docx): Extracts text content\n- **PowerPoint** (.pptx): Extracts slide text\n- **Excel** (.xlsx): Parses data into structured format\n\n---\n\n## Authentication\n\nThe server uses OAuth 2.0 with PKCE for secure authentication:\n\n1. First run will open a browser for Microsoft authentication\n2. Tokens are encrypted and stored locally (uses OS keychain if available, otherwise encrypted file storage)\n3. Automatic token refresh for long-term usage\n4. No sensitive data stored in plain text\n\n### Required Permissions\n\nThe app requests these Microsoft Graph permissions:\n\n- `Mail.Read`, `Mail.ReadWrite`, `Mail.Send` - Email access\n- `Calendars.Read`, `Calendars.ReadWrite` - Calendar access  \n- `User.Read`, `MailboxSettings.Read` - User profile\n- `Files.Read.All`, `Files.ReadWrite.All` - OneDrive/SharePoint files\n- `Sites.Read.All`, `Sites.ReadWrite.All` - SharePoint sites\n- `offline_access` - Refresh tokens\n\n---\n\n## Troubleshooting\n\n### Large File Issues\n- **Problem**: \"Result exceeds maximum length\" error\n- **Solution**: Ensure `MCP_OUTLOOK_WORK_DIR` is set and writable\n- **Alternative**: Files automatically save to system temp if work dir not configured\n\n### Authentication Issues\n- **Problem**: Authentication failures\n- **Solution**: Verify Azure AD app permissions and client ID\n- **Reset**: Clear stored tokens and re-authenticate\n\n### SharePoint Access Issues\n- **Problem**: Cannot access SharePoint files\n- **Solution**: Ensure sharing links are valid and user has access permissions\n- **Alternative**: Use direct file ID access if available\n\n---\n\n## Development\n\n### Project Structure\n```\noutlook-mcp/\n├── server/\n│   ├── index.js              # Main MCP server\n│   ├── auth/                 # Authentication management\n│   ├── graph/                # Microsoft Graph API client\n│   ├── schemas/              # MCP tool schemas\n│   ├── tools/                # MCP tool implementations\n│   │   ├── attachments/      # Attachment tools\n│   │   ├── calendar/         # Calendar tools\n│   │   ├── email/            # Email tools\n│   │   ├── folders/          # Folder management\n│   │   └── sharepoint/       # SharePoint tools\n│   └── utils/                # Utility modules\n└── package.json\n```\n\n### Running Tests\n```bash\nnpm test                    # Run all tests\nnpm run test:watch          # Watch mode\nnpm run test:benchmark      # Performance benchmarks\n```\n\n### Debugging\n```bash\nnpm run test:graph          # Test Graph API connection\n```\n\n---\n\n## Support\n\nIf this tool saved you time, consider supporting the development!\n\n[![Ko-fi](https://img.shields.io/badge/Ko--fi-Support-ff5f5f?logo=ko-fi)](https://ko-fi.com/xenoxilus)\n\n---\n\n## License\n\nMIT License\n\n## Contributing\n\n1. Fork the repository\n2. Create a feature branch\n3. Make changes with tests\n4. Submit a pull request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FXenoXilus%2Foutlook-mcp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FXenoXilus%2Foutlook-mcp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FXenoXilus%2Foutlook-mcp/lists"}