Skip to main content
Glama
borgels

mcp-server-microsoft365

by borgels

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MS_CLIENT_IDNoYour application (client) ID
MS_TENANT_IDNoYour Microsoft Entra tenant ID (e.g., contoso.onmicrosoft.com or GUID)
MS_TIMEOUT_MSNoTimeout in milliseconds for HTTP requests30000
MCP_HTTP_TOKENNoBearer token for HTTP transport authentication
MS_ACCESS_TOKENNoA pre-fetched access token to short-circuit grants
MS_CLIENT_SECRETNoYour client secret
MS_REFRESH_TOKENNoA refresh token for delegated authentication
MS_AUTHORITY_HOSTNoAuthority host for token requestshttps://login.microsoftonline.com
MS_GRAPH_BASE_URLNoBase URL for Microsoft Graph APIhttps://graph.microsoft.com/v1.0
MCP_MAX_BODY_BYTESNoMaximum body size for HTTP transport (in bytes)10485760
MCP_ALLOWED_ORIGINSNoAllowed origins for HTTP transport

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
}

Tools

Functions exposed to the LLM to take actions

NameDescription
get_userA

Fetch one user by object id or userPrincipalName.

list_usersA

List users with optional $top, $filter, $select, and $orderby.

list_subscribed_skusA

List tenant subscribed SKUs for license lookup and seat availability.

list_groupsC

List groups with optional $top, $filter, $select, and $orderby.

get_groupA

Fetch one group by object id.

list_group_membersC

List the members of a group.

get_user_license_detailsA

List the licenses currently assigned to a user.

create_userB

Create a user with a generated temporary password. Returns the temporary password; store it securely and share out-of-band.

assign_licenseA

Assign a license to a user. Sets usageLocation first when provided; fails clearly if the user has no usageLocation.

remove_licenseC

Remove a license from a user.

add_group_memberA

Add a user to a group. Idempotent when the user is already a member.

remove_group_memberA

Remove a user from a group. Idempotent when the user is not a member.

set_usage_locationA

Set a user usageLocation (required before license assignment).

update_userA

Update attributes on an existing user (PATCH). Use accountEnabled to enable/disable an existing account (e.g. activate a pre-created hire or disable a leaver). Only provided fields are changed.

set_managerB

Set a user's manager. Provide the manager's object id or userPrincipalName.

create_temporary_access_passA

Create a Temporary Access Pass (TAP) for passwordless first sign-in / MFA setup. Multi-use by default; regenerated until the passcode is alphanumeric so it is easy to relay. lifetimeInMinutes is bounded by the tenant TAP policy. Returns the passcode; deliver it out-of-band.

delete_temporary_access_passA

Delete a user's Temporary Access Pass. With methodId deletes that pass; otherwise deletes every TAP on the user.

activate_pim_roleA

Just-in-time PIM elevation: the delegated caller self-activates one of their own ELIGIBLE directory roles (e.g. Authentication Administrator, needed for Temporary Access Pass) for a bounded window. Requires a delegated token; fails if the caller is not eligible.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

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/borgels/mcp-server-microsoft365'

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