Skip to main content
Glama
Claude Hotmail Connector

Claude Hotmail Connector

by TGoodhew

Claude Hotmail Connector

A local Model Context Protocol (MCP) server that lets Claude read email and read/write calendar events in a personal Microsoft account (@hotmail.com / @outlook.com / @live.com) via the Microsoft Graph API. If you turn it on, Claude can also send email, but only after you confirm each one in your browser.

Claude's official Microsoft 365 connector only supports work/school (Microsoft Entra) accounts and rejects personal Microsoft accounts. This project fills that gap as a personal, single-user tool that runs entirely on your own machine.

Status: v1.1, stable. The connector ships as a Claude Desktop extension (.mcpb) for Windows, macOS and Linux (only Windows is tested and supported by the maintainer; see Platforms). What changed is in the changelog, the requirements are in spec v2, and further work is tracked in the open issues.

How it works — local stdio

The connector is a local stdio MCP server (spec v2 §4). Claude Desktop (as an extension) or Claude Code / VS Code launches it as a subprocess and talks to it over stdin/stdout. There is no public URL, no tunnel and no hosting cost, and no Claude ↔ server OAuth. The only sign-in is to Microsoft: a native public-client OAuth 2.0 authorization-code + PKCE flow with a loopback redirect, opened in your browser the first time a tool needs it. No client secret is involved.

Claude Desktop / Claude Code ──stdio──▶ this server ──HTTPS──▶ Microsoft Graph (personal account)
        (MCP client)                    (local subprocess)        graph.microsoft.com/v1.0

Because it runs locally, it works in Claude Desktop and Claude Code / VS Code on the same PC. It does not work in claude.ai on the web or mobile; that would need a remote mode, which isn't planned (#58, deferred).

Related MCP server: Outlook MCP Server

Tools

Tool

Purpose

Graph permission

whoami

Confirm the connected account

User.Read

list_messages

Search/list mail (find booking confirmations)

Mail.Read

get_message

Read one email as text

Mail.Read

get_attachment

Read a text, HTML, PDF or calendar (.ics) attachment

Mail.Read

list_mail_folders

List mail folders

Mail.Read

list_calendars

List your calendars (own and shared)

Calendars.Read

list_events

Read the calendar over a date range

Calendars.Read

get_event

Read one event in full (notes, attendees, pattern)

Calendars.Read

find_free_time

Find free slots in a date range

Calendars.Read

create_event

Add a calendar event (timezone-correct, idempotent)

Calendars.ReadWrite

update_event

Edit a calendar event (destructive: overwrites)

Calendars.ReadWrite

cancel_event

Delete an event, guarded (see below)

Calendars.ReadWrite

sign_out

Remove the saved sign-in from this computer

(none)

send_email

Send an email, after you confirm it (opt-in)

Mail.Send

reply_to_email

Reply to a sender, after you confirm it (opt-in)

Mail.Send

create_draft

Save an email or reply as a draft, opened in Outlook (opt-in; never sends)

Mail.ReadWrite

Mail is read-only unless you turn sending or drafts on. With sending on (Sending email), every email is shown to you in your browser and sent only when you click Send there. With drafts on (Saving drafts), Claude can save drafts but never sends them: you send them yourself from Outlook. Calendar writes never add attendees or send invitations. There is no hard-delete. cancel_event moves an event to Outlook's Deleted Items, and only after three checks:

  • you've confirmed it and the event's exact title matches;

  • the event has no attendees, since deleting a meeting could email cancellations;

  • it isn't recurring.

update_event likewise refuses events with attendees, because changing a meeting emails its attendees.

A few behaviours worth knowing:

  • Junk and Deleted are left out. Across all folders, list_messages leaves out Junk Email and Deleted Items, and the folders beneath them, unless you ask for them. Mail in Junk is flagged as such, so phishing can't pass for a real booking.

  • Attachments: get_attachment reads text, HTML, calendar (.ics) and PDF attachments. For a PDF it reads the text of the first 30 pages, in an isolated worker with time and memory limits. Password-protected and scanned PDFs (no text layer) can't be read, nor can images or other binary files. Size limits: 5 MB for PDFs, 1 MB for other files. Open anything refused from the message in Outlook.

  • Times use your time zone. find_free_time and the other calendar tools work in your computer's time zone unless you name another, with daylight saving applied. All-day events count as whole days in that zone.

