Skip to main content
Glama
Qaiser-ms-consultant

Exchange MCP Server

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
PORTNoPort for HTTP transport.3000
AUTH_METHODNoAuthentication method: basic, oauth, or certificate.basic
MCP_TRANSPORTNoTransport protocol: stdio or http.stdio
CERT_PASSPHRASENoPassphrase for the certificate used in certificate-based authentication.
EXCHANGE_SERVERNoFQDN of the Exchange server; automatically sets both the endpoint and PowerShell URI.
OAUTH_CLIENT_IDNoClient ID for OAuth 2.0 authentication.
EXCHANGE_ENDPOINTNoBase URL (scheme+host) of the Exchange server. Example: https://mail.contoso.comhttps://mail.contoso.local
EXCHANGE_INSECURENoSet to 'true' to allow self-signed certificates (for lab environments).false
EXCHANGE_PASSWORDNoPassword for basic authentication.
ENABLE_ADMIN_TOOLSNoWhether admin tools are enabled (true/false).true
OAUTH_CLIENT_SECRETNoClient secret for OAuth 2.0 authentication.
ENABLE_MAILBOX_TOOLSNoWhether mailbox tools are enabled (true/false).false
EXCHANGE_POWERSHELL_URLNoFull PowerShell URI. Must use https://<fqdn>/PowerShell (capital P/S).https://mail.contoso.local/PowerShell

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": true
}
prompts
{
  "listChanged": true
}
resources
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
exchange_list_mailboxesC

List mailboxes (admin) — supports filter and RecipientTypeDetails

exchange_get_mailboxC

Get mailbox details by identity

exchange_get_mailbox_statisticsA

Get mailbox statistics (size, item count, last logon, DB) — troubleshooting storage/quota

exchange_get_mailbox_permissionsC

Get mailbox permissions (FullAccess, SendAs, etc.)

exchange_create_mailboxC

Create mailbox (New-Mailbox) — user/shared/room

exchange_set_mailboxC

Set mailbox properties (prohibitSendQuota, retention, etc.)

exchange_remove_mailboxC

Remove mailbox (disable/delete)

exchange_list_distribution_groupsC

List distribution groups

exchange_get_distribution_group_memberC

Get distribution group members

exchange_list_dynamic_distribution_groupsB

List dynamic distribution groups

exchange_list_mail_contactsC

List mail contacts

exchange_list_mail_usersD

List mail users

exchange_get_cas_mailboxC

Get Client Access mailbox settings (ActiveSync, OWA, MAPI)

exchange_get_transport_rulesA

Get transport (mail flow) rules

exchange_list_send_connectorsB

List Send connectors

exchange_list_receive_connectorsA

List Receive connectors (optionally per server)

exchange_list_accepted_domainsB

List accepted domains

exchange_list_remote_domainsB

List remote domains

exchange_get_queueB

Get transport queues (Get-Queue) — key for troubleshooting mail flow

exchange_get_queue_digestB

Get queue digest across DAG (Get-QueueDigest)

exchange_retry_queueC

Retry a queue (troubleshooting)

exchange_suspend_queueC

Suspend a queue

exchange_get_message_tracking_logC

Search message tracking logs (troubleshooting delivery)

exchange_list_serversA

List Exchange servers (Get-ExchangeServer)

exchange_get_serverC

Get Exchange server details

exchange_list_mailbox_databasesC

List mailbox databases

exchange_get_mailbox_databaseC

Get mailbox database details

exchange_get_database_copy_statusC

Get database copy status (DAG health)

exchange_get_dagC

Get Database Availability Groups (DAGs)

exchange_get_exchange_certificateC

Get Exchange certificates (expiry monitoring)

exchange_get_virtual_directoryB

Get virtual directories (OWA/ECP/EWS/ActiveSync/MAPI)

exchange_get_transport_serviceC

Get Transport service config

exchange_get_server_healthC

Get server health (Get-ServerHealth) — Managed Availability health sets

exchange_get_health_reportB

Get health report (Get-HealthReport) — rollup per server/DAG

exchange_test_service_healthC

Test service health (Test-ServiceHealth) — checks required services

exchange_test_replication_healthC

Test replication health (DAG — Test-ReplicationHealth)

exchange_get_server_component_stateB

Get server component states (ServerWideOffline, etc.)

exchange_get_monitoring_itemB

Get monitoring items (probes/monitors/responders) for a health set

exchange_test_mailflowD

Test mailflow (Test-Mailflow)

exchange_get_role_groupsA

List role groups (RBAC — Permissions)

exchange_search_admin_audit_logC

Search admin audit log (compliance)

exchange_test_connectionA

Diagnose Exchange connectivity — tests endpoint reachability, PowerShell virtual directory, and auth. Use when all tools return 404.

Prompts

Interactive templates invoked by user choice

NameDescription
triage-inboxTriage inbox: summarize unread messages and suggest actions
schedule-meetingSchedule a meeting with attendees

Resources

Contextual data attached and managed by the client

NameDescription
exchange-foldersList mailbox folders (inbox, calendar, contacts, etc.)

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Qaiser-ms-consultant/MicrosoftExchangeServerMCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server