OfficeMCP
Click on "Install 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., "@OfficeMCPshow my upcoming calendar events for 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.
Office MCP Server
Remote MCP server for Microsoft Graph with delegated OAuth support.
Quick start
Copy
.env.exampleto.env.Install dependencies with
npm install.Run
npm run dev.The MCP endpoint is
http://localhost:3000/mcp.For a container path, build with
docker build -t office-mcp ..
Related MCP server: Microsoft 365 MCP Server
Auth modes
AUTH_ENABLED=false: local development without bearer-token enforcement.AUTH_ENABLED=truewithGRAPH_TOKEN_MODE=passthrough: validates bearer tokens and forwards the same user token to Microsoft Graph.AUTH_ENABLED=truewithGRAPH_TOKEN_MODE=obo: validates bearer tokens for this MCP resource and exchanges them for a Microsoft Graph delegated token via on-behalf-of flow.
Notes
Streamable HTTP is used for the remote MCP transport.
OAuth Protected Resource Metadata is exposed when auth is enabled.
File-oriented tools cap direct content extraction at
MAX_FILE_SIZE_BYTESand default to 5 MB, matching current Work IQ preview guidance for some file operations./diagnostics/authprovides a non-secret snapshot of auth and token-mode configuration for setup troubleshooting.The local test suite now covers both unauthenticated and authenticated MCP route behavior with a mocked verified bearer token.
Current tool coverage
user profile and organization context
direct reports
mail list, get, search, draft, reply, and send
calendar list, get, create, update, delete, and schedule lookup
OneDrive search, recent items, item metadata, folder children, and folder creation
SharePoint site search, site lookup, document libraries, lists, and list items
Teams joined teams, chats, channels, channel messages, and chat messages
Word document text extraction
cross-M365 retrieval via Microsoft Graph search
Additional docs
Smoke testing
With the server running locally:
npm run smokeThe default smoke tool is server_get_status, so local MCP verification works even without Microsoft Graph credentials.
For auth-enabled setup, use .env.auth.example as the starting template.
To call a specific tool:
SMOKE_TOOL=mail_list_messages SMOKE_TOOL_ARGS='{"top":5}' npm run smokeTo exercise bearer-protected mode, set SMOKE_BEARER_TOKEN in the environment before running the smoke script.
To inspect a token's audience, scopes, tenant, and expiry without sending it anywhere:
npm run inspect-token -- "<jwt>"Diagnostics
For setup troubleshooting:
curl http://localhost:3000/diagnostics/authThis endpoint includes non-secret warnings for common misconfigurations such as:
auth disabled
missing resource audience
incomplete OBO configuration
wildcard CORS in production-like setups
When auth is enabled, the MCP server also exposes protected resource metadata at:
curl http://localhost:3000/.well-known/oauth-protected-resource/mcpTo quickly inspect all readiness endpoints together:
npm run live-readinessWhen AUTH_ENABLED=false, the auth metadata endpoints will correctly return 404.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseCqualityFmaintenanceA powerful MCP server that enables AI assistants to interact with Microsoft Graph API for managing Outlook emails, Calendar events, OneDrive files, and Contacts through natural language commands.3554
- AlicenseCquality-maintenanceAn MCP server that enables interaction with Microsoft 365 services like Outlook, OneDrive, Teams, and SharePoint via the Microsoft Graph API. It supports comprehensive operations including email management, file access, and organizational collaboration for personal and work accounts.78
- Alicense-qualityAmaintenanceMCP server for Microsoft 365 via the Microsoft Graph API, providing read-only access to profile, calendar, email, Teams chats, OneDrive files, and meeting transcripts from any MCP client.182MIT
- Alicense-qualityCmaintenanceA secure remote MCP server that integrates Microsoft 365 services with AI assistants, enabling email, calendar, Teams, and contact operations via the Microsoft Graph API.2MIT
Related MCP Connectors
Official Microsoft MCP Server to query Microsoft Entra data using natural language
Personal assistant MCP server with search, execute, packages, jobs, secrets, and integrations.
A paid remote MCP for hosted MCP server, built to return verdicts, receipts, usage logs, and audit-r
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/aKardasz/OfficeMCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server