Full tool contracts are in spec v2 §7.

Sending email (optional)

Off by default. When it's on, Claude can send new emails, and replies to the person who sent you a message, but only after you confirm each one:

  1. Claude prepares the email, and the connector opens a page in your browser showing exactly what will be sent: To, Cc, Subject and the whole text. Anyone who has never emailed you is flagged.

  2. Nothing is sent until you click Send on that page. Don't send cancels it, and the page stops working after 5 minutes. Claude never sees the page's link, so it can't confirm for you.

  3. Claude is told whether you sent or cancelled it.

To turn it on, tick Allow sending email under Settings → Desktop app → Extensions (Manage) → Hotmail Connector, or set ALLOW_SEND_MAIL=true when running from source. Then:

  • Fully restart Claude Desktop (Quit from the tray icon, then reopen it). Claude Desktop keeps using its earlier list of tools in chats until it restarts, so Claude won't see the send tools yet.

  • The first time you send, Claude will say your sign-in doesn't include permission to send. Ask it to sign out (sign_out) and try again: Microsoft will ask you to allow sending.

Plain text only, to at most 10 people. Forwarding, reply-all, attachments and BCC aren't supported, since they're the easiest ways to leak mail. Replies go to the message's Reply-To address if it has one, else its sender, and don't quote the original.

Saving drafts (optional)

Off by default. When it's on, Claude can save a new email, or a reply to a message, as a draft in your Drafts folder, and open it in Outlook on the web in your browser. You review it, edit it, add attachments if you like, and send it yourself. The connector never sends a draft. Use it when you want to finish an email yourself: "draft a reply to Shane so I can review and send it".

A reply draft goes to the message's sender (or its Reply-To), in the same conversation, with your text above the quoted original. Add Cc in Outlook if you need it.

To turn it on, tick Allow saving email drafts under Settings → Desktop app → Extensions (Manage) → Hotmail Connector, or set ALLOW_MAIL_DRAFTS=true when running from source. Then:

  • Fully restart Claude Desktop (Quit from the tray icon, then reopen it), so chats see the new tool.

  • The first time, Claude will say your sign-in doesn't include permission to save drafts. Ask it to sign out (sign_out) and try again: Microsoft will ask you to allow it.

What it costs in permissions. Microsoft has no drafts-only permission, so this asks for Mail.ReadWrite, which also allows changing and deleting any mail. The connector uses it only to create drafts: no tool changes, moves or deletes an existing message. Leave it off if you don't need it. It's separate from sending: you can turn on either, both or neither.

Step 1: register your own Microsoft Entra application

Every user needs their own registration; the connector doesn't ship a shared one, so each user owns their own Microsoft access. Registering is free, but it needs a Microsoft Entra tenant, and a personal account doesn't come with one. If you don't have a tenant, create a free one first (typically by signing up for a free Azure account).

Shortcut: from a source checkout, pwsh ./scripts/register-app.ps1 does all of the steps below and prints the client ID. It needs the Azure CLI. On Windows, install it with winget install -e --id Microsoft.AzureCLI, open a new terminal, and sign in with az login --allow-no-subscriptions. The flag is needed because a free tenant usually has no Azure subscription; add --tenant <your-tenant> if you belong to several. Use the script from v0.2.1 or later: the earlier one created the registration without its API permissions listed.

The connector signs in as a public/native client. No client secret is ever used or stored.

  1. Go to the Entra admin center → App registrations → New registration.

  2. Name: e.g. Claude Hotmail Connector.

  3. Supported account types: choose "Personal Microsoft accounts only". That's what the connector is for (hotmail.com / outlook.com / live.com), and it matches the default MICROSOFT_TENANT=consumers. Work/school accounts are served by Claude's official Microsoft 365 connector. To allow them anyway, pick the multitenant + personal option instead and set MICROSOFT_TENANT=common.

  4. Redirect URI: select platform "Public client/native (mobile & desktop)" and enter http://localhost. Microsoft allows any loopback port for native clients, so you don't need a specific port.

  5. Click Register, then copy the Application (client) ID.

  6. Under Authentication, confirm the platform is Mobile and desktop applications with http://localhost, and that "Allow public client flows" is Yes. Do not create a client secret.

  7. Under API permissions → Add a permission → Microsoft Graph → Delegated permissions, add: openid, profile, email, offline_access, User.Read, Mail.Read, Calendars.ReadWrite. If you'll turn sending on, add Mail.Send too, and if you'll turn drafts on, add Mail.ReadWrite. A personal account doesn't need admin consent; you consent at sign-in.

Step 2a: install in Claude Desktop (extension)

  1. Download hotmail-connector.mcpb from the latest release. You can verify it against SHA256SUMS.txt, or check where it was built, with the GitHub CLI: gh attestation verify hotmail-connector.mcpb --repo TGoodhew/Claude-Hotmail-Connector.

  2. In Claude Desktop, open Settings → Desktop app, select Manage next to Extensions, then Advanced settings → Install Extension…. Choose the downloaded file, then Install. (Older versions have it under Settings → Extensions → Advanced settings. Double-clicking the file, or dragging it onto the Extensions page, may also work; dropping it on a chat only attaches it to the chat.)

  3. Enter your Application (client) ID from step 1. You can change it later under Settings → Desktop app → Extensions (Manage) → Hotmail Connector. Make sure the extension is switched on there. If you also run the connector from source (step 2b), use the same client ID. On Windows each keeps its own saved sign-in, because Claude Desktop is an MSIX app (see Security).

  4. Ask Claude something that needs your mailbox or calendar. The first time, a Microsoft sign-in opens in your browser. Finish it within about 45 seconds and that request carries on; otherwise ask again once you've signed in.

Updating to a newer release: install the new .mcpb the same way, over the old one. If Claude Desktop asks for your client ID again, enter the same one. What changed is in the changelog. Claude Desktop only replaces an installed extension with a newer version number: a different build with the same version (e.g. one you built yourself) is treated as already installed, so uninstall first, or give the build a new version.

Upgrading from the v0.1.0 Windows installer:

  1. Uninstall Claude Hotmail Connector from Windows Settings → Apps. Keeping both would show every tool twice. If Claude Desktop has moved its data folder since v0.1.0 was installed, the uninstaller misses the entry Claude Desktop now reads, so check for it as described in Finding Claude Desktop's config file.

  2. Install the extension with your own client ID, then sign in again. v0.1.0's shared registration has been deleted, so v0.1.0 can no longer sign in (#68).

More detail, including how the bundle is built, is in docs/packaging.md.

Step 2b: run from source (Claude Code / VS Code)

Prerequisites: Node.js 22.18 or later, and on Node 24 24.11 or later (the build tool, tsup 9, needs them, #188). Node.js 24 LTS is recommended, and CI builds and releases on it. CI also tests on 22.18, the minimum. Node 20 is no longer supported: it reached end-of-life in April 2026 (#148).

git clone https://github.com/TGoodhew/Claude-Hotmail-Connector.git
cd Claude-Hotmail-Connector
npm install
npm run build          # produces dist/index.js

Then point your client at dist/index.js and pass your client ID in the server's environment.

Claude Code:

claude mcp add --scope user --env MICROSOFT_CLIENT_ID=<your-client-id> --transport stdio \
  hotmail-connector -- node /path/to/Claude-Hotmail-Connector/dist/index.js

Keep --transport stdio where it is, between the --env value and the server name. --env accepts several KEY=value pairs, so without something in between, the name is read as another pair.

VS Code: use Command Palette → "MCP: Add Server…" → Command (stdio), or copy .vscode/mcp.json.example to .vscode/mcp.json and edit the path and client ID:

{
  "servers": {
    "hotmail-connector": {
      "type": "stdio",
      "command": "node",
      "args": ["C:\\path\\to\\Claude-Hotmail-Connector\\dist\\index.js"],
      "env": { "MICROSOFT_CLIENT_ID": "<your-entra-app-client-id>" },
    },
  },
}

(Claude Desktop can also run a source checkout through claude_desktop_config.json, see examples/claude_desktop_config.example.json. Current Microsoft Store builds read that file from %LOCALAPPDATA%\Claude-Data\<Claude package>, not %APPDATA%\Claude; Finding Claude Desktop's config file shows which one yours reads. The extension is simpler.)

You don't need to sign in first: the first tool call opens the Microsoft sign-in in your browser. From a source checkout you can also sign in, check or reset explicitly (with MICROSOFT_CLIENT_ID set, e.g. in a .env in the checkout root, see .env.example. It's only ever read from there, never from the folder you launch from):

node dist/index.js login     # browser sign-in, caches the token
node dist/index.js whoami    # prints your name and account, e.g. Jane Doe <jane@outlook.com>
node dist/index.js logout    # removes the saved sign-in (token cache and key)

On Windows, Claude Desktop (a Microsoft Store/MSIX app) keeps the extension's sign-in separate from the checkout's (see Security), so logout doesn't sign it out there.

Configuration

Variable

Default

Notes

MICROSOFT_CLIENT_ID

— (required)

Your Entra app's Application (client) ID. The extension sets it from its settings.

MICROSOFT_TENANT

consumers

Personal accounts only. common also allows work/school accounts (needs a multitenant registration).

DEFAULT_TIMEZONE

This computer's time zone (UTC if unknown)

IANA zone used when a call doesn't specify one. An invalid name stops the server at startup.

LOG_LEVEL

info

debug / info / warn / error (logs go to stderr, and to the log file if LOG_FILE is on).

MICROSOFT_SCOPES

least-privilege set (spec §6)

Narrowing only: drop scopes or use Calendars.Read; broader scopes are rejected. Tools needing a dropped scope are hidden.

ALLOW_SEND_MAIL

false

true lets Claude send emails and replies, each confirmed by you in the browser (adds Mail.Send).

ALLOW_MAIL_DRAFTS

false

true lets Claude save drafts that you send yourself from Outlook; it never sends (adds Mail.ReadWrite).

LOG_FILE

false

true also writes the logs to connector.log in the cache folder, capped at 2 MB (see Troubleshooting).

CLAUDE_HOTMAIL_CACHE_DIR

per-OS profile dir

Where the encrypted token cache (and the log file, if on) lives.

Usage example

"Find my Monsoon Aquatics and Macadamias Australia booking confirmation emails, then add each to my calendar with 15-minute travel-time blocks before and after."

Claude uses list_messages / get_message to read the confirmations and confirms the details with you. It then calls create_event for each booking (and the travel blocks) at the correct local times, with no duplicates if it retries.

More things to ask:

  • "Read the calendar invite attached to my hotel booking email." The connector uses get_attachment to read the .ics file's events.

  • "What's the booking reference in the PDF attached to my flight confirmation?" get_attachment reads the PDF's text.

  • "Find me a free hour on Thursday between 9 and 5 Berlin time." This uses find_free_time in Europe/Berlin, with your events converted across time zones and daylight saving.

  • "What's in my Junk folder from this week?" This is list_messages with folder: junkemail; Claude is told those messages were judged spam.

Security

  • Least privilege: Mail.Read (read-only) + Calendars.ReadWrite. Mail.Send only if you turn sending on, and Mail.ReadWrite only if you turn drafts on, used only to create drafts. No hard delete, no attendees/invitations.

  • No client secret: a public/native client using PKCE.

  • Token storage: the refresh token is encrypted with AES-256-GCM in your user profile (%LOCALAPPDATA%\claude-hotmail-connector on Windows; elsewhere $XDG_STATE_HOME/claude-hotmail-connector if that's set, else ~/.claude-hotmail-connector). Claude for Windows is a Microsoft Store (MSIX) app, so Windows keeps the extension's copy in a private folder for Claude: %LOCALAPPDATA%\Packages\<Claude package>\LocalCache\Local\claude-hotmail-connector, where <Claude package> is Claude_pzs8sxrjxfjjc (or AnthropicPBC.Claude_fnn82j28hfe8t). That's still the case now that Claude Desktop keeps its own data in %LOCALAPPDATA%\Claude-Data. The extension and a source checkout therefore sign in separately, and logout doesn't sign Claude Desktop out; ask Claude to sign out (sign_out) for that (#176). On Windows the encryption key is protected with DPAPI, so only your Windows account on this PC can unlock it; copying the folder elsewhere isn't enough. On macOS/Linux the key is an owner-only file in the same folder: Keychain/libsecret support isn't planned, but a PR adding it is welcome (#83). Tokens are never committed, logged or returned to the client.

  • Logging: structured logs go to stderr (stdout is reserved for MCP JSON-RPC) and are scrubbed of tokens, Authorization headers, OAuth codes, secrets, your account name and any email address. They never include what's in your emails or events. With Write a log file on (LOG_FILE), they also go to connector.log (see Troubleshooting).

  • Email (and others' invites) are untrusted input: they're written by strangers and may try to steer the model. Unless you turn sending on, the connector can't send mail; when it's on, every email waits for your click on the connector's own page, which the model can't reach. There are no attendees, and no changing or deleting meetings with attendees. Writes and deletes are marked destructive so Claude asks before running them, but only if your client's tool permissions ask. Don't auto-approve the calendar write tools. Claude Desktop 3.1623.4 doesn't show these approval prompts for extension tools at all (#138, reported to Anthropic), so read what Claude says it will change before it does it. The full threat model is in spec v2 §9.2. Review what Claude proposes before approving calendar changes.

  • Timezone-correct writes: events are sent as local wall-clock time + an IANA time zone (never a UTC Z with a named zone), so they land at the intended local time.

Known security issues are tracked under the area:security label. To report a vulnerability, use private reporting as described in SECURITY.md; please don't open a public issue.

Troubleshooting

  • Seeing what the connector did: Claude Desktop doesn't keep the extension's logs, so turn on Write a log file under Settings → Desktop app → Extensions (Manage) → Hotmail Connector, then restart Claude Desktop fully (Quit from the tray icon). The log is connector.log in %LOCALAPPDATA%\Packages\<Claude package>\LocalCache\Local\claude-hotmail-connector (the folder Windows gives Claude Desktop, see Security and #176), or in %LOCALAPPDATA%\claude-hotmail-connector from a source checkout with LOG_FILE=true. Each line starts with the time (UTC) and the process id. It never grows past 2 MB: when it would, the older half is dropped. Signing out leaves it in place; delete it by hand if you like. Set LOG_LEVEL=debug in a source checkout for more detail.

  • AADSTS50020 / "account does not exist in tenant" / personal account rejected: the app registration doesn't accept personal accounts. Set its account type to Personal Microsoft accounts only (or multitenant + personal) per step 1.3.

  • AADSTS9002331 / "configured for use by Microsoft Account users only": a personal-only registration is being used with MICROSOFT_TENANT=common. Use the default, consumers.

  • A work/school account can't sign in: expected with the default consumers tenant. See step 1.3 for the multitenant option.

  • AADSTS7000218 / "client_assertion or client_secret required": the app is registered as a confidential/web client. Register it as a public client with "Allow public client flows" = Yes (step 1.6).

  • redirect_uri mismatch: add http://localhost under the Mobile & desktop platform.

  • Event lands an hour off: always pass a local wall-clock dateTime (e.g. 2026-07-20T10:00:00) with an IANA timeZone, never a Z-suffixed value. The connector rejects Z/offset values for event times.

  • "No Microsoft app registration is configured": no client ID is set. Enter it in Claude Desktop → Settings → Desktop app → Extensions (Manage) → Hotmail Connector, or set MICROSOFT_CLIENT_ID in your client's server config (step 2b).

  • A tool says to finish signing in, or "sign-in is required": finish the Microsoft sign-in in the browser window that opened, then ask Claude to retry. If no window appeared, check that a default web browser is set; from a source checkout you can also run node dist/index.js login. After a cancelled sign-in, the connector waits 30 seconds before opening another window.

  • "Microsoft refused the saved sign-in": the saved sign-in expired or was revoked, or it was made with a different client ID. Outside Windows, a common cause is giving Claude Desktop and a source checkout different client IDs while they share one saved sign-in, so use the same ID in both. Then sign in again: ask Claude, or run node dist/index.js login.

  • "Sending email is turned on, but your Microsoft sign-in doesn't include permission to send": ask Claude to sign out (sign_out), then try again. Microsoft will ask you to allow sending.

  • No confirmation page appears when sending: check that a default web browser is set. Nothing is sent without the page.

  • "Saving drafts is turned on, but your Microsoft sign-in doesn't include permission to save them": ask Claude to sign out (sign_out), then try again. Microsoft will ask you to allow it.

  • A draft was saved but Outlook didn't open: Claude gets the link and can give it to you, or look in Drafts in Outlook. You need to be signed in to Outlook on the web in your default browser.

  • v0.1.0 can't sign in any more: its shared registration was deleted. Upgrade as described in step 2a, with your own client ID.

  • Claude changes or deletes calendar events without asking: Claude Desktop 3.1623.4 doesn't show approval prompts for extension tools (#138). The connector's own guards still apply (see Tools).

  • find_free_time shows part of an all-day busy day as free: fixed in v0.2.1 (#158); update the extension.

  • Every tool appears twice: you have both the extension and a hotmail-connector entry in Claude Desktop's config, from the v0.1.0 installer or one you added by hand. Uninstalling v0.1.0 isn't always enough: when Claude Desktop moves its data to %LOCALAPPDATA%\Claude-Data, it takes a copy of the config with it, and the v0.1.0 uninstaller only cleans the old copy. Remove hotmail-connector from the file Claude Desktop reads (see Finding Claude Desktop's config file). If Claude Desktop also shows an error about a missing hotmail-connector.exe, this is the cause too.

  • npm install times out or hangs (dead IPv6 route): force IPv4: NODE_OPTIONS="--dns-result-order=ipv4first --no-network-family-autoselection" npm install.

Finding Claude Desktop's config file

The extension doesn't use claude_desktop_config.json, but a v0.1.0 install or a source checkout run by Claude Desktop does. Current Microsoft Store builds of Claude Desktop move their data from %LOCALAPPDATA%\Packages\<Claude package>\LocalCache\Roaming\Claude to %LOCALAPPDATA%\Claude-Data\<Claude package, lower case> and read the config only from there. The old copy stays behind, unread, so changing it has no effect. Builds not from the Store use %APPDATA%\Claude.

To see which file yours reads, and which ones hold a hotmail-connector entry, run this in PowerShell:

$la = $env:LOCALAPPDATA
$cmd = (Get-CimInstance Win32_Process -Filter "Name='Claude.exe'").CommandLine -match '--user-data-dir=' | Select-Object -First 1
$running = if ($cmd -match '--user-data-dir=(?:"([^"]+)"|(\S+))') { $Matches[1] + $Matches[2] }
$moved = @(); $notMoved = @()
foreach ($n in (Get-AppxPackage | Where-Object Name -in 'Claude', 'AnthropicPBC.Claude').PackageFamilyName) {
  $new = "$la\Claude-Data\$($n.ToLower())"; $old = "$la\Packages\$n\LocalCache\Roaming\Claude"
  if ((Test-Path $new) -or (Test-Path "$old\.user-data-left.$($n.ToLower())")) { $moved += $new } else { $notMoved += $old }
}
$reads = @($running) + $moved + $notMoved + "$env:APPDATA\Claude" | Where-Object { $_ } | Select-Object -First 1
"Claude Desktop reads: $reads\claude_desktop_config.json"
$all = @(Get-ChildItem "$la\Claude-Data", "$la\Packages\*\LocalCache\Roaming\Claude", "$env:APPDATA\Claude" -Filter claude_desktop_config.json -Recurse -Depth 1 -ErrorAction SilentlyContinue)
foreach ($f in $all) {
  if ((Get-Content $f.FullName -Raw | ConvertFrom-Json).mcpServers.'hotmail-connector') { "hotmail-connector entry: $($f.FullName)" }
}

Only the entry in the file Claude Desktop reads matters. One left in an old copy is harmless.

Claude Desktop rewrites the file while it runs, so quit it fully first (Quit from the tray icon), then edit the file and start Claude Desktop again.

Development

npm run dev             # rebuild on change (tsup --watch)
npm run typecheck       # tsc --noEmit
npm run lint            # eslint
npm run format          # prettier --write   (format:check in CI)
npm run check:text      # reject raw control characters in tracked files (CI)
npm test                # vitest (unit + in-memory + built-subprocess smoke)
npm run test:coverage   # the same, failing below the coverage thresholds (CI)
npm run test:live       # opt-in: real Graph, your account (after `node dist/index.js login`)
npm run build:mcpb      # Claude Desktop extension -> build/hotmail-connector.mcpb

Layout (tests are colocated as src/**/*.test.ts):

  • src/index.ts: CLI and stdio entry (login, logout, whoami; default = server), with src/cli.ts (argument parsing). src/mcp.ts: server assembly. src/pdf-worker.ts: the isolated PDF text extractor.

  • src/auth: Microsoft OAuth (PKCE + loopback, on-demand sign-in) and the encrypted token cache (DPAPI-protected key on Windows).

  • src/graph: Graph client (auth, retries, paging) plus the mail, attachments, calendar, free/busy and user modules.

  • src/tools: zod schemas and thin tool handlers.

  • src/send: the browser confirmation page that every email waits on when sending is on.

  • src/util: time zones, HTML-to-text, iCalendar parsing, file retries, logging and the log file, errors.

  • scripts/: build-mcpb.mjs (extension), check-text.mjs, test-live.mjs, register-app.ps1.

  • assets/: the extension icon (SVG source and the PNG the bundle uses).

Requirements, design & roadmap

Platforms

The maintainer uses and tests the connector on Windows only. The extension also builds for macOS and Linux, and CI runs the tests on Linux, but nothing on those platforms has been tested by hand, and no macOS/Linux-specific work is planned. Known gaps there: the saved sign-in's key isn't protected by the OS keychain (#83), a rare lock-recovery race on macOS (#131), and setup notes for those platforms (#56). If you use macOS or Linux, PRs are very welcome.

Support & contributing

This is a personal, open-source tool, community-supported on a best-effort basis with no SLA and no hosted service. You run your own copy with your own Microsoft app registration. See SUPPORT.md for how to get help, CONTRIBUTING.md before opening a PR, and SECURITY.md for private vulnerability reporting.

License

MIT © 2026 Tony Goodhew

Available Tools

6 tools
create_eventCreate a calendar eventA
Idempotent

Create a calendar event (e.g. a booking, plus separate travel-time blocks). Times are LOCAL wall-clock paired with an IANA time zone (never a UTC 'Z'), so the event lands at the intended local time. A transactionId makes repeated calls idempotent (no duplicates). IMPORTANT: confirm the details (title, date, start/end, timezone, location) with the user BEFORE calling, then echo back the created event.

Inputs: end (required), start (required), subject (required), body, +4 more.

get_messageRead an emailA
Read-only

Read a single email message by id, returning subject, sender, receivedDateTime, webLink, the body (HTML converted to plain text by default), and attachment metadata (names/sizes only — no file contents). Read-only.

Inputs: id (required), format.

list_eventsList calendar eventsA
Read-only

List calendar events in a date range (e.g. to check for conflicts before adding a booking). Times are returned in the requested IANA time zone. Read-only.

Inputs: endDateTime (required), startDateTime (required), limit, timeZone.

list_messagesList / search emailA
Read-only

Search or list email messages (e.g. to find booking or confirmation emails). Read-only. Returns id, subject, sender, receivedDateTime, webLink, a body preview, and hasAttachments, plus a nextPageToken when more results exist. Use get_message to read a full message body.

Inputs: from, limit, query, pageToken, +3 more.

update_eventUpdate a calendar eventA
DestructiveIdempotent

Update an existing calendar event's time, location, subject, or body. Only the fields you provide are changed. Times use LOCAL wall-clock + IANA time zone. Confirm changes with the user before calling.

Inputs: id (required), end, body, start, +4 more.

whoamiShow the connected accountA
Read-only

Return the signed-in Microsoft account's display name and email address. Useful to confirm the correct personal account is connected. Read-only.

Inputs: no named parameters.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.3/5.0

    Scored across 6 tools

    Disambiguation5/5

    Each tool targets a distinct resource (events, messages, or user) with clearly separate actions, leaving no ambiguity for an agent selecting between them.

    Naming Consistency5/5

    All tools follow a consistent verb_noun pattern in snake_case (e.g., list_events, create_event), making the purpose predictable from the name.

    Tool Count5/5

    With 6 tools covering calendar and email operations, the set is well-scoped for a personal assistant connector—neither too few nor too many.

    Completeness4/5

    The tool set covers core read and create operations for events and messages, but lacks delete capabilities for events or send/reply for emails, leaving minor gaps.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers