copilot-outlook-connector
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@copilot-outlook-connector @copilot-outlook-connector Show my latest emails from today"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Outlook.com personal connector
A local, reusable TypeScript STDIO MCP server for personal Microsoft accounts such as Outlook.com and Hotmail. Each account has an independent delegated grant and secure credential namespace. This is not an organizational Microsoft 365 connector, an app-only integration, a dashboard, or a native Copilot connector manifest.
Capabilities and boundaries
Area | Included | Intentionally absent |
Structured search/list, message and paginated conversation reads, attachment metadata and bounded inert file bytes, unsent new/reply/reply-all drafts | Send, forwarding, move/archive/delete, categories, arbitrary MIME or header injection | |
Calendar | Discovery, event and instance reads, event creation/updates/deletion, attendee invitations, self-RSVP, whole-series and exact-occurrence operations | Calendar creation/deletion, sharing/ACL changes, contacts, this-and-following series splitting |
Availability | CalendarView-derived busy/common availability for explicitly selected accessible account/calendar sources | Organizational getSchedule/findMeetingTimes, arbitrary people-directory availability |
Safety | Durable request receipts, explicit accounts, OS credential storage, generation checks, human WebAuthn approvals | Agent |
This is not unrestricted Outlook parity. Search is structured Graph filtering, not Gmail syntax or a full-text consumer search promise. Conversations are mailbox-scoped conversationId queries, not Gmail thread resources. Pagination is not a consistent snapshot. Only file attachments are downloaded, at most 2 MiB; item/reference attachments and external images are not fetched. Drafts use Graph JSON APIs; Microsoft owns MIME serialization and reply headers.
All recurring edits, deletions, attendee-affecting operations and RSVPs require human approval. In ordinary Graph v1.0 responses, private creates are gated too: the provider does not supply the negative-sharing evidence needed to prove an exemption safe. Updates always remain gated: Microsoft's event-update documentation does not establish atomic conditional-write enforcement. The connector rechecks versions immediately before dispatch but does not claim an external-edit lock or conditional-write guarantee. See calendar contracts.
Related MCP server: personal-outlook-mcp
Local installation
Requires Node.js 22 or later, a desktop browser, and an available OS credential store. Clone and build the source:
git clone https://github.com/torosent/copilot-outlook-connector.git
cd copilot-outlook-connector
npm ci --registry=https://registry.npmjs.org
npm test
npm pack
node dist/cli.js helpFor another local installation, install the resulting copilot-outlook-connector-0.1.0.tgz into a directory you control:
npm install --prefix /absolute/path/to/local-install /absolute/path/to/copilot-outlook-connector-0.1.0.tgz
node /absolute/path/to/local-install/node_modules/copilot-outlook-connector/dist/cli.js helpThe package is marked private to prevent accidental npm publication. Nothing installs or edits Copilot configuration automatically. No repository or package publication is required.
User-controlled account setup
Use a Microsoft public desktop client whose supported account types include personal Microsoft accounts and whose native redirect matches the connector's loopback policy. The recommended native redirect is http://localhost under Mobile and desktop applications. Do not add a secret to a desktop client or weaken an unrelated application's settings. If an existing registration is incompatible, create a separate suitable public client or make the specific registration change yourself.
Run node dist/cli.js help for the supported registration inspection/configuration and account commands. Registration inspection consumes only allowlisted application metadata; it is not token import or proof of current portal state. Configuration does not authenticate. Token-bearing exports and registrations declaring unsupported permissions are rejected. Use a separate least-privilege public client rather than weakening an existing application's configuration.
node dist/cli.js auth client inspect --file /absolute/path/to/application-manifest.json
node dist/cli.js auth client import --file /absolute/path/to/application-manifest.json
node dist/cli.js accounts add --client-id YOUR_PUBLIC_APPLICATION_ID
node dist/cli.js accounts listOnly deliberately invoking accounts add --client-id starts sign-in; the client selection is mandatory. accounts reauth ACCOUNT_ID may only reauthorize the same stable identity; accounts remove ACCOUNT_ID disables local access and cleans up local credential generations, not provider-wide consent. If either reports cleanupPending, unlock the credential store and run accounts cleanup ACCOUNT_ID. accounts cleanup without an ID retries all journaled inactive-generation cleanup.
Requested delegated permissions are User.Read, Mail.ReadWrite, Calendars.ReadWrite, openid, profile, and offline_access. Mail.ReadWrite grants broader mailbox mutation permission at OAuth level even though the connector exposes drafts only. Mail.Send is never requested. No application permissions, tenant impersonation, password flow or organizational fallback are used.
See authentication contract for exact commands, cache storage and issuer/account binding. No user-specific client ID, email or credential export belongs in reusable source, examples or test fixtures.
GitHub Copilot app integration
After local setup, print configuration from the actual installed path:
node /absolute/path/to/copilot-outlook-connector/dist/cli.js config printUse the emitted ordinary mcpServers entry with the GitHub Copilot app's Customize -> MCP flow or its supported MCP configuration editor. It contains an absolute Node executable, absolute CLI path, serve, and no credentials. Use a distinct server name, outlook-local; keep any Google server independent.
The output is inert. Printing configuration, help, doctor, STDIO discovery and empty-account listing do not start OAuth, enroll an authenticator, read existing vault entries or create account state. doctor reports local setup only, not successful Microsoft connectivity.
Human confirmation and recovery
Bootstrap the authenticator yourself in a trusted CLI, outside an agent workflow:
node dist/cli.js approvals enrollThe separate Outlook enrollment cannot be reset through MCP. A gated operation returns pending_approval and a localhost review URL. The human inspects the immutable account, target, resource versions, attendees, recurrence and notification effects, then completes the enrolled authenticator's user presence and user verification ceremony. No allow-all setting or SDK elicitation response substitutes for this. Never automate enrollment or approval.
Every write requires an explicit accountId and a stable, caller-chosen requestId. Repeating the same request returns its durable receipt; reusing the ID for different normalized arguments fails. Use operation_status to inspect and operation_cancel to cancel only before dispatch. An outcome_unknown operation must not be retried with a new ID. Inspect Outlook manually first. Microsoft transaction IDs are an additional event-create aid, not permission for automatic retries.
Storage and threat model
The independent namespace is copilot-outlook-connector: macOS Keychain, Windows Credential Manager, or desktop Linux Secret Service through shell-free secret-tool. Linux never silently falls back to kernel keyutils. Locked/unavailable vaults fail closed. Install libsecret's tools and unlock a desktop Secret Service on Linux.
MSAL caches are encrypted at rest with per-account/generation authenticated encryption; small encryption keys live in the OS vault, avoiding Windows credential-size limits. Metadata, operation receipts and authenticator public keys live in private local state. Mail bodies and access tokens are not put in receipts. No token is exported or passed as a process argument.
This protects the supported tool boundary and rejects forged approval responses. It cannot protect against arbitrary code already running as the same OS user, a replaced connector binary, compromised server, OS account or authenticator. See security and operational limitations.
Local acceptance
npm test
npm run smoke:packageThe package smoke builds a tarball, installs it with production dependencies only in an isolated temporary consumer, and exercises help/config/doctor/real STDIO discovery without credentials. It uses public-registry artifact URLs and integrity-cache installation, not a claim of fresh network downloads.
Offline fixtures do not establish native Windows/Linux behavior, physical-authenticator behavior, live app registration state or successful Outlook connectivity. Those require user-controlled platform acceptance. No live draft, invitation, RSVP or event mutation is part of automated acceptance.
Available Tools
22 toolsaccounts_listARead-only
List configured personal Microsoft accounts and delegated scopes, without OAuth or credential access. Choose explicit opaque account IDs for subsequent requests.
Inputs: no named parameters.
calendar_create_eventBDestructive
Create an appointment or invitation with explicit Windows-zone local times and bounded Graph recurrence. Invitations require human WebAuthn review. Private guest-free creates are exempt only with provider-proven own/private calendar evidence; missing sharing evidence means review. No online meeting creation.
Inputs: event (required), accountId (required), requestId (required), calendarId (required).
calendar_delete_eventADestructive
Delete only the explicitly reviewed single event, whole seriesMaster or verified exact occurrence. Human WebAuthn review is always required; organizer deletion sends attendee cancellations.
Inputs: target (required), accountId (required), requestId (required), calendarId (required).
calendar_find_availabilityARead-only
Find common UTC slots across every explicit account/calendar source. Busy, tentative, OOF, working-elsewhere and all-day events block; unknown or incomplete data yields no slots.
Inputs: end (required), start (required), sources (required), durationMinutes (required), +2 more.
calendar_free_busyARead-only
Derive free/busy ONLY from explicitly selected accessible account/calendar sources via fully paginated calendarView. Personal getSchedule/findMeetingTimes are not supported. Any partial/failed/unknown source prevents common free time.
Inputs: end (required), start (required), sources (required).
calendar_get_calendarARead-only
Read a selected accessible calendar and its Graph-reported permissions. default resolves /me/calendar.
Inputs: accountId (required), calendarId (required).
calendar_get_eventARead-only
Read one exact immutable event ID within the selected calendar, preserving master/originalStart and original zones.
Inputs: eventId (required), accountId (required), calendarId (required).
calendar_list_calendarsARead-only
Discover this explicit account's accessible calendars. Unknown permissions and partial results remain explicit; no calendars are created or shared.
Inputs: accountId (required).
calendar_list_eventsARead-only
Read bounded UTC calendarView occurrences, exceptions and single events. Follows all safe pages up to limits; complete=false is never a complete/free result.
Inputs: end (required), start (required), accountId (required), calendarId (required), +1 more.
calendar_list_instancesARead-only
Get exact occurrence/exception IDs from a verified seriesMaster in a bounded window. Use returned ID, master and originalStart for occurrence actions; never derive IDs from dates.
Inputs: end (required), start (required), accountId (required), calendarId (required), +1 more.
calendar_rsvpADestructive
Respond only as the actual authenticated attendee of a default-calendar invitation. Requires explicit sendResponse=true and human WebAuthn review; no attendee identity override. Declining may remove the event; Graph actions have residual external-edit races.
Inputs: target (required), response (required), accountId (required), requestId (required), +3 more.
calendar_search_eventsARead-only
Literal case-insensitive subject/bodyPreview search over an explicitly selected, bounded calendarView. Partial reads produce partial search results.
Inputs: end (required), query (required), start (required), accountId (required), +2 more.
calendar_update_eventADestructive
Patch ONLY supplied fields on an organizer event. ALL updates require human WebAuthn review. Explicit seriesMaster or verified exact occurrence targeting; no this-and-following. Online meeting body editing is rejected. Resource re-read is not atomic concurrency control.
Inputs: patch (required), target (required), accountId (required), requestId (required), +1 more.
mail_create_draftADestructive
Create an UNSENT draft only. Explicit accountId and durable requestId required. Supports Unicode JSON bodies and validated To/Cc/Bcc; HTML is attribute-free formatting only. No send capability exists.
Inputs: body (required), subject (required), accountId (required), requestId (required), +3 more.
mail_create_reply_draftADestructive
Create an UNSENT reply/reply-all using Graph createReply/createReplyAll. Graph derives Reply-To, recipients and conversation headers from the source; arbitrary recipient/header overrides and sends are unavailable. Source versions are rechecked, not atomically locked.
Inputs: body (required), accountId (required), messageId (required), requestId (required), +1 more.
mail_list_attachmentsARead-only
List inert attachment metadata for a message, with account-bound pagination. Does not download attachment content.
Inputs: accountId (required), messageId (required), cursor.
mail_read_attachmentARead-only
Read a file attachment as bounded inert base64 bytes (up to 2 MiB). Item and reference attachments are rejected; no URL is followed and nothing is executed or written to disk.
Inputs: accountId (required), messageId (required), attachmentId (required), maxBytes.
mail_read_conversationARead-only
Read one page of messages sharing conversationId in this mailbox. No Gmail thread resource is assumed; follow nextCursor with the same account, conversation and pageSize for complete results. No snapshot or cross-mailbox completeness guarantee.
Inputs: accountId (required), conversationId (required), cursor, pageSize.
mail_read_messageARead-only
Read one immutable message ID, with bounded inert content and attachment metadata. Does not mark read, fetch images or execute content.
Inputs: accountId (required), messageId (required), maxBodyChars.
mail_searchARead-only
List/search messages across an intentional account selection using structured sender, subject and date filters. Includes mailbox folders such as Deleted Items. Not Gmail syntax or full-text search. Each account has independent pagination; repeat the identical filters/pageSize with its cursor.
Inputs: accounts (required), filters, pageSize.
operation_cancelADestructive
Cancel a pending operation before dispatch. Does not undo an already-dispatched Outlook action.
Inputs: accountId (required), operationId (required).
operation_statusARead-only
Read the status of an explicitly selected account's write. An unknown outcome must never be blindly retried.
Inputs: accountId (required), operationId (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 22 tools
Most tools are clearly separated by domain and action, such as calendar_get_event vs calendar_list_events and mail_read_message vs mail_read_conversation. A few pairs could require attention, like calendar_free_busy vs calendar_find_availability or mail_list_attachments vs mail_read_attachment, but the descriptions clarify the distinctions.
The dominant pattern is domain_verb_noun with snake_case, but several names deviate: accounts_list, operation_cancel, operation_status, and calendar_free_busy do not follow the verb-first convention. This makes the naming somewhat mixed despite consistent domain prefixes.
22 tools sits in the upper range and feels slightly heavy for a single connector. The count is defensible because it covers calendar, mail, drafts, attachments, availability, and operations, but it is above the ideal 3-15 range.
Calendar lifecycle is well covered including create, update, delete, RSVP, and availability, and mail covers read, search, drafts, and attachments. However, common mail actions such as send, delete, and folder management are absent, and the descriptions repeatedly state these are unsupported, leaving notable gaps in the mail domain.
Maintenance
Related MCP Connectors
Permissioned access to Outlook, OneDrive and Teams via the user's own Microsoft account
Hosted email MCP for your own Gmail, Outlook.com, Microsoft 365, iCloud or IMAP inbox: read, search, draft, reply in thread, forward and file mail. It moves or flags up to 500 messages in one call, and a send leaves exactly one copy in Sent. A calendar is a separate connection, and connecting one adds diary and scheduling tools.
Your Gmail, Calendar, Drive, GitHub, Oura, wallet and confirmed profile facts in any MCP client.
Read email/chat conversations, messages, contacts and teams; draft, send and update threads.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables personal Outlook/Hotmail/Live account email management through Microsoft Graph, letting users list, search, read, and delete emails (with confirmation) via MCP.ISC
- AlicenseNot gradedqualityBmaintenanceEnables MCP clients to manage a personal Outlook consumer inbox and calendar through Microsoft Graph, with local device-code authentication and OS keyring token storage.AGPL 3.0
- AlicenseNot gradedqualityCmaintenanceEnables authenticated MCP clients to list, search, read, flag, draft, and optionally send mail from one Gmail or Microsoft 365 mailbox using OAuth without app registration.MIT
- AlicenseBqualityCmaintenanceEnables organizing a personal Microsoft account from an MCP client, including Outlook folder trees, sender statistics, bulk moves, inbox rules, and OneDrive folders via Microsoft Graph.10MIT