Back to Home
peacockery-studio icon

outlook-mcp

Verified Safe

by peacockery-studio

Overview

Connects Claude with Microsoft Outlook to manage emails and calendar events via the Microsoft Graph API.

Installation

Run Command
node /absolute/path/to/outlook-mcp/index.js

Environment Variables

  • MS_CLIENT_ID
  • MS_CLIENT_SECRET
  • OUTLOOK_CLIENT_ID
  • OUTLOOK_CLIENT_SECRET
  • USE_TEST_MODE
  • MS_REDIRECT_URI
  • MS_SCOPES
  • MS_TOKEN_ENDPOINT
  • MS_AUTH_ENDPOINT

Security Notes

The server correctly uses environment variables (MS_CLIENT_ID, MS_CLIENT_SECRET, OUTLOOK_CLIENT_ID, OUTLOOK_CLIENT_SECRET) for sensitive credentials, avoiding hardcoded secrets in the main application logic. Tokens are stored locally in the user's home directory (`~/.outlook-mcp-tokens.json`), which is a common practice for local applications. The OAuth authentication flow uses a localhost callback, mitigating some network risks. However, utility scripts (`find-folder-ids.js`, `move-github-emails.js`, `create-notifications-rule.js`) contain hardcoded folder IDs, which, while not a direct server vulnerability, is poor practice and could lead to misconfiguration or data targeting issues if those scripts are reused blindly. The `outlook-auth-server.js` uses a simple `Date.now().toString()` for the OAuth `state` parameter, and the `oauth-server.js` includes a mandatory check for the *presence* of the state parameter but explicitly notes that full state *validation* (comparing the received state value to a stored one for CSRF protection) is the responsibility of the integrating application, as this module does not manage sessions. This means the integrating application needs to correctly implement CSRF protection. Debug logs using `console.error` in `auth/token-manager.js` may expose token details if not handled carefully in production.

Similar Servers

Stats

Interest Score0
Security Score8
Cost ClassMedium
Avg Tokens2500
Stars0
Forks0
Last Update2025-12-05

Tags

ClaudeOutlookMicrosoft Graph APIEmailCalendar