Skip to content
MCP server

Microsoft Exchange Online MCP

Exchange Online admin for MSPs: forwarding audits, EWS posture and offboarding, no…

Runs locallyStatus and history
Install
Pricing
Open source
Runs
Locally
Version
0.1.5
Listing updated
4 days ago

About Microsoft Exchange Online MCP

Microsoft Exchange Online MCP is an open-source MCP server. It runs locally on your machine and is started by your AI client.

Exchange Online admin for MSPs: forwarding audits, EWS posture and offboarding, no PowerShell

Install

Run in a terminal

claude mcp add exchange-online-mcp --env EXCHANGE_ONLINE_TOKEN='<EXCHANGE_ONLINE_TOKEN>' --env EXCHANGE_ONLINE_MCP_HTTP_TOKEN='<EXCHANGE_ONLINE_MCP_HTTP_TOKEN>' -- npx -y https://github.com/Servosity/msp-skills/releases/download/exchange-online-v0.1.5/exchange-online-mcp.mcpb

Add to claude_desktop_config.json

{
  "mcpServers": {
    "exchange-online-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "https://github.com/Servosity/msp-skills/releases/download/exchange-online-v0.1.5/exchange-online-mcp.mcpb"
      ],
      "env": {
        "EXCHANGE_ONLINE_TOKEN": "<EXCHANGE_ONLINE_TOKEN>",
        "EXCHANGE_ONLINE_MCP_HTTP_TOKEN": "<EXCHANGE_ONLINE_MCP_HTTP_TOKEN>"
      }
    }
  }
}

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "exchange-online-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "https://github.com/Servosity/msp-skills/releases/download/exchange-online-v0.1.5/exchange-online-mcp.mcpb"
      ],
      "env": {
        "EXCHANGE_ONLINE_TOKEN": "<EXCHANGE_ONLINE_TOKEN>",
        "EXCHANGE_ONLINE_MCP_HTTP_TOKEN": "<EXCHANGE_ONLINE_MCP_HTTP_TOKEN>"
      }
    }
  }
}

Add to .vscode/mcp.json

{
  "servers": {
    "exchange-online-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "https://github.com/Servosity/msp-skills/releases/download/exchange-online-v0.1.5/exchange-online-mcp.mcpb"
      ],
      "env": {
        "EXCHANGE_ONLINE_TOKEN": "<EXCHANGE_ONLINE_TOKEN>",
        "EXCHANGE_ONLINE_MCP_HTTP_TOKEN": "<EXCHANGE_ONLINE_MCP_HTTP_TOKEN>"
      }
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "exchange-online-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "https://github.com/Servosity/msp-skills/releases/download/exchange-online-v0.1.5/exchange-online-mcp.mcpb"
      ],
      "env": {
        "EXCHANGE_ONLINE_TOKEN": "<EXCHANGE_ONLINE_TOKEN>",
        "EXCHANGE_ONLINE_MCP_HTTP_TOKEN": "<EXCHANGE_ONLINE_MCP_HTTP_TOKEN>"
      }
    }
  }
}

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "exchange-online-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "https://github.com/Servosity/msp-skills/releases/download/exchange-online-v0.1.5/exchange-online-mcp.mcpb"
      ],
      "env": {
        "EXCHANGE_ONLINE_TOKEN": "<EXCHANGE_ONLINE_TOKEN>",
        "EXCHANGE_ONLINE_MCP_HTTP_TOKEN": "<EXCHANGE_ONLINE_MCP_HTTP_TOKEN>"
      }
    }
  }
}

Configuration

  • EXCHANGE_ONLINE_TOKENSet the EXCHANGE_ONLINE_TOKEN credential for the Microsoft Exchange Online MCP server.Required
  • EXCHANGE_ONLINE_BASE_URLOptional. Leave blank to use https://outlook.office365.com. Set it only for a national cloud or a test server; the token then goes to that host.
  • EXCHANGE_ONLINE_ANCHOR_MAILBOXOptional. The X-AnchorMailbox value for calls with no target mailbox, for example UPN:admin@example.com with a delegated token. Leave blank to use the organization system mailbox Microsoft documents for app-only calls.
  • EXCHANGE_ONLINE_MCP_READ_ONLYOptional. Set to exactly 1 to keep only read tools: exchange-online_read still serves the Get-* cmdlets, and every write tool is removed.
  • EXCHANGE_ONLINE_NO_LOCAL_DATAOptional. Set to 1 to stop saving reads locally; reads go to the API. An inbox-rule sweep or quarantine snapshot you run is still saved.
  • EXCHANGE_ONLINE_MCP_HTTP_TOKENRequired only when running the MCP server with --transport http (a remote/hosted deployment). Callers must send a matching Authorization: Bearer header. Not needed for the default local stdio transport that Claude Desktop uses.
  • EXCHANGE_ONLINE_USER_AGENTOptional. Overrides the User-Agent the CLI sends on Exchange requests. Leave blank to use the CLI's own built-in User-Agent.
  • PRINTING_PRESS_CLIENT_PROFILEOnly used when the MCP server is bound to a tenant-gated client profile. This connector registers no tenant-gated source, so leave it blank; each call names its tenant ID.

Pricing

Open source

Microsoft Exchange Online MCP FAQ

Is Microsoft Exchange Online MCP free?

Yes. Microsoft Exchange Online MCP is open source, so you can use and self-host it for free.

How do I add Microsoft Exchange Online MCP to Claude Code?

Run this command in your terminal: claude mcp add exchange-online-mcp --env EXCHANGE_ONLINE_TOKEN='<EXCHANGE_ONLINE_TOKEN>' --env EXCHANGE_ONLINE_MCP_HTTP_TOKEN='<EXCHANGE_ONLINE_MCP_HTTP_TOKEN>' -- npx -y https://github.com/Servosity/msp-skills/releases/download/exchange-online-v0.1.5/exchange-online-mcp.mcpb