Skip to main content
Glama
cybrlou

Office 365 Email MCP

by cybrlou

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
O365_SENDERNoDefault sender mailbox (overridable per call)
O365_CLIENT_IDYesApplication (client) ID
O365_TENANT_IDYesDirectory (tenant) ID
O365_CLIENT_SECRETYesClient secret value

Instructions

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

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
office365_send_emailA

Send an email through Microsoft 365 via the Microsoft Graph API.

Uses the app-only (client-credentials) OAuth2 flow, so no user is signed in; mail is sent from the mailbox given by sender or the O365_SENDER env var. Supports plain-text or HTML bodies, CC/BCC, and local file attachments.

Args: params (SendEmailInput): Validated parameters containing: - to (list[str]): Primary recipient addresses (required). - subject (str): Subject line (required). - body (str): Body content, plain text or HTML (required). - is_html (bool): Treat body as HTML when true (default False). - cc (Optional[list[str]]): CC recipients. - bcc (Optional[list[str]]): BCC recipients. - sender (Optional[str]): From mailbox; overrides O365_SENDER. - attachments (Optional[list[str]]): Local file paths (<~3 MB total). - save_to_sent_items (bool): Keep a Sent Items copy (default True).

Returns: str: A human-readable confirmation, e.g. "Email sent from finance@contoso.com to 2 recipient(s): 'Subject'." On failure, a string beginning with "Error: " describing the problem and how to fix it (auth, permissions, mailbox, rate limits, etc.).

Examples: - "Email the Q3 report to alice@contoso.com" -> to=['alice@contoso.com'], subject='Q3 report', body='...', attachments=['/path/q3.pdf']. - Don't use to read or search mail; this tool only sends.

office365_test_connectionA

Verify OAuth2 configuration by acquiring an app-only Graph token.

Performs no email send and reads no data. It only checks that the O365_TENANT_ID / O365_CLIENT_ID / O365_CLIENT_SECRET environment variables are present and valid enough to obtain an access token from Microsoft Entra ID. Use this first when diagnosing setup problems.

Returns: str: "OK: ..." on success (token acquired), including whether a default O365_SENDER is configured; otherwise a string beginning with "Error: " explaining what is misconfigured.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4.6/5.0

Scored across 2 tools

Disambiguation5/5

The two tools serve entirely distinct purposes: one sends emails, the other verifies OAuth2 connectivity. There is no overlap or ambiguity.

Naming Consistency5/5

Both tools follow a consistent 'office365_verb_noun' pattern (send_email, test_connection), with no mixing of conventions.

Tool Count4/5

With only two tools, the server is extremely focused on sending emails and testing authentication. While this is appropriate for a minimal integration, it feels slightly under-scoped for a full Office 365 Email MCP.

Completeness2/5

The server only covers sending emails and connection testing, missing essential email operations like reading, searching, or managing folders. This is a significant gap for a service branded as 'Email MCP'.

Maintenance

ActivityInactive
ResponsivenessNo issues