OfficeMCP

OfficeMCP

Remote MCP server for Microsoft Graph with delegated OAuth support, enabling interaction with Microsoft 365 services like mail, calendar, OneDrive, SharePoint, Teams, and more via natural language.

Category
Visit Server

README

Office MCP Server

Remote MCP server for Microsoft Graph with delegated OAuth support.

Quick start

  1. Copy .env.example to .env.
  2. Install dependencies with npm install.
  3. Run npm run dev.
  4. The MCP endpoint is http://localhost:3000/mcp.
  5. For a container path, build with docker build -t office-mcp ..

Auth modes

  • AUTH_ENABLED=false: local development without bearer-token enforcement.
  • AUTH_ENABLED=true with GRAPH_TOKEN_MODE=passthrough: validates bearer tokens and forwards the same user token to Microsoft Graph.
  • AUTH_ENABLED=true with GRAPH_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_BYTES and default to 5 MB, matching current Work IQ preview guidance for some file operations.
  • /diagnostics/auth provides 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 smoke

The 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 smoke

To 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/auth

This 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/mcp

To quickly inspect all readiness endpoints together:

npm run live-readiness

When AUTH_ENABLED=false, the auth metadata endpoints will correctly return 404.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured