Microsoft 365 File Search (SharePoint & OneDrive) MCP Server

# MCP Server - Microsoft 365 File Search (SharePoint & OneDrive) ## Overview A Model Context Protocol (MCP) server implementation that provides

Local serverstdio

What is the Microsoft 365 File Search (SharePoint & OneDrive) MCP Server?

MCP Server - Microsoft 365 File Search (SharePoint & OneDrive) Overview A Model Context Protocol (MCP) server implementation that provides advanced file search

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

How to install the Microsoft 365 File Search (SharePoint & OneDrive) MCP Server

{
  "mcpServers": {
    "M365 File Search (SharePoint/OneDrive)": {
      "command": "uv",
      "args": [
        "--directory",
        "full_path_to_parent_directory",
        "run",
        ".\\src\\mcp_m365_filesearch\\server.py"
      ],
      "env": {
        "CLIENT_ID": "MSGraph Client ID",
        "CLIENT_SECRET": "MS Graph Client Secret",
        "TENANT_ID": "TENANT ID",
        "REGION": "SEARCH REGION"
      }
    }
  }
}

Maintainer configuration example. Replace example paths and credential placeholders before connecting.

Configuration

VariableDescriptionRequired
CLIENT_IDConfiguration value read at startup.Optional
CLIENT_SECRETCredential the server authenticates with.Yes
TENANT_IDConfiguration value read at startup.Optional
REGIONConfiguration value read at startup.Optional

Example prompts to try

  • “Use Microsoft 365 File Search (SharePoint & OneDrive) to Tools.”
  • “Use Microsoft 365 File Search (SharePoint & OneDrive) to Caching.”

Frequently asked questions

This server provides direct MCP integration for AI assistants, bypassing manual searching and offering programmatic access via Microsoft Graph API.