Install
Add to ~/Library/Application Support/Claude/claude_desktop_config.json
Windows / Linux path
%APPDATA%\Claude\claude_desktop_config.json~/.config/Claude/claude_desktop_config.json{
"mcpServers": {
"io-github-pepebits-outlook-mcp": {
"command": "npx",
"args": [
"-y",
"@pepebits/outlook-mcp"
],
"env": {
"OUTLOOK_CLIENT_ID": "shared outlook-mcp app",
"OUTLOOK_TENANT": "consumers",
"OUTLOOK_READ_ONLY": "false",
"OUTLOOK_TOKEN_STORE": "auto",
"LOG_LEVEL": "info",
"OUTLOOK_SCOPES": "User.Read Mail.ReadWrite Mail.Send MailboxSettings.ReadWrite offline_access",
"OUTLOOK_DEFAULT_TOP": "20",
"OUTLOOK_TOKEN_CACHE": "~/.config/outlook-mcp/token-cache.json",
"OUTLOOK_DOWNLOAD_DIR": "~/Downloads",
"OUTLOOK_GRAPH_BASE_URL": "https://graph.microsoft.com/v1.0",
"OUTLOOK_MAX_BODY_CHARS": "20000"
}
}
}
}
Restart Claude Desktop to activate the new server.
Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
Windows / Linux path
.cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global).cursor/mcp.json (project) or ~/.cursor/mcp.json (global){
"mcpServers": {
"io-github-pepebits-outlook-mcp": {
"command": "npx",
"args": [
"-y",
"@pepebits/outlook-mcp"
],
"env": {
"OUTLOOK_CLIENT_ID": "shared outlook-mcp app",
"OUTLOOK_TENANT": "consumers",
"OUTLOOK_READ_ONLY": "false",
"OUTLOOK_TOKEN_STORE": "auto",
"LOG_LEVEL": "info",
"OUTLOOK_SCOPES": "User.Read Mail.ReadWrite Mail.Send MailboxSettings.ReadWrite offline_access",
"OUTLOOK_DEFAULT_TOP": "20",
"OUTLOOK_TOKEN_CACHE": "~/.config/outlook-mcp/token-cache.json",
"OUTLOOK_DOWNLOAD_DIR": "~/Downloads",
"OUTLOOK_GRAPH_BASE_URL": "https://graph.microsoft.com/v1.0",
"OUTLOOK_MAX_BODY_CHARS": "20000"
}
}
}
}
Cursor usually picks up config changes automatically; if the server does not appear, reload the window.
Add to .mcp.json (project) or ~/.claude.json (global)
Windows / Linux path
.mcp.json (project) or %USERPROFILE%\.claude.json (global).mcp.json (project) or ~/.claude.json (global){
"mcpServers": {
"io-github-pepebits-outlook-mcp": {
"command": "npx",
"args": [
"-y",
"@pepebits/outlook-mcp"
],
"env": {
"OUTLOOK_CLIENT_ID": "shared outlook-mcp app",
"OUTLOOK_TENANT": "consumers",
"OUTLOOK_READ_ONLY": "false",
"OUTLOOK_TOKEN_STORE": "auto",
"LOG_LEVEL": "info",
"OUTLOOK_SCOPES": "User.Read Mail.ReadWrite Mail.Send MailboxSettings.ReadWrite offline_access",
"OUTLOOK_DEFAULT_TOP": "20",
"OUTLOOK_TOKEN_CACHE": "~/.config/outlook-mcp/token-cache.json",
"OUTLOOK_DOWNLOAD_DIR": "~/Downloads",
"OUTLOOK_GRAPH_BASE_URL": "https://graph.microsoft.com/v1.0",
"OUTLOOK_MAX_BODY_CHARS": "20000"
}
}
}
}
The server will be available in the next Claude Code session.
Add to .vscode/mcp.json
Windows / Linux path
.vscode\mcp.json.vscode/mcp.json{
"servers": {
"io-github-pepebits-outlook-mcp": {
"command": "npx",
"args": [
"-y",
"@pepebits/outlook-mcp"
],
"env": {
"OUTLOOK_CLIENT_ID": "shared outlook-mcp app",
"OUTLOOK_TENANT": "consumers",
"OUTLOOK_READ_ONLY": "false",
"OUTLOOK_TOKEN_STORE": "auto",
"LOG_LEVEL": "info",
"OUTLOOK_SCOPES": "User.Read Mail.ReadWrite Mail.Send MailboxSettings.ReadWrite offline_access",
"OUTLOOK_DEFAULT_TOP": "20",
"OUTLOOK_TOKEN_CACHE": "~/.config/outlook-mcp/token-cache.json",
"OUTLOOK_DOWNLOAD_DIR": "~/Downloads",
"OUTLOOK_GRAPH_BASE_URL": "https://graph.microsoft.com/v1.0",
"OUTLOOK_MAX_BODY_CHARS": "20000"
}
}
}
}
Reload the VS Code window to activate.
Add to ~/.codeium/windsurf/mcp_config.json
Windows / Linux path
%USERPROFILE%\.codeium\windsurf\mcp_config.json~/.codeium/windsurf/mcp_config.json{
"mcpServers": {
"io-github-pepebits-outlook-mcp": {
"command": "npx",
"args": [
"-y",
"@pepebits/outlook-mcp"
],
"env": {
"OUTLOOK_CLIENT_ID": "shared outlook-mcp app",
"OUTLOOK_TENANT": "consumers",
"OUTLOOK_READ_ONLY": "false",
"OUTLOOK_TOKEN_STORE": "auto",
"LOG_LEVEL": "info",
"OUTLOOK_SCOPES": "User.Read Mail.ReadWrite Mail.Send MailboxSettings.ReadWrite offline_access",
"OUTLOOK_DEFAULT_TOP": "20",
"OUTLOOK_TOKEN_CACHE": "~/.config/outlook-mcp/token-cache.json",
"OUTLOOK_DOWNLOAD_DIR": "~/Downloads",
"OUTLOOK_GRAPH_BASE_URL": "https://graph.microsoft.com/v1.0",
"OUTLOOK_MAX_BODY_CHARS": "20000"
}
}
}
}
Restart Windsurf (or refresh its MCP servers panel) to activate the new server.
Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.
Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
Windows / Linux path
%APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json{
"mcpServers": {
"io-github-pepebits-outlook-mcp": {
"command": "npx",
"args": [
"-y",
"@pepebits/outlook-mcp"
],
"env": {
"OUTLOOK_CLIENT_ID": "shared outlook-mcp app",
"OUTLOOK_TENANT": "consumers",
"OUTLOOK_READ_ONLY": "false",
"OUTLOOK_TOKEN_STORE": "auto",
"LOG_LEVEL": "info",
"OUTLOOK_SCOPES": "User.Read Mail.ReadWrite Mail.Send MailboxSettings.ReadWrite offline_access",
"OUTLOOK_DEFAULT_TOP": "20",
"OUTLOOK_TOKEN_CACHE": "~/.config/outlook-mcp/token-cache.json",
"OUTLOOK_DOWNLOAD_DIR": "~/Downloads",
"OUTLOOK_GRAPH_BASE_URL": "https://graph.microsoft.com/v1.0",
"OUTLOOK_MAX_BODY_CHARS": "20000"
}
}
}
}
Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.
Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.
Configuration
Environment variables this server reads. Secrets stay on your machine.
| Name | Required | Description |
|---|---|---|
| OUTLOOK_CLIENT_ID | No | Application (client) ID of your own Azure app registration. Optional; defaults to the shared outlook-mcp app. Default: shared outlook-mcp app |
| OUTLOOK_TENANT | No | Authority tenant: consumers for personal accounts, organizations for work/school, common for both, or a tenant GUID. Default: consumers |
| OUTLOOK_READ_ONLY | No | When true, mutating send/move/delete/flag/mark tools are not registered. Default: false |
| OUTLOOK_TOKEN_STORE | No | Where the token cache lives: auto, keychain, or file. Default: auto |
| LOG_LEVEL | No | Log level written to stderr: debug, info, warn, or error. Default: info |
| OUTLOOK_SCOPES | No | Space-separated delegated Microsoft Graph scopes requested at sign-in. Default: User.Read Mail.ReadWrite Mail.Send MailboxSettings.ReadWrite offline_access |
| OUTLOOK_DEFAULT_TOP | No | Default page size for list/search tools, from 1 to 100. Default: 20 |
| OUTLOOK_TOKEN_CACHE | No | Token cache file for the file store; also identifies the keychain entry. Default: ~/.config/outlook-mcp/token-cache.json |
| OUTLOOK_DOWNLOAD_DIR | No | The only directory attachments may be written to. Default: ~/Downloads |
| OUTLOOK_GRAPH_BASE_URL | No | Microsoft Graph endpoint, change for national clouds. Default: https://graph.microsoft.com/v1.0 |
| OUTLOOK_MAX_BODY_CHARS | No | Maximum body characters returned by get_message. Default: 20000 |