Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
SSL_CERT_FILENoPath to a CA certificate file for TLS; also supported for corporate TLS proxies.
OUTLOOK_TOKEN_FILENoPath to a token file for Microsoft Graph authentication.
NODE_EXTRA_CA_CERTSNoPath to extra CA certificates for TLS; also supported for corporate TLS proxies.
OUTLOOK_ACCESS_TOKENNoAccess token for Microsoft Graph authentication, as an alternative to interactive login.
OUTLOOK_EXTRA_CA_PEMNoPath to a PEM file containing an extra private root CA for corporate TLS proxies.
OUTLOOK_TOKEN_REFRESH_CMDNoCommand used to refresh an access token, for example `az account get-access-token`.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

Microsoft Outlook MCP server (Mail, Calendar, To Do, Contacts). Pass offline: true on read/search tools to query the local SQLite cache without network calls. delete_message and delete_event require confirm: true. Reads are compact by default (omitted fields are explicitly listed in omitted.fields — never assume omitted fields are absent); pass fields: [...] on get_message/get_event for selective projection or compact: false for full fields. Follow next_cursor to continue a listing.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
whoamiA

Display current user identity, token expiry, OAuth scopes, and auth source (outlook-cli vs shared teams-cli).

list_mail_foldersB

List Outlook mail folders with unread and total item counts. Graph cost: 1 request plus 1 batch per folder nesting level, skipped while the cache is younger than OUTLOOK_CLI_CACHE_SECS (default 0).

list_messagesA

List emails in a mail folder (accepts folder ID, display name/prefix, or well-known alias such as 'inbox', 'sent', 'drafts', 'archive', 'trash', 'junk'). Usually 1-2 Graph requests. The first call on a large folder syncs at most 40 pages (sync_complete: false until done); unread/flagged/focused filters scan at most 20 pages. offline: true reads the cache only.

get_messageA

Read an email by ID. Compact by default; pass fields: [...] for selective field projection (e.g. ['cc', 'bcc', 'categories', 'attachments']) without pulling full HTML, or set compact:false for HTML and attachment metadata. 1 Graph request unless offline (plus 1 when mark_read changes the state); compact:false can be large.

send_mailB

Compose and send an email with Markdown body and optional file attachments. Attachments over 3 MiB are uploaded in chunks before sending, which takes several requests.

reply_mailC

Reply (or reply all) to an email message using Markdown.

forward_mailC

Forward an email message to one or more recipients.

update_messageC

Update an email's read/unread status, flag status, or move it to another folder.

delete_messageC

Delete an email message. Requires confirm: true.

download_attachmentA

Download an Outlook email attachment or inline screenshot to disk and return structured JSON { ok, path, file_name, mime_type, size_bytes, is_image } so multimodal AI agents can read media directly from disk. Fetches the full attachment bytes with Graph requests unless offline reads them from the cache; time grows with file size.

search_mailA

Search emails in local SQLite FTS5 (offline: true) or remotely via Microsoft Graph KQL $search. Remote search is 1 Graph request per page and is rate-limited by Exchange; prefer offline: true (local FTS, no request) for mail that is already synced.

list_eventsA

List calendar events within a date/time window (defaults to next 7 days). Compact by default (omits body_html and recurrence, listed in omitted.fields). 1 Graph request per 100 events in the window; offline: true reads the cache only.

get_eventA

Read a calendar event by ID. Compact by default (omits body_html); pass fields: [...] for selective field projection (e.g. ['attendees', 'body_plain', 'recurrence', 'categories']) without pulling full HTML, or compact:false for all fields. 1 Graph request unless offline.

create_eventB

Create a new Outlook calendar event (optionally as an online Teams meeting).

respond_eventC

Respond (accept, tentative, decline) to a calendar event invitation.

delete_eventC

Delete a calendar event. Requires confirm: true.

list_todo_listsA

List Microsoft To Do task lists. Graph cost: 1 request per page of lists, skipped while the cache is younger than OUTLOOK_CLI_CACHE_SECS (default 0).

list_tasksB

List tasks in a Microsoft To Do list (accepts list name, 'tasks'/'defaultList', or ID). 1 Graph request per 100 tasks unless offline.

create_taskC

Create a new task in a Microsoft To Do list.

complete_taskB

Mark a Microsoft To Do task as completed (or incomplete when completed: false).

search_contactsB

List or search personal Outlook contacts and Entra organization directory. A query reads personal contacts and the organization directory: 2-3 Graph requests.

update_draftB

Edit subject and/or body of an existing Outlook draft. Provide Markdown body or raw body_html for a body replacement.

update_eventC

Edit subject and/or times of an existing calendar event.

update_taskC

Edit title and/or due date of an existing Microsoft To Do task.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

B3.4/5.0

Scored across 24 tools

Disambiguation4/5

Most tools target a clearly distinct resource+action (mail vs. calendar vs. tasks vs. contacts), and the descriptions make the boundaries explicit. Minor overlap exists between update_message (flags/move) and update_draft (subject/body), and complete_task is essentially a specialized update_task, but the descriptions disambiguate these well enough.

Naming Consistency4/5

The set follows a consistent snake_case verb_noun convention (list_messages, get_message, create_event, delete_message, update_task, etc.) across all domains. The only real outlier is 'whoami', which breaks the pattern but is a common, self-explanatory convention.

Tool Count4/5

At 24 tools the surface is on the heavy side, but it spans four distinct domains (mail, calendar, tasks, contacts) plus auth, averaging ~5-6 tools per domain, which is reasonable. A few tools could potentially be merged (e.g. complete_task into update_task), but nothing feels gratuitous.

Completeness4/5

Mail and calendar have near-complete lifecycles (list/get/create/update/delete/reply/forward/search), and tasks cover list/create/complete/update. Notable gaps remain: there is no create_draft (only update_draft), no delete_task, and contacts are read-only (search_contacts) with no create/update, but agents can work around most of these.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